lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 05 May 2020 23:06:32 +0200
From:   Akira shimahara <akira215corp@...il.com>
To:     Greg KH <greg@...ah.com>
Cc:     zbr@...emap.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 2/9] w1_therm: fix reset_select_slave at beginning of
 search process

Le mardi 05 mai 2020 à 16:49 +0200, Greg KH a écrit :
> >   /*------------------------Hardware Functions---------------------
> > -----*/
> >   
> > +/* Safe version of reser_select_slave - avoid using the one in
> > w_io.c */
> > +static int reset_select_slave(struct w1_slave *sl)
> > +{
> > +     u8 match[9] = { W1_MATCH_ROM, };
> > +     u64 rn = le64_to_cpu(*((u64 *)&sl->reg_num));
> > +
> > +     if (w1_reset_bus(sl->master))
> > +             return -ENODEV;
> > +
> > +     memcpy(&match[1], &rn, 8);
> > +     w1_write_block(sl->master, match, 9);
> > +
> > +     return 0;
> > +}
> 
> 
> If you put this higher up in the .c file, no function definition is
> 
> needed in the .h file at all, right?
> 
> 
> 
> thanks,
> 
> 
> 
> greg k-h

Yes, everything could be put in the .c file, but I think we will loose
clarity.
Please, let me know what you prefer.

Thanks

Akira Shimahara

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ