(trivial) Fix compiler warning in kernel/modules.c
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 19 Sep 2010 23:58:08 +0000 (01:58 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Oct 2010 10:03:05 +0000 (20:33 +1030)
commitabbce906d05ec37289cd0c3b4e35b2db26eab19b
treeb3919579d27e040bd4005f08073f9fbe12090387
parentf9ba5375a8aae4aeea6be15df77e24707a429812
(trivial) Fix compiler warning in kernel/modules.c

Building with CONFIG_KALLSYMS=n gives following warning:

/mnt/src/linux-git/kernel/module.c: In function ‘post_relocation’:
/mnt/src/linux-git/kernel/module.c:2534:2: warning: passing argument 2 of ‘add_kallsyms’ discards qualifiers from pointer target type
/mnt/src/linux-git/kernel/module.c:2038:13: note: expected ‘struct load_info *’ but argument is of type ‘const struct load_info *’

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c