Re: linux-next: build warnings in Linus' tree

From: Stephen Rothwell
Date: Fri Sep 17 2010 - 00:26:56 EST


Hi Len,

On Mon, 30 Aug 2010 14:08:02 +0800 Zhang Rui <rui.zhang@xxxxxxxxx> wrote:
>
> On Mon, 2010-08-30 at 09:42 +0800, Stephen Rothwell wrote:
> > Hi Len,
> >
> > On Tue, 17 Aug 2010 11:24:39 +1000 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> > >
> > > Today's linux-next build (x86_64 allmodconfig) produced these warnings:
> > >
> > > drivers/acpi/sysfs.c:152: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type
> > > include/linux/moduleparam.h:165: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'int (*)(const char *, const struct kernel_param *)'

[several more elided]

> > > Introduced by commit 1c8fce27e275fd7c6b75bc6455745f02d3903ee6 ("ACPI:
> > > introduce drivers/acpi/sysfs.c") interacting with commit
> > > 9bbb9e5a33109b2832e2e63dcc7a132924ab374b ("param: use ops in struct
> > > kernel_param, rather than get and set fns directly").
> >
> > Can we have this fixed, please?
> patch attached. :)
>
> Use module_param_cb instead of the obsoleted module_param_call to fix a build warning.
>
> Signed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>

Now that this has been in linux-next since Sep 6, can you please send it
to Linus. It removes quite a few warnings that were introduced during
this merge window - and I think we already have too many warnings.

Thanks.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature