+ kernel-modulesc-fix-warning.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     kernel/modules.c: fix warning
has been added to the -mm tree.  Its filename is
     kernel-modulesc-fix-warning.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: kernel/modules.c: fix warning
From: Michal Miroslaw <mirq-linux@xxxxxxxxxxxx>

Building with CONFIG_KALLSYMS=n gives following warning:

kernel/module.c: In function `post_relocation':
kernel/module.c:2534:2: warning: passing argument 2 of `add_kallsyms' discards qualifiers from pointer target type
kernel/module.c:2038:13: note: expected `struct load_info *' but argument is of type `const struct load_info *'

Signed-off-by: Michal Miroslaw <mirq-linux@xxxxxxxxxxxx>
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Cc: Tejun Heo <tj@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/module.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/module.c~kernel-modulesc-fix-warning kernel/module.c
--- a/kernel/module.c~kernel-modulesc-fix-warning
+++ a/kernel/module.c
@@ -2035,7 +2035,7 @@ static inline void layout_symtab(struct 
 {
 }
 
-static void add_kallsyms(struct module *mod, struct load_info *info)
+static void add_kallsyms(struct module *mod, const struct load_info *info)
 {
 }
 #endif /* CONFIG_KALLSYMS */
_

Patches currently in -mm which might be from mirq-linux@xxxxxxxxxxxx are

kernel-modulesc-fix-warning.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux