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:   Wed, 6 Dec 2017 12:21:26 +0100
From:   Bartosz Golaszewski <brgl@...ev.pl>
To:     Uwe Kleine-König 
        <u.kleine-koenig@...gutronix.de>
Cc:     linux-i2c <linux-i2c@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] eeprom: at24: use a common prefix for all symbols in at24.c

2017-12-06 12:05 GMT+01:00 Bartosz Golaszewski <brgl@...ev.pl>:
> 2017-12-06 12:03 GMT+01:00 Uwe Kleine-König <u.kleine-koenig@...gutronix.de>:
>> On Wed, Dec 06, 2017 at 11:19:26AM +0100, Bartosz Golaszewski wrote:
>>> There are a couple symbols defined in the driver source file which are
>>> missing the at24_ prefix. This patch fixes that.
>>>
>>> Signed-off-by: Bartosz Golaszewski <brgl@...ev.pl>
>>> ---
>>>  drivers/misc/eeprom/at24.c | 34 ++++++++++++++++++----------------
>>>  1 file changed, 18 insertions(+), 16 deletions(-)
>>>
>>> diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
>>> index 2426f2c111c7..4ead21d0dcc5 100644
>>> --- a/drivers/misc/eeprom/at24.c
>>> +++ b/drivers/misc/eeprom/at24.c
>>> @@ -93,17 +93,17 @@ struct at24_data {
>>>   *
>>>   * This value is forced to be a power of two so that writes align on pages.
>>>   */
>>> -static unsigned int io_limit = 128;
>>> -module_param(io_limit, uint, 0000);
>>> -MODULE_PARM_DESC(io_limit, "Maximum bytes per I/O (default 128)");
>>> +static unsigned int at24_io_limit = 128;
>>> +module_param(at24_io_limit, uint, 0000);
>>> +MODULE_PARM_DESC(at24_io_limit, "Maximum bytes per I/O (default 128)");
>>
>> You change the names of the module parameters here. I think this is not
>> a good idea as now you have to pass
>>
>>         at24.at24_io_limit=...
>>
>> on the kernel command line. If you still want this change, I think there
>> is some documentation that needs adaption, too.
>>
>> Best regards
>> Uwe
>>
>>
>> --
>> Pengutronix e.K.                           | Uwe Kleine-König            |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>
> Ugh, right, this must stay as it was. Thanks!
>

Actually we can use module_param_named() here. I'll send a v2.

Thanks,
Bartosz

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ