Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-08-02 Thread Michael Ellerman
wrong. > > [...] Applied to powerpc/next. [1/1] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10 https://git.kernel.org/powerpc/c/aff779515a070df7e23da9e86f1096f7d10d647e cheers

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-30 Thread Vladis Dronov
Hello, Michael, - Original Message - > From: "Michael Ellerman" > Subject: Re: [PATCH] powerpc: fix function annotations to avoid section > mismatch warnings with gcc-10 > ... > >> > So what changed? These functions were inlined with older

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-30 Thread Michael Ellerman
it prom_init() -> setup_secure_guest() >> > > __init xive_spapr_init() -> xive_spapr_disabled() >> > >> > So what changed? These functions were inlined with older compilers, but >> > not anymore? >> >> Yes, exactly. Gcc-10 does not inline the

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-29 Thread Segher Boessenkool
d() > > > > So what changed? These functions were inlined with older compilers, but > > not anymore? > > Yes, exactly. Gcc-10 does not inline them anymore. If this is because of my > build system, this can happen to others also. > > The same thing was fixed by

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-29 Thread Vladis Dronov
20 4:49:49 PM > Subject: Re: [PATCH] powerpc: fix function annotations to avoid section > mismatch warnings with gcc-10 > > On Wed, Jul 29, 2020 at 03:37:41PM +0200, Vladis Dronov wrote: > > Certain warnings are emitted for powerpc code when building with a gcc-10 > > toolset: &g

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-29 Thread Segher Boessenkool
On Wed, Jul 29, 2020 at 03:37:41PM +0200, Vladis Dronov wrote: > Certain warnings are emitted for powerpc code when building with a gcc-10 > toolset: > > WARNING: modpost: vmlinux.o(.text.unlikely+0x377c): Section mismatch in > reference from the function remove_pmd_table() to the function

[PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-29 Thread Vladis Dronov
Certain warnings are emitted for powerpc code when building with a gcc-10 toolset: WARNING: modpost: vmlinux.o(.text.unlikely+0x377c): Section mismatch in reference from the function remove_pmd_table() to the function .meminit.text:split_kernel_mapping() The function remove_pmd_tab

[PATCH AUTOSEL 5.6 016/606] gcc-10: mark more functions __init to avoid section mismatch warnings

2020-06-08 Thread Sasha Levin
From: Linus Torvalds commit e99332e7b4cda6e60f5b5916cf9943a79dbef902 upstream. It seems that for whatever reason, gcc-10 ends up not inlining a couple of functions that used to be inlined before. Even if they only have one single callsite - it looks like gcc may have decided that the code was u

[PATCH 5.6 132/194] gcc-10: mark more functions __init to avoid section mismatch warnings

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit e99332e7b4cda6e60f5b5916cf9943a79dbef902 upstream. It seems that for whatever reason, gcc-10 ends up not inlining a couple of functions that used to be inlined before. Even if they only have one single callsite - it looks like gcc may have decided that the code was u

[PATCH 5.4 101/147] gcc-10: mark more functions __init to avoid section mismatch warnings

2020-05-18 Thread Greg Kroah-Hartman
From: Linus Torvalds commit e99332e7b4cda6e60f5b5916cf9943a79dbef902 upstream. It seems that for whatever reason, gcc-10 ends up not inlining a couple of functions that used to be inlined before. Even if they only have one single callsite - it looks like gcc may have decided that the code was u

[PATCH AUTOSEL 5.6 59/62] gcc-10: mark more functions __init to avoid section mismatch warnings

2020-05-14 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit e99332e7b4cda6e60f5b5916cf9943a79dbef902 ] It seems that for whatever reason, gcc-10 ends up not inlining a couple of functions that used to be inlined before. Even if they only have one single callsite - it looks like gcc may have decided that the code wa

[PATCH AUTOSEL 5.4 46/49] gcc-10: mark more functions __init to avoid section mismatch warnings

2020-05-14 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit e99332e7b4cda6e60f5b5916cf9943a79dbef902 ] It seems that for whatever reason, gcc-10 ends up not inlining a couple of functions that used to be inlined before. Even if they only have one single callsite - it looks like gcc may have decided that the code wa

[PATCH 4.4 035/266] powerpc/64s: Fix section mismatch warnings from setup_rfi_flush()

2019-05-15 Thread Greg Kroah-Hartman
From: Michael Ellerman commit 501a78cbc17c329fabf8e9750a1e9ab810c88a0e upstream. The recent LPM changes to setup_rfi_flush() are causing some section mismatch warnings because we removed the __init annotation on setup_rfi_flush(): The function setup_rfi_flush() references the function

[PATCH v2 0/2] modpost: skip section mismatch warnings on ELF local symbols by default

2018-11-14 Thread Paul Walmsley
modpost reports section mismatch warnings on ELF local symbols. This caused false positive warnings to be reported for a local symbol name that would otherwise be elided by matching against a name pattern. This was observed using a RISC-V gcc 8.2.0 toolchain that generates section anchors. To

Re: [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default

2018-11-14 Thread Paul Walmsley
Hi Sam, On Sat, 20 Oct 2018, Sam Ravnborg wrote: modpost is not supposed to be used outside the kernel build. And therefore if we introduce a new option then the infrastructure to enable that option should also be in place. In this particular case I cannot see why we should add the possibility

Re: [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default

2018-10-20 Thread Sam Ravnborg
Hi Paul. > modpost: skip section mismatch warnings on ELF local symbols by default > > modpost, by default, reports section mismatch warnings on ELF local > symbols. This caused false positive warnings to be reported for a > local symbol name that would otherwise be elided by mat

[PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default

2018-10-20 Thread Paul Walmsley
modpost: skip section mismatch warnings on ELF local symbols by default modpost, by default, reports section mismatch warnings on ELF local symbols. This caused false positive warnings to be reported for a local symbol name that would otherwise be elided by matching against a name pattern. This

[PATCH 4.9 45/61] powerpc/64s: Fix section mismatch warnings from setup_rfi_flush()

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 501a78cbc17c329fabf8e9750a1e9ab810c88a0e upstream. The recent LPM changes to setup_rfi_flush() are causing some section mismatch warnings because we removed the __init

[PATCH 4.14 055/496] powerpc/64s: Fix section mismatch warnings from setup_rfi_flush()

2018-05-28 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 501a78cbc17c329fabf8e9750a1e9ab810c88a0e upstream. The recent LPM changes to setup_rfi_flush() are causing some section mismatch warnings because we removed the __init

Re: [PATCH] staging: bcm2835-camera: Fix module section mismatch warnings.

2018-05-14 Thread Greg Kroah-Hartman
On Mon, May 14, 2018 at 08:44:11AM +0100, Eric Anholt wrote: > Noticed by Stephen Rothwell in -next. > > Signed-off-by: Eric Anholt > Fixes: 4bebb0312ea9 ("staging/bcm2835-camera: Set ourselves up as a platform > driver.") > Cc: Stephen Rothwell Should be: Reported-by: Stephen Rothwell I'll

[PATCH] staging: bcm2835-camera: Fix module section mismatch warnings.

2018-05-14 Thread Eric Anholt
Noticed by Stephen Rothwell in -next. Signed-off-by: Eric Anholt Fixes: 4bebb0312ea9 ("staging/bcm2835-camera: Set ourselves up as a platform driver.") Cc: Stephen Rothwell --- Note: only compile tested here. .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 8 1 file chan

Re: [PATCH v3] powerpc/64: Fix section mismatch warnings for early boot symbols

2018-04-10 Thread Mauricio Faria de Oliveira
On 04/09/2018 11:51 PM, Michael Ellerman wrote: Thanks for picking this one up. I hate to be a pain ... but before we merge this and proliferate these names, I'd like to change the names of some of these early asm functions. They're terribly named due to historical reasons. Indeed :) No worrie

Re: [PATCH v3] powerpc/64: Fix section mismatch warnings for early boot symbols

2018-04-09 Thread Michael Ellerman
mes. > > Subject: [PATCH] powerpc/64: quieten section mismatch warnings > From: Nicholas Piggin > Date: Fri Dec 23 00:14:19 AEDT 2016 > > This resolves the following section mismatch warnings: > > WARNING: vmlinux.o(.text+0x2fa8): Section mismatch in

[PATCH v3] powerpc/64: Fix section mismatch warnings for early boot symbols

2018-04-05 Thread Mauricio Faria de Oliveira
we may not be able to tolerate a branch trampoline to reach the init function. Credits: code and message are based on 2016 patch by Nicholas Piggin, and slightly modified so not to rename the powerpc code/symbol names. Subject: [PATCH] powerpc/64: quieten section mismatch warnings From

[PATCH 3.2 021/104] modpost: don't emit section mismatch warnings for compiler optimizations

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Paul Gortmaker commit 4a3893d069b788f3570c19c12d9e986e8e15870f upstream. Currently an allyesconfig build [gcc-4.9.1] can generate the following: WARNING: vmlinux.o(.text.unlikely+0x3864):

[PATCH v2] powerpc/64: Fix section mismatch warnings for early boot symbols

2018-03-09 Thread Mauricio Faria de Oliveira
we may not be able to tolerate a branch trampoline to reach the init function. Credits: code and message are based on 2016 patch by Nicholas Piggin, and slightly modified so not to rename the powerpc code/symbol names. Subject: [PATCH] powerpc/64: quieten section mismatch warnings From

[PATCH] powerpc/64: Fix section mismatch warnings for early boot symbols

2018-03-09 Thread Mauricio Faria de Oliveira
we may not be able to tolerate a branch trampoline to reach the init function. Credits: code and message are based on 2016 patch by Nicholas Piggin, and slightly modified so not to rename the powerpc code/symbol names. Subject: [PATCH] powerpc/64: quieten section mismatch warnings From

[PATCH 3.16 205/294] modpost: don't emit section mismatch warnings for compiler optimizations

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Paul Gortmaker commit 4a3893d069b788f3570c19c12d9e986e8e15870f upstream. Currently an allyesconfig build [gcc-4.9.1] can generate the following: WARNING: vmlinux.o(.text.unlikely+0x3864):

Re: [PATCH] omap: hwmod: fix section mismatch warnings

2017-09-18 Thread Tony Lindgren
* Arnd Bergmann [170915 12:46]: > Older compilers choose not to inline _setup_clkctrl_provider(), > leading to a harmless warning: > > WARNING: vmlinux.o(.text+0x27b34): Section mismatch in reference from the > function _setup_clkctrl_provider() to the function > .init.text:memblock_virt_alloc_

[PATCH] omap: hwmod: fix section mismatch warnings

2017-09-15 Thread Arnd Bergmann
Older compilers choose not to inline _setup_clkctrl_provider(), leading to a harmless warning: WARNING: vmlinux.o(.text+0x27b34): Section mismatch in reference from the function _setup_clkctrl_provider() to the function .init.text:memblock_virt_alloc_try_nid() The function _setup_clkctrl_provide

[PATCH 3.18 64/68] modpost: dont emit section mismatch warnings for compiler optimizations

2017-05-05 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paul Gortmaker commit 4a3893d069b788f3570c19c12d9e986e8e15870f upstream. Currently an allyesconfig build [gcc-4.9.1] can generate the following: WARNING: vmlinux.o(.text.unlikely+0x3864):

arch/x86: sfi: intel_scu_devices_create() section mismatch warnings

2015-12-18 Thread Darren Hart
I noticed the following in my build logs: WARNING: vmlinux.o(.text+0xa90d8): Section mismatch in reference from the function intel_scu_devices_create() to the function .init.text:i2c_register_board_info() The function intel_scu_devices_create() references the function __init i2c_register_board_inf

Re: [PATCH 2/2] modpost: don't emit section mismatch warnings for compiler optimizations

2015-04-19 Thread Rusty Russell
Paul Gortmaker writes: > Currently an allyesconfig build [gcc-4.9.1] can generate the following: > >WARNING: vmlinux.o(.text.unlikely+0x3864): Section mismatch in >reference from the function cpumask_empty.constprop.3() to the >variable .init.data:nmi_ipi_mask > > which comes from the

[PATCH 2/2] modpost: don't emit section mismatch warnings for compiler optimizations

2015-04-19 Thread Paul Gortmaker
Currently an allyesconfig build [gcc-4.9.1] can generate the following: WARNING: vmlinux.o(.text.unlikely+0x3864): Section mismatch in reference from the function cpumask_empty.constprop.3() to the variable .init.data:nmi_ipi_mask which comes from the cpumask_empty usage in arch/x86/kern

Re: [PATCH] gianfar: Fix the section mismatch warnings.

2014-06-04 Thread David Miller
From: Xiubo Li Date: Wed, 4 Jun 2014 16:49:16 +0800 > Building with CONFIG_DEBUG_SECTION_MISMATCH enabled, the following > WARNING is occured: > > LD drivers/net/built-in.o > WARNING: drivers/net/built-in.o(.text+0xcd4c): Section mismatch in > reference from the function gfar_probe() to t

[PATCH] gianfar: Fix the section mismatch warnings.

2014-06-04 Thread Xiubo Li
Building with CONFIG_DEBUG_SECTION_MISMATCH enabled, the following WARNING is occured: LD drivers/net/built-in.o WARNING: drivers/net/built-in.o(.text+0xcd4c): Section mismatch in reference from the function gfar_probe() to the function .init.text:gfar_init_addr_hash_table() The function gf

[PATCH] xen: resolve section mismatch warnings in xen-acpi-processor

2013-04-18 Thread Ben Guthro
The following resolves a section mismatch warning below in xen-acpi-processor introduced by 3fac10145b766a2244422788f62dc35978613fd8 [13/13] xen: Re-upload processor PM data to hypervisor after S3 resume (v2) Warning: WARNING: drivers/xen/built-in.o(.text+0x2056a): Section mismatch in reference

[PATCH] xen: resolve section mismatch warnings

2013-04-18 Thread Ben Guthro
--- drivers/xen/xen-acpi-processor.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c index 86b6f69..285e3d5 100644 --- a/drivers/xen/xen-acpi-processor.c +++ b/drivers/xen/xen-acpi-processor.c @@ -470,7

[for-next][PATCH 6/6] tracing: Fix some section mismatch warnings

2013-03-04 Thread Steven Rostedt
From: Li Zefan As we've added __init annotation to field-defining functions, we should add __refdata annotation to event_call variables, which reference those functions. Link: http://lkml.kernel.org/r/51343c1f.2050...@huawei.com Reported-by: Fengguang Wu Signed-off-by: Li Zefan Signed-off-by:

[PATCH 10/17] ARM: s3c24xx: fix multiple section mismatch warnings

2012-10-02 Thread Arnd Bergmann
The *_irq_add function should not be marked __init because the driver subsystem thinks they might be called at a later stage. The usb_simtec_init function accesses initdata and should be marked init. This is safe because the only caller is also an init function. Without this patch, building s3c24

Re: [PATCH v2] media: davinci: fix section mismatch warnings

2012-08-14 Thread Laurent Pinchart
Hi Prabhakar, Thanks for the patch. On Tuesday 14 August 2012 10:53:09 Prabhakar Lad wrote: > From: Lad, Prabhakar > > This patch fixes section mismatch warnings for > davinci video drivers. > > Signed-off-by: Lad, Prabhakar > Signed-off-by: Manjunath Hadli Acked

[PATCH v2] media: davinci: fix section mismatch warnings

2012-08-13 Thread Prabhakar Lad
From: Lad, Prabhakar This patch fixes section mismatch warnings for davinci video drivers. Signed-off-by: Lad, Prabhakar Signed-off-by: Manjunath Hadli --- Changes for v2: 1: Annotate probe with __devinit. 2: Fixed the commit message. drivers/media/video/davinci/dm355_ccdc.c |2

Re: [Fixed PATCH] hpt366: fix section mismatch warnings

2008-02-24 Thread Sam Ravnborg
On Sun, Feb 24, 2008 at 03:33:51PM +0100, Bartlomiej Zolnierkiewicz wrote: > On Saturday 23 February 2008, Sam Ravnborg wrote: > > hpt366: fix section mismatch warnings > > > > Fix following warnings: > > WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch

Re: [Fixed PATCH] hpt366: fix section mismatch warnings

2008-02-24 Thread Bartlomiej Zolnierkiewicz
On Saturday 23 February 2008, Sam Ravnborg wrote: > hpt366: fix section mismatch warnings > > Fix following warnings: > WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference > from the variable hpt37x_info.0 to the variable .devinit.data:hpt370 >

[Fixed PATCH] hpt366: fix section mismatch warnings

2008-02-23 Thread Sam Ravnborg
hpt366: fix section mismatch warnings Fix following warnings: WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370 WARNING: o-sparc64/vmlinux.o(.data+0x195a40): Section mismatch in reference from the

Re: [PATCH] hpt366: fix section mismatch warnings

2008-02-22 Thread Bartlomiej Zolnierkiewicz
On Friday 22 February 2008, Sergei Shtylyov wrote: > Sam Ravnborg wrote: > > > hpt366: fix section mismatch warnings > > > Fix following warnings: > > WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference > > from the varia

Re: [PATCH] hpt366: fix section mismatch warnings

2008-02-22 Thread Sam Ravnborg
> @@ -1570,11 +1570,13 @@ static int __devinit hpt366_init_one(struct pci_dev > *dev, const struct pci_devic > if (rev < 3) > info = &hpt36x; > else { > - static const struct hpt_info *hpt37x_info[] = > -

Re: [PATCH] hpt366: fix section mismatch warnings

2008-02-22 Thread Sergei Shtylyov
Sam Ravnborg wrote: hpt366: fix section mismatch warnings Fix following warnings: WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370 WARNING: o-sparc64/vmlinux.o(.data+0x195a40): Section mismatch

[PATCH] hpt366: fix section mismatch warnings

2008-02-22 Thread Sam Ravnborg
hpt366: fix section mismatch warnings Fix following warnings: WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370 WARNING: o-sparc64/vmlinux.o(.data+0x195a40): Section mismatch in reference from the

mm section mismatch warnings for ps3

2008-02-18 Thread Geert Uytterhoeven
When building current mainline for ps3_defconfig, I get the following mm-related section mismatches: | WARNING: mm/built-in.o(.text+0x25094): Section mismatch in reference from the function .sparse_add_one_section() to the function .meminit.text:.sparse_index_init() | The function .sparse_add_on

Re: [PATCH 27/27] [ALSA] hdsp - fix section mismatch warnings

2008-02-18 Thread Takashi Iwai
At Mon, 18 Feb 2008 08:45:08 +0100, Sam Ravnborg wrote: > > On Mon, Feb 18, 2008 at 07:43:32AM +0100, Takashi Iwai wrote: > > At Sun, 17 Feb 2008 13:23:04 +0100, > > Sam Ravnborg wrote: > > > > > > Fix following warnings: > > > WARNING: sound/pci/rme9652/snd-hdsp.o(.text+0x34bc): Section mismatch

Re: [PATCH 27/27] [ALSA] hdsp - fix section mismatch warnings

2008-02-17 Thread Sam Ravnborg
On Mon, Feb 18, 2008 at 07:43:32AM +0100, Takashi Iwai wrote: > At Sun, 17 Feb 2008 13:23:04 +0100, > Sam Ravnborg wrote: > > > > Fix following warnings: > > WARNING: sound/pci/rme9652/snd-hdsp.o(.text+0x34bc): Section mismatch in > > reference from the function hdsp_check_for_firmware() to the f

Re: [PATCH 27/27] [ALSA] hdsp - fix section mismatch warnings

2008-02-17 Thread Takashi Iwai
At Sun, 17 Feb 2008 13:23:04 +0100, Sam Ravnborg wrote: > > Fix following warnings: > WARNING: sound/pci/rme9652/snd-hdsp.o(.text+0x34bc): Section mismatch in > reference from the function hdsp_check_for_firmware() to the function > .devinit.text:hdsp_request_fw_loader() > WARNING: sound/pci/rme

Re: [PATCH 17/27] acer-wmi: fix section mismatch warnings

2008-02-17 Thread Sam Ravnborg
On Sun, Feb 17, 2008 at 01:03:55PM +, Carlos Corbacho wrote: > On Sunday 17 February 2008 12:22:54 Sam Ravnborg wrote: > > Fix following warnings: > > WARNING: vmlinux.o(.text+0x672615): Section mismatch in reference from the > > function acer_platform_remove() to the function > > .exit.text:ac

Re: [PATCH 17/27] acer-wmi: fix section mismatch warnings

2008-02-17 Thread Carlos Corbacho
On Sunday 17 February 2008 12:22:54 Sam Ravnborg wrote: > Fix following warnings: > WARNING: vmlinux.o(.text+0x672615): Section mismatch in reference from the > function acer_platform_remove() to the function > .exit.text:acer_backlight_exit() WARNING: vmlinux.o(.devinit.text+0x1e859): > Section mi

[PATCH 05/27] cpu: fix section mismatch warnings in hotcpu_register

2008-02-17 Thread Sam Ravnborg
Fix following warnings: WARNING: vmlinux.o(.data+0x5020): Section mismatch in reference from the variable cpu_vsyscall_notifier_nb.12876 to the function .cpuinit.text:cpu_vsyscall_notifier() WARNING: vmlinux.o(.data+0x9ce0): Section mismatch in reference from the variable profile_cpu_callback_nb

[PATCH 17/27] acer-wmi: fix section mismatch warnings

2008-02-17 Thread Sam Ravnborg
Fix following warnings: WARNING: vmlinux.o(.text+0x672615): Section mismatch in reference from the function acer_platform_remove() to the function .exit.text:acer_backlight_exit() WARNING: vmlinux.o(.devinit.text+0x1e859): Section mismatch in reference from the function acer_platform_probe() to t

[PATCH 01/27] serial: silence section mismatch warnings in 8250_pci

2008-02-17 Thread Sam Ravnborg
Fix following warnings: WARNING: drivers/serial/built-in.o(.data+0x5b8): Section mismatch in reference from the variable pci_serial_quirks to the function .devexit.text:pci_ite887x_exit() WARNING: drivers/serial/built-in.o(.data+0x5e0): Section mismatch in reference from the variable pci_serial_

[PATCH 27/27] [ALSA] hdsp - fix section mismatch warnings

2008-02-17 Thread Sam Ravnborg
Fix following warnings: WARNING: sound/pci/rme9652/snd-hdsp.o(.text+0x34bc): Section mismatch in reference from the function hdsp_check_for_firmware() to the function .devinit.text:hdsp_request_fw_loader() WARNING: sound/pci/rme9652/snd-hdsp.o(.text+0x4ac6): Section mismatch in reference from th

[PATCH 15/27] cpufreq: fix section mismatch warnings

2008-02-17 Thread Sam Ravnborg
Fix the following warnings: WARNING: vmlinux.o(.text+0xfe6711): Section mismatch in reference from the function cpufreq_unregister_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier WARNING: vmlinux.o(.text+0xfe68af): Section mismatch in reference from the function cpufreq_register_driv

[PATCH 18/27] video: fix section mismatch warnings in uvesafb

2008-02-17 Thread Sam Ravnborg
Fix following warnings: WARNING: vmlinux.o(.text+0x51961b): Section mismatch in reference from the function param_set_scroll() to the variable .devinit.data:mtrr WARNING: vmlinux.o(.text+0x519641): Section mismatch in reference from the function param_set_scroll() to the variable .devinit.data:mt

[PATCH 07/27] cpu: fix section mismatch warnings in *cpu_down

2008-02-17 Thread Sam Ravnborg
Fix following warnings: WARNING: vmlinux.o(.text+0x75c8d): Section mismatch in reference from the function take_cpu_down() to the variable .cpuinit.data:cpu_chain WARNING: vmlinux.o(.text+0x75d2a): Section mismatch in reference from the function _cpu_down() to the variable .cpuinit.data:cpu_chain

[PATCH 03/27] pcmcia: silence section mismatch warnings from class_interface variables

2008-02-17 Thread Sam Ravnborg
Silence the following warnings: WARNING: drivers/pcmcia/built-in.o(.data+0x348): Section mismatch in reference from the variable pccard_sysfs_interface to the function .devinit.text:pccard_sysfs_add_socket() WARNING: drivers/pcmcia/built-in.o(.data+0x350): Section mismatch in reference from the

[PATCH 04/27] pcmcia: silence section mismatch warnings from pci_driver variables

2008-02-17 Thread Sam Ravnborg
Silence following warnings: WARNING: drivers/pcmcia/built-in.o(.data+0x14e0): Section mismatch in reference from the variable pd6729_pci_drv to the function .devinit.text:pd6729_pci_probe() WARNING: drivers/pcmcia/built-in.o(.data+0x14e8): Section mismatch in reference from the variable pd6729_p

Re: [PATCH] wireless/ath5k: renamed to ath5k_pci_driver to fix Section mismatch warnings

2008-02-04 Thread John W. Linville
On Sat, Feb 02, 2008 at 10:55:10AM +0800, Denis Cheng wrote: > the struct pci_driver refered ath5k_pci_id_table which in __devinit section, > the sparse tool suggest this renamed to "*driver", kills mismatch warnings. > > Signed-off-by: Denis Cheng <[EMAIL PROTECTED]> Sorry, I beat you to it on F

Re: [PATCH 0/5] isdn: fix section mismatch warnings in isdn

2008-02-03 Thread Karsten Keil
On Fri, Feb 01, 2008 at 02:38:38PM +0100, Sam Ravnborg wrote: > drivers/isdn resulted in 34 section mismatch warnings - so > I decided to give them a try. > This resulted in 5 simple patches. > > I know Jeff Garzik has some ISDN clean-up patches pending > but rather than waiti

Re: [PATCH] wireless/ath5k: renamed to ath5k_pci_driver to fix Section mismatch warnings

2008-02-02 Thread Nick Kossifidis
2008/2/2, Denis Cheng <[EMAIL PROTECTED]>: > the struct pci_driver refered ath5k_pci_id_table which in __devinit section, > the sparse tool suggest this renamed to "*driver", kills mismatch warnings. > > Signed-off-by: Denis Cheng <[EMAIL PROTECTED]> > --- > drivers/net/wireless/ath5k/base.c |

Re: [PATCH] pci: fix section mismatch warnings referring to pci_do_scan_bus

2008-02-02 Thread Sam Ravnborg
On Thu, Jan 31, 2008 at 11:10:30PM +0100, Sam Ravnborg wrote: > Fix following warnings: > WARNING: o-x86_64/drivers/pci/built-in.o(.text+0xb054): Section mismatch in > reference from the function cpci_configure_slot() to the function > .devinit.text:pci_do_scan_bus() > WARNING: o-x86_64/drivers/p

[PATCH] wireless/ath5k: renamed to ath5k_pci_driver to fix Section mismatch warnings

2008-02-01 Thread Denis Cheng
the struct pci_driver refered ath5k_pci_id_table which in __devinit section, the sparse tool suggest this renamed to "*driver", kills mismatch warnings. Signed-off-by: Denis Cheng <[EMAIL PROTECTED]> --- drivers/net/wireless/ath5k/base.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletion

Re: [PATCH] serial: silence section mismatch warnings in 8250_pci

2008-02-01 Thread Sam Ravnborg
Hi Andrew. Again I rely on you to pick up the patches. But let me know if you prefer another route toward mainline. And I obviously expect the Cc: people to review the changes albeit this serie is trivial. This is on top of my local tree and not -mm - so yell at me and drop anything that does no

[PATCH] serial: silence section mismatch warnings in 8250_pci

2008-02-01 Thread Sam Ravnborg
Fix following warnings: WARNING: drivers/serial/built-in.o(.data+0x5b8): Section mismatch in reference from the variable pci_serial_quirks to the function .devexit.text:pci_ite887x_exit() WARNING: drivers/serial/built-in.o(.data+0x5e0): Section mismatch in reference from the variable pci_serial_

[PATCH] pcmcia: silence section mismatch warnings from class_interface variables

2008-02-01 Thread Sam Ravnborg
Silence the following warnings: WARNING: drivers/pcmcia/built-in.o(.data+0x348): Section mismatch in reference from the variable pccard_sysfs_interface to the function .devinit.text:pccard_sysfs_add_socket() WARNING: drivers/pcmcia/built-in.o(.data+0x350): Section mismatch in reference from the

[PATCH] pcmcia: silence section mismatch warnings from pci_driver variables

2008-02-01 Thread Sam Ravnborg
Silence following warnings: WARNING: drivers/pcmcia/built-in.o(.data+0x14e0): Section mismatch in reference from the variable pd6729_pci_drv to the function .devinit.text:pd6729_pci_probe() WARNING: drivers/pcmcia/built-in.o(.data+0x14e8): Section mismatch in reference from the variable pd6729_p

Re: [PATCH 0/5] isdn: fix section mismatch warnings in isdn

2008-02-01 Thread Jeff Garzik
Sam Ravnborg wrote: I know Jeff Garzik has some ISDN clean-up patches pending but rather than waiting forever to have them acked I deciced to fix the warnings in the current kernel. Please do... Those patches are not going to be submitted for the current merge window, as I had higher priorit

Re: [PATCH 0/5] isdn: fix section mismatch warnings in isdn

2008-02-01 Thread Sam Ravnborg
If anyone like to test it here is a cumulative patch. Sam diff --git a/drivers/isdn/hisax/amd7930_fn.c b/drivers/isdn/hisax/amd7930_fn.c index c0d7036..341faf5 100644 --- a/drivers/isdn/hisax/amd7930_fn.c +++ b/drivers/isdn/hisax/amd7930_fn.c @@ -744,8 +744,7 @@ dbusy_timer_handler(struct

[PATCH] isdn: fix section mismatch warnings from hisax_cs_setup_card

2008-02-01 Thread Sam Ravnborg
Fix the following warnings: WARNING: drivers/isdn/hisax/built-in.o(.text+0x722): Section mismatch in reference from the function hisax_cs_setup_card() to the function .devinit.text:setup_teles3() WARNING: drivers/isdn/hisax/built-in.o(.text+0x72c): Section mismatch in reference from the function

[PATCH] isdn: fix section mismatch warnings in isac.c and isar.c

2008-02-01 Thread Sam Ravnborg
Fix the following warnings: WARNING: drivers/isdn/hisax/built-in.o(.text+0x1b276): Section mismatch in reference from the function inithscxisac() to the function .devinit.text:clear_pending_isac_ints() WARNING: drivers/isdn/hisax/built-in.o(.text+0x1b286): Section mismatch in reference from the

[PATCH 0/5] isdn: fix section mismatch warnings in isdn

2008-02-01 Thread Sam Ravnborg
drivers/isdn resulted in 34 section mismatch warnings - so I decided to give them a try. This resulted in 5 simple patches. I know Jeff Garzik has some ISDN clean-up patches pending but rather than waiting forever to have them acked I deciced to fix the warnings in the current kernel. This for

Re: [PATCH 0/11] fix 25 section mismatch warnings..

2008-01-31 Thread Ingo Molnar
* Sam Ravnborg <[EMAIL PROTECTED]> wrote: > x86: fix section mismatch warning in acpi/boot.c > x86: silence section mismatch warning in smpboot_64.c > x86: fix section mismatch warning in kernel/pci-calgary > x86: fix section mismatch warnings when ref

[PATCH] x86: fix section mismatch warnings when referencing notifiers

2008-01-31 Thread Sam Ravnborg
Fix the following warnings: WARNING: arch/x86/kernel/built-in.o(.exit.text+0xf8): Section mismatch in reference from the function msr_exit() to the variable .cpuinit.data:msr_class_cpu_notifier WARNING: arch/x86/kernel/built-in.o(.exit.text+0x158): Section mismatch in reference from the function

[PATCH] cpu: fix section mismatch warnings for enable_nonboot_cpus

2008-01-31 Thread Sam Ravnborg
Fix following warning: WARNING: o-x86_64/kernel/built-in.o(.text+0x36d8b): Section mismatch in reference from the function enable_nonboot_cpus() to the function .cpuinit.text:_cpu_up() enable_nonboot_cpus() are used solely from CONFIG_CONFIG_PM_SLEEP_SMP=y and PM_SLEEP_SMP imply HOTPLUG_CPU ther

[PATCH] cpu: silence section mismatch warnings for hotcpu notifies

2008-01-31 Thread Sam Ravnborg
The hotcpu_notifier is used to create notifiers to be called later. It really looks like the functions that are registered are only relevant in a HOTPLUG_CPU configuration and the correct fix was to wrap them in an #ifdef / #endif or similar. But for now just tell modpost to silence the warning by

[PATCH] pci: fix 4x section mismatch warnings

2008-01-31 Thread Sam Ravnborg
The following warnings were issued during build of drivers/pci with an allyesconfig build: WARNING: o-x86_64/drivers/pci/built-in.o(.text+0xdaf): Section mismatch in reference from the function pci_add_new_bus() to the function .devinit.text:pci_alloc_child_bus() WARNING: o-x86_64/drivers/pci/bui

[PATCH] pci: fix section mismatch warnings referring to pci_do_scan_bus

2008-01-31 Thread Sam Ravnborg
Fix following warnings: WARNING: o-x86_64/drivers/pci/built-in.o(.text+0xb054): Section mismatch in reference from the function cpci_configure_slot() to the function .devinit.text:pci_do_scan_bus() WARNING: o-x86_64/drivers/pci/built-in.o(.text+0x153ab): Section mismatch in reference from the fu

[PATCH 0/11] fix 25 section mismatch warnings..

2008-01-31 Thread Sam Ravnborg
The following set of patches fixes 25 Section mismatch warnings in following directories: kernel/ mm/ drivers/pci arch/x86/ When build individually they are now clean. The shortlog: Sam Ravnborg (11): pci: fix section mismatch warnings referring to pci_do_scan_bus pci: fix 4x

Re: [PATCH 0/8] x86: fix section mismatch warnings

2008-01-28 Thread Ingo Molnar
* Sam Ravnborg <[EMAIL PROTECTED]> wrote: > The following serie of 8 patches contains: > > x86: fix Section mismatch warning in srat_64.c > => straightforward - please apply > > x86: fix Section mismatch warning in mcheck/mce_64.c > => I took some assumptions on use of notifier. >See commen

[PATCH 0/8] x86: fix section mismatch warnings

2008-01-26 Thread Sam Ravnborg
The following serie of 8 patches contains: x86: fix Section mismatch warning in srat_64.c => straightforward - please apply x86: fix Section mismatch warning in mcheck/mce_64.c => I took some assumptions on use of notifier. See comments and please review before applying x86: fix Section misma

Re: Help needed to fix section mismatch warnings

2008-01-19 Thread Sam Ravnborg
s for the 3 above. However, the rcu code in -mm > > is quite different, so the rcu patch may have a short life. > > Hi Randy. > > Thanks for your efforts! And I just reviewd the three patches. All oops triggers under special conditions. It is stuff like this that ma

Re: Help needed to fix section mismatch warnings

2008-01-19 Thread Sam Ravnborg
On Sat, Jan 19, 2008 at 11:52:55AM -0800, Randy Dunlap wrote: > On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > > > kbuild emit section mismatch warnings when it detects that someone does a > > call from a non-init section to a init section. > > The rationale here

Re: Help needed to fix section mismatch warnings

2008-01-19 Thread Randy Dunlap
On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > kbuild emit section mismatch warnings when it detects that someone does a > call from a non-init section to a init section. > The rationale here is that the init section are discarded at runtime and > if this call happens af

Re: Help needed to fix section mismatch warnings

2008-01-11 Thread Sam Ravnborg
On Thu, Jan 10, 2008 at 11:19:18AM -0800, Randy Dunlap wrote: > On Wed, 9 Jan 2008 22:25:42 -0800 Randy Dunlap wrote: > > > On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > > > > > > > This is the current list of warnings > > > > Sam, > > > > Several of these are due to driver variable

Re: Help needed to fix section mismatch warnings

2008-01-10 Thread Sam Ravnborg
On Wed, Jan 09, 2008 at 10:25:42PM -0800, Randy Dunlap wrote: > On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > > > > This is the current list of warnings > > Sam, > > Several of these are due to driver variable names not matching > the whitelisted names in modpost. I have patches for

Re: Help needed to fix section mismatch warnings

2008-01-10 Thread Randy Dunlap
On Wed, 9 Jan 2008 22:25:42 -0800 Randy Dunlap wrote: > On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > > > > This is the current list of warnings > > Sam, > > Several of these are due to driver variable names not matching > the whitelisted names in modpost. I have patches for the one

Re: Help needed to fix section mismatch warnings

2008-01-09 Thread Randy Dunlap
On Sun, 6 Jan 2008 15:07:28 +0100 Sam Ravnborg wrote: > This is the current list of warnings Sam, Several of these are due to driver variable names not matching the whitelisted names in modpost. I have patches for the ones that I have identified so far. And I have patches for a few of the oth

Help needed to fix section mismatch warnings

2008-01-06 Thread Sam Ravnborg
kbuild emit section mismatch warnings when it detects that someone does a call from a non-init section to a init section. The rationale here is that the init section are discarded at runtime and if this call happens after the init section has gone we have an oops. This check is planned to be

[2.6.23-rc9] MODPOST vmlinux.o 'Section mismatch' warnings

2007-10-02 Thread BenoƮt Dejean
Hello, i get the following warnings when compiling 2.6.23-rc9. .config attached. MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x14): Section mismatch: reference to .init.text:prom_init (between '__start' and '__after_mmu_off') WARNING: vmlinux.o(.text+0x2c): Section mismatch: reference to .init.tex

Re: 2.6.22.6: still seeing section mismatch warnings

2007-09-14 Thread Sam Ravnborg
On Thu, Sep 13, 2007 at 10:35:05AM +0200, Frank van Maarseveen wrote: > On Thu, Sep 13, 2007 at 09:02:00AM +0200, Sam Ravnborg wrote: > > On Wed, Sep 12, 2007 at 06:00:17PM +0200, Frank van Maarseveen wrote: > > > I'm still seeing the warnings below (2.6.22 started off with lots of > > > section mi

Re: 2.6.22.6: still seeing section mismatch warnings

2007-09-13 Thread Frank van Maarseveen
On Thu, Sep 13, 2007 at 09:02:00AM +0200, Sam Ravnborg wrote: > On Wed, Sep 12, 2007 at 06:00:17PM +0200, Frank van Maarseveen wrote: > > I'm still seeing the warnings below (2.6.22 started off with lots of > > section mismatch warning) but I have no idea if it is safe to ignore > > these: > > > >

Re: 2.6.22.6: still seeing section mismatch warnings

2007-09-13 Thread Sam Ravnborg
On Wed, Sep 12, 2007 at 06:00:17PM +0200, Frank van Maarseveen wrote: > I'm still seeing the warnings below (2.6.22 started off with lots of > section mismatch warning) but I have no idea if it is safe to ignore > these: > > WARNING: arch/i386/kernel/built-in.o(.text+0xea62): Section mismatch: >

2.6.22.6: still seeing section mismatch warnings

2007-09-12 Thread Frank van Maarseveen
I'm still seeing the warnings below (2.6.22 started off with lots of section mismatch warning) but I have no idea if it is safe to ignore these: WARNING: arch/i386/kernel/built-in.o(.text+0xea62): Section mismatch: reference to .init.data:trampoline_end (between 'setup_trampoline' and 'cpu_coreg

  1   2   3   >