[PATCH v2 2/2] UBI: Make mtd parameter readable
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Tue Jan 10 07:38:59 PST 2017
On Tue, 2017-01-10 at 16:31 +0100, Richard Weinberger wrote:
> Andy,
>
> Am 10.01.2017 um 15:35 schrieb Andy Shevchenko:
> > > Did you check? Do other drivers in the kernel that have a parser
> > > behind a non-trivial
> > > module parameter also expose it to user space?
> >
> > Just checked. The only one which is not, this one.
> >
>
> That's an excellent reason. :-)
> But I see also:
> mtd/devices/phram.c:module_param_call(phram, phram_param_call, NULL,
> NULL, 000);
>
> If these two are the only users of 000, let's rip them out to be
> consistent
> with the rest of the kernel.
Okay, this is full(?) list of those. 3 drivers.
$ git grep -n 'module_param_call(.*, 0\+)' drivers/
drivers/ide/ide.c:277:module_param_call(chs, ide_set_disk_chs, NULL,
NULL, 0);
drivers/ide/ide.c:351:module_param_call(ignore_cable,
ide_set_ignore_cable, NULL, NULL, 0);
drivers/mtd/devices/phram.c:301:module_param_call(phram,
phram_param_call, NULL, NULL, 000);
drivers/platform/x86/thinkpad_acpi.c:9666: module_param_call(featur
e, set_ibm_param, NULL, NULL, 0); \
$ git grep -n 'module_param_cb(.*, 0\+)' drivers/
drivers/mtd/ubi/block.c:168:module_param_cb(block, &ubiblock_param_ops,
NULL, 0);
I doubt about worth to fix IDE (last time I sent clean up maintainer
told me not to do).
For thinkpad I will look at.
For MTD let's do it now.
So, would you like me to resend with / send separate fix to the other
one?
--
Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Intel Finland Oy
More information about the linux-mtd
mailing list