2006-05-25 16:59:07

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] scx200_acb: fix section mismatch warning

From: Randy Dunlap <[email protected]>

Fix section mismatch warning reported by İsmail Dönmez:
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference
to .init.text: from .text after 'scx200_add_cs553x' (at offset 0x528)

Signed-off-by: Randy Dunlap <[email protected]>
---
drivers/i2c/busses/scx200_acb.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2617-rc5.orig/drivers/i2c/busses/scx200_acb.c
+++ linux-2617-rc5/drivers/i2c/busses/scx200_acb.c
@@ -491,7 +491,7 @@ static struct pci_device_id divil_pci[]

#define MSR_LBAR_SMB 0x5140000B

-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
{
u32 low, hi;
u32 smb_base;


---


2006-05-25 17:09:47

by Ismail Dönmez

[permalink] [raw]
Subject: Re: [PATCH] scx200_acb: fix section mismatch warning

Randy.Dunlap wrote On 25-05-2006 20:01:
> From: Randy Dunlap <[email protected]>
>
> Fix section mismatch warning reported by İsmail Dönmez:
> WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference
> to .init.text: from .text after 'scx200_add_cs553x' (at offset 0x528)
>
> Signed-off-by: Randy Dunlap <[email protected]>
> ---
> drivers/i2c/busses/scx200_acb.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-2617-rc5.orig/drivers/i2c/busses/scx200_acb.c
> +++ linux-2617-rc5/drivers/i2c/busses/scx200_acb.c
> @@ -491,7 +491,7 @@ static struct pci_device_id divil_pci[]
>
> #define MSR_LBAR_SMB 0x5140000B
>
> -static int scx200_add_cs553x(void)
> +static __init int scx200_add_cs553x(void)
> {
> u32 low, hi;
> u32 smb_base;
>
>
> ---

Ack, this fixes the warning for me.

Regards,
ismail

2006-05-25 17:26:53

by Jean Delvare

[permalink] [raw]
Subject: Re: [PATCH] scx200_acb: fix section mismatch warning

Hi Randy, all,

> From: Randy Dunlap <[email protected]>
>
> Fix section mismatch warning reported by İsmail Dönmez:
> WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference
> to .init.text: from .text after 'scx200_add_cs553x' (at offset 0x528)
>
> Signed-off-by: Randy Dunlap <[email protected]>
> ---
> drivers/i2c/busses/scx200_acb.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-2617-rc5.orig/drivers/i2c/busses/scx200_acb.c
> +++ linux-2617-rc5/drivers/i2c/busses/scx200_acb.c
> @@ -491,7 +491,7 @@ static struct pci_device_id divil_pci[]
>
> #define MSR_LBAR_SMB 0x5140000B
>
> -static int scx200_add_cs553x(void)
> +static __init int scx200_add_cs553x(void)
> {
> u32 low, hi;
> u32 smb_base;
>

Correct, I sent exactly the same patch to the the lm-sensors list and
Greg KH yesterday:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html

So this one is
Signed-off-by: Jean Delvare <[email protected]>

Note that the section mismatch is harmless here (we have a non-__init
function sandwiched between two __init functions) but nevertheless this
kind of warning is never welcome in a final kernel release so let's get
the fix merged now.

Andrew, can you please push this to Linus?

Thanks,
--
Jean Delvare

2006-05-25 18:07:55

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] scx200_acb: fix section mismatch warning

Jean Delvare <[email protected]> wrote:
>
> > -static int scx200_add_cs553x(void)
> > +static __init int scx200_add_cs553x(void)
> > {
> > u32 low, hi;
> > u32 smb_base;
> >
>
> Correct, I sent exactly the same patch to the the lm-sensors list and
> Greg KH yesterday:
> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html
>
> So this one is
> Signed-off-by: Jean Delvare <[email protected]>
>
> Note that the section mismatch is harmless here (we have a non-__init
> function sandwiched between two __init functions) but nevertheless this
> kind of warning is never welcome in a final kernel release so let's get
> the fix merged now.
>
> Andrew, can you please push this to Linus?

yup, I'll send that later on today. My current 2.6.17 queue is:

s390-fix-typo-in-stop_hz_timer.patch
add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch
x86-wire-up-vmsplice-syscall.patch
ads7846-conversion-accuracy.patch
affs-possible-null-pointer-dereference-in-affs_rename.patch
powermac-force-only-suspend-to-disk-to-be-valid.patch
s3c24xx-fix-spi-driver-with-config_pm.patch
scx200_acb-fix-section-mismatch-warning.patch

2006-05-25 18:10:30

by Ismail Dönmez

[permalink] [raw]
Subject: Re: [PATCH] scx200_acb: fix section mismatch warning

Andrew Morton wrote On 25-05-2006 21:06:
> Jean Delvare <[email protected]> wrote:
>>> -static int scx200_add_cs553x(void)
>> > +static __init int scx200_add_cs553x(void)
>> > {
>> > u32 low, hi;
>> > u32 smb_base;
>> >
>>
>> Correct, I sent exactly the same patch to the the lm-sensors list and
>> Greg KH yesterday:
>> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html
>>
>> So this one is
>> Signed-off-by: Jean Delvare <[email protected]>
>>
>> Note that the section mismatch is harmless here (we have a non-__init
>> function sandwiched between two __init functions) but nevertheless this
>> kind of warning is never welcome in a final kernel release so let's get
>> the fix merged now.
>>
>> Andrew, can you please push this to Linus?
>
> yup, I'll send that later on today. My current 2.6.17 queue is:
>
> s390-fix-typo-in-stop_hz_timer.patch
> add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch
> x86-wire-up-vmsplice-syscall.patch
> ads7846-conversion-accuracy.patch
> affs-possible-null-pointer-dereference-in-affs_rename.patch
> powermac-force-only-suspend-to-disk-to-be-valid.patch
> s3c24xx-fix-spi-driver-with-config_pm.patch
> scx200_acb-fix-section-mismatch-warning.patch

Is there a chance of queing Randy's other mismatch fixes? It would be
nice to eliminate them for the final release.

Regards,
ismail


2006-05-25 18:13:52

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] scx200_acb: fix section mismatch warning

On Thu, 25 May 2006 21:10:28 +0300 İsmail Dönmez wrote:

> Andrew Morton wrote On 25-05-2006 21:06:
> > Jean Delvare <[email protected]> wrote:
> >>> -static int scx200_add_cs553x(void)
> >> > +static __init int scx200_add_cs553x(void)
> >> > {
> >> > u32 low, hi;
> >> > u32 smb_base;
> >> >
> >>
> >> Correct, I sent exactly the same patch to the the lm-sensors list and
> >> Greg KH yesterday:
> >> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html
> >>
> >> So this one is
> >> Signed-off-by: Jean Delvare <[email protected]>
> >>
> >> Note that the section mismatch is harmless here (we have a non-__init
> >> function sandwiched between two __init functions) but nevertheless this
> >> kind of warning is never welcome in a final kernel release so let's get
> >> the fix merged now.
> >>
> >> Andrew, can you please push this to Linus?
> >
> > yup, I'll send that later on today. My current 2.6.17 queue is:
> >
> > s390-fix-typo-in-stop_hz_timer.patch
> > add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch
> > x86-wire-up-vmsplice-syscall.patch
> > ads7846-conversion-accuracy.patch
> > affs-possible-null-pointer-dereference-in-affs_rename.patch
> > powermac-force-only-suspend-to-disk-to-be-valid.patch
> > s3c24xx-fix-spi-driver-with-config_pm.patch
> > scx200_acb-fix-section-mismatch-warning.patch
>
> Is there a chance of queing Randy's other mismatch fixes? It would be
> nice to eliminate them for the final release.

Well this one got quick review/feedback/ack by maintainer.
The others need something like that too....

---
~Randy

2006-05-25 18:40:34

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] scx200_acb: fix section mismatch warning

__smail D?nmez <[email protected]> wrote:
>
> Andrew Morton wrote On 25-05-2006 21:06:
> > Jean Delvare <[email protected]> wrote:
> >>> -static int scx200_add_cs553x(void)
> >> > +static __init int scx200_add_cs553x(void)
> >> > {
> >> > u32 low, hi;
> >> > u32 smb_base;
> >> >
> >>
> >> Correct, I sent exactly the same patch to the the lm-sensors list and
> >> Greg KH yesterday:
> >> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html
> >>
> >> So this one is
> >> Signed-off-by: Jean Delvare <[email protected]>
> >>
> >> Note that the section mismatch is harmless here (we have a non-__init
> >> function sandwiched between two __init functions) but nevertheless this
> >> kind of warning is never welcome in a final kernel release so let's get
> >> the fix merged now.
> >>
> >> Andrew, can you please push this to Linus?
> >
> > yup, I'll send that later on today. My current 2.6.17 queue is:
> >
> > s390-fix-typo-in-stop_hz_timer.patch
> > add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch
> > x86-wire-up-vmsplice-syscall.patch
> > ads7846-conversion-accuracy.patch
> > affs-possible-null-pointer-dereference-in-affs_rename.patch
> > powermac-force-only-suspend-to-disk-to-be-valid.patch
> > s3c24xx-fix-spi-driver-with-config_pm.patch
> > scx200_acb-fix-section-mismatch-warning.patch
>
> Is there a chance of queing Randy's other mismatch fixes? It would be
> nice to eliminate them for the final release.
>

spose so. At least, the ones which fix bugs.