* linux-next: rr tree build warning
@ 2009-11-12 8:21 Stephen Rothwell
2009-11-12 13:15 ` Rusty Russell
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2009-11-12 8:21 UTC (permalink / raw)
To: Rusty Russell; +Cc: linux-next, linux-kernel, Alan Jenkins
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
Hi Rusty,
Today's linux-next build (i386 defconfig) produced this warning:
kernel/module.c:1953: warning: 'crc_section_names' defined but not used
Introduced by commit 67260d90118a2394df528fe4e37e814d950ca5b5 ("module:
refactor symbol tables and try to reduce code size of each_symbol()").
This build has CONFIG_MODVERSIONS disabled.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: linux-next: rr tree build warning
2009-11-12 8:21 linux-next: rr tree build warning Stephen Rothwell
@ 2009-11-12 13:15 ` Rusty Russell
0 siblings, 0 replies; 6+ messages in thread
From: Rusty Russell @ 2009-11-12 13:15 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Alan Jenkins
On Thu, 12 Nov 2009 06:51:14 pm Stephen Rothwell wrote:
> Hi Rusty,
>
> Today's linux-next build (i386 defconfig) produced this warning:
>
> kernel/module.c:1953: warning: 'crc_section_names' defined but not used
>
> Introduced by commit 67260d90118a2394df528fe4e37e814d950ca5b5 ("module:
> refactor symbol tables and try to reduce code size of each_symbol()").
> This build has CONFIG_MODVERSIONS disabled.
Thanks. I hit that warning in my config too, but didn't notice :(
Subject: Fix warning for CONFIG_MODVERSIONS=n:
linux-next Maestro Stephen Rothwell reports:
Today's linux-next build (i386 defconfig) produced this warning:
kernel/module.c:1953: warning: 'crc_section_names' defined but not used
Introduced by commit 67260d90118a2394df528fe4e37e814d950ca5b5 ("module:
refactor symbol tables and try to reduce code size of each_symbol()").
This build has CONFIG_MODVERSIONS disabled.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
diff --git a/kernel/module.c b/kernel/module.c
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1075,6 +1075,16 @@ static int try_to_force_load(struct modu
}
#ifdef CONFIG_MODVERSIONS
+static const char *crc_section_names[] = {
+ [EXPORT_TYPE_PLAIN] = "__kcrctab",
+ [EXPORT_TYPE_GPL] = "__kcrctab_gpl",
+#ifdef CONFIG_UNUSED_SYMBOLS
+ [EXPORT_TYPE_UNUSED] = "__kcrctab_unused",
+ [EXPORT_TYPE_UNUSED_GPL] = "__kcrctab_unused_gpl",
+#endif
+ [EXPORT_TYPE_GPL_FUTURE] = "__kcrctab_gpl_future",
+};
+
static int check_version(Elf_Shdr *sechdrs,
unsigned int versindex,
const char *symname,
@@ -2103,16 +2113,6 @@ static const char *export_section_names[
[EXPORT_TYPE_GPL_FUTURE] = "__ksymtab_gpl_future",
};
-static const char *crc_section_names[] = {
- [EXPORT_TYPE_PLAIN] = "__kcrctab",
- [EXPORT_TYPE_GPL] = "__kcrctab_gpl",
-#ifdef CONFIG_UNUSED_SYMBOLS
- [EXPORT_TYPE_UNUSED] = "__kcrctab_unused",
- [EXPORT_TYPE_UNUSED_GPL] = "__kcrctab_unused_gpl",
-#endif
- [EXPORT_TYPE_GPL_FUTURE] = "__kcrctab_gpl_future",
-};
-
/* Allocate and load the module: note that size of section 0 is always
zero, and we rely on this for optional sections. */
static noinline struct module *load_module(void __user *umod,
^ permalink raw reply [flat|nested] 6+ messages in thread
* linux-next: rr tree build warning
@ 2009-12-16 3:58 Stephen Rothwell
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Rothwell @ 2009-12-16 3:58 UTC (permalink / raw)
To: Rusty Russell; +Cc: linux-next, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
Hi Rusty,
Today's linux-next build (x86_64 allmodconfig) produced this warning:
usr/include/linux/kernel.h:53: userspace cannot call function or variable defined in the kernel
(it is the line "extern int __build_bug_on_failed;")
Introduced by commit 3cab06406acbf7f86f443bbde56e28f8047c75b6
("misc:enhance-BUILD_BUG_ON").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* linux-next: rr tree build warning
@ 2009-06-09 6:26 Stephen Rothwell
2009-06-10 6:40 ` Rusty Russell
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2009-06-09 6:26 UTC (permalink / raw)
To: Rusty Russell; +Cc: linux-next, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
Hi Rusty,
Today's linux-next build (x86_64 allmodconfig) produced this warning:
arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1287: warning: passing argument 1 of 'check_supported_cpu' makes pointer from integer without a cast
arch/x86/kernel/cpu/cpufreq/powernow-k8.c:514: note: expected 'void *' but argument is of type 'unsigned int'
Introduced by commit b3594a9ce5fb32533084ec75f1954c93f461591d ("cpumask:
avoid playing with cpus_allowed in powernow-k8.c").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: linux-next: rr tree build warning
2009-06-09 6:26 Stephen Rothwell
@ 2009-06-10 6:40 ` Rusty Russell
2009-06-10 6:46 ` Stephen Rothwell
0 siblings, 1 reply; 6+ messages in thread
From: Rusty Russell @ 2009-06-10 6:40 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, linux-kernel
On Tue, 9 Jun 2009 03:56:36 pm Stephen Rothwell wrote:
> Hi Rusty,
>
> Today's linux-next build (x86_64 allmodconfig) produced this warning:
>
> arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1287: warning: passing argument 1
> of 'check_supported_cpu' makes pointer from integer without a cast
> arch/x86/kernel/cpu/cpufreq/powernow-k8.c:514: note: expected 'void *' but
> argument is of type 'unsigned int'
>
> Introduced by commit b3594a9ce5fb32533084ec75f1954c93f461591d ("cpumask:
> avoid playing with cpus_allowed in powernow-k8.c").
Thanks, I've revisited this patch and fixed this too.
Thanks,
Rusty.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-12-16 3:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 8:21 linux-next: rr tree build warning Stephen Rothwell
2009-11-12 13:15 ` Rusty Russell
-- strict thread matches above, loose matches on Subject: below --
2009-12-16 3:58 Stephen Rothwell
2009-06-09 6:26 Stephen Rothwell
2009-06-10 6:40 ` Rusty Russell
2009-06-10 6:46 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox