* [PATCH] ide/amd74xx: fix section references
@ 2005-03-04 3:48 Randy.Dunlap
2005-03-04 8:03 ` Vojtech Pavlik
0 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2005-03-04 3:48 UTC (permalink / raw)
To: B.Zolnierkiewicz, akpm; +Cc: linux-ide, vojtech
ide/pci/amd74xx: data structs point to __init text which should be
__devinit;
unless (a) these are going away real soon,
or (b) this just can't happen, isn't a real problem,
or (c) other ?
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000004d8 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000004e8 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000538 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000548 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000598 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000005a8 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000005f8 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000608 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000658 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000668 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000006b8 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000006c8 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000718 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000728 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000778 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000788 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000007d8 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000007e8 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000838 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000848 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000898 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000008a8 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000008f8 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000908 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000958 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000968 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000009b8 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000009c8 R_X86_64_64 .init.text
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000a18 R_X86_64_64 .init.text+0x0000000000000106
Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000a28 R_X86_64_64 .init.text
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/ide/pci/amd74xx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Naurp ./drivers/ide/pci/amd74xx.c~ide_amd_sections ./drivers/ide/pci/amd74xx.c
--- ./drivers/ide/pci/amd74xx.c~ide_amd_sections 2005-03-01 23:38:33.000000000 -0800
+++ ./drivers/ide/pci/amd74xx.c 2005-03-03 15:39:21.000000000 -0800
@@ -308,7 +308,7 @@ static int amd74xx_ide_dma_check(ide_dri
* and initialize its drive independent registers.
*/
-static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char *name)
+static unsigned int __devinit init_chipset_amd74xx(struct pci_dev *dev, const char *name)
{
unsigned char t;
unsigned int u;
@@ -412,7 +412,7 @@ static unsigned int __init init_chipset_
return dev->irq;
}
-static void __init init_hwif_amd74xx(ide_hwif_t *hwif)
+static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif)
{
int i;
---
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ide/amd74xx: fix section references
2005-03-04 3:48 [PATCH] ide/amd74xx: fix section references Randy.Dunlap
@ 2005-03-04 8:03 ` Vojtech Pavlik
2005-03-04 10:12 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 5+ messages in thread
From: Vojtech Pavlik @ 2005-03-04 8:03 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: B.Zolnierkiewicz, akpm, linux-ide
On Thu, Mar 03, 2005 at 07:48:21PM -0800, Randy.Dunlap wrote:
>
> ide/pci/amd74xx: data structs point to __init text which should be
> __devinit;
> unless (a) these are going away real soon,
> or (b) this just can't happen, isn't a real problem,
> or (c) other ?
This is a problem in most of the IDE PCI drivers. It is a problem if IDE
hotplug is to be expected, and shouldn't be causing any immediate harm
if IDE controllers can't be hotplugged. AMD74xx certainly can't.
However, I believe it's correct to fix that.
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000004d8 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000004e8 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000538 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000548 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000598 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000005a8 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000005f8 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000608 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000658 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000668 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000006b8 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000006c8 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000718 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000728 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000778 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000788 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000007d8 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000007e8 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000838 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000848 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000898 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000008a8 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000008f8 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000908 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000958 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000968 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000009b8 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 00000000000009c8 R_X86_64_64 .init.text
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000a18 R_X86_64_64 .init.text+0x0000000000000106
> Error: ./drivers/ide/pci/amd74xx.o .data refers to 0000000000000a28 R_X86_64_64 .init.text
>
> Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
>
> diffstat:=
> drivers/ide/pci/amd74xx.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff -Naurp ./drivers/ide/pci/amd74xx.c~ide_amd_sections ./drivers/ide/pci/amd74xx.c
> --- ./drivers/ide/pci/amd74xx.c~ide_amd_sections 2005-03-01 23:38:33.000000000 -0800
> +++ ./drivers/ide/pci/amd74xx.c 2005-03-03 15:39:21.000000000 -0800
> @@ -308,7 +308,7 @@ static int amd74xx_ide_dma_check(ide_dri
> * and initialize its drive independent registers.
> */
>
> -static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char *name)
> +static unsigned int __devinit init_chipset_amd74xx(struct pci_dev *dev, const char *name)
> {
> unsigned char t;
> unsigned int u;
> @@ -412,7 +412,7 @@ static unsigned int __init init_chipset_
> return dev->irq;
> }
>
> -static void __init init_hwif_amd74xx(ide_hwif_t *hwif)
> +static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif)
> {
> int i;
>
>
>
> ---
>
--
Vojtech Pavlik
SuSE Labs, SuSE CR
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ide/amd74xx: fix section references
2005-03-04 8:03 ` Vojtech Pavlik
@ 2005-03-04 10:12 ` Bartlomiej Zolnierkiewicz
2005-03-04 15:33 ` Randy.Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2005-03-04 10:12 UTC (permalink / raw)
To: Vojtech Pavlik; +Cc: Randy.Dunlap, B.Zolnierkiewicz, akpm, linux-ide
On Fri, 4 Mar 2005 09:03:07 +0100, Vojtech Pavlik <vojtech@suse.cz> wrote:
> On Thu, Mar 03, 2005 at 07:48:21PM -0800, Randy.Dunlap wrote:
> >
> > ide/pci/amd74xx: data structs point to __init text which should be
> > __devinit;
> > unless (a) these are going away real soon,
> > or (b) this just can't happen, isn't a real problem,
> > or (c) other ?
>
> This is a problem in most of the IDE PCI drivers. It is a problem if IDE
> hotplug is to be expected, and shouldn't be causing any immediate harm
> if IDE controllers can't be hotplugged. AMD74xx certainly can't.
>
> However, I believe it's correct to fix that.
Some time ago hch made a patch fixing all IDE PCI drivers.
It was queued to be merged after hotplug support is added
but may be merged earlier if needed (to kill sparse warnings?).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ide/amd74xx: fix section references
2005-03-04 10:12 ` Bartlomiej Zolnierkiewicz
@ 2005-03-04 15:33 ` Randy.Dunlap
2005-03-04 15:40 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2005-03-04 15:33 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Vojtech Pavlik, B.Zolnierkiewicz, akpm, linux-ide
Bartlomiej Zolnierkiewicz wrote:
> On Fri, 4 Mar 2005 09:03:07 +0100, Vojtech Pavlik <vojtech@suse.cz> wrote:
>
>>On Thu, Mar 03, 2005 at 07:48:21PM -0800, Randy.Dunlap wrote:
>>
>>>ide/pci/amd74xx: data structs point to __init text which should be
>>> __devinit;
>>>unless (a) these are going away real soon,
>>>or (b) this just can't happen, isn't a real problem,
>>>or (c) other ?
>>
>>This is a problem in most of the IDE PCI drivers. It is a problem if IDE
>>hotplug is to be expected, and shouldn't be causing any immediate harm
>>if IDE controllers can't be hotplugged. AMD74xx certainly can't.
Yes, I have a list of other offenders, I just wanted to get
comments first.
>>However, I believe it's correct to fix that.
>
>
> Some time ago hch made a patch fixing all IDE PCI drivers.
> It was queued to be merged after hotplug support is added
> but may be merged earlier if needed (to kill sparse warnings?).
So I don't need to fix the remaining offenders, right?
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ide/amd74xx: fix section references
2005-03-04 15:33 ` Randy.Dunlap
@ 2005-03-04 15:40 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2005-03-04 15:40 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: Vojtech Pavlik, akpm, linux-ide, hch
On Fri, 04 Mar 2005 07:33:20 -0800, Randy.Dunlap <rddunlap@osdl.org> wrote:
> Bartlomiej Zolnierkiewicz wrote:
> > On Fri, 4 Mar 2005 09:03:07 +0100, Vojtech Pavlik <vojtech@suse.cz> wrote:
> >
> >>On Thu, Mar 03, 2005 at 07:48:21PM -0800, Randy.Dunlap wrote:
> >>
> >>>ide/pci/amd74xx: data structs point to __init text which should be
> >>> __devinit;
> >>>unless (a) these are going away real soon,
> >>>or (b) this just can't happen, isn't a real problem,
> >>>or (c) other ?
> >>
> >>This is a problem in most of the IDE PCI drivers. It is a problem if IDE
> >>hotplug is to be expected, and shouldn't be causing any immediate harm
> >>if IDE controllers can't be hotplugged. AMD74xx certainly can't.
>
> Yes, I have a list of other offenders, I just wanted to get
> comments first.
>
> >>However, I believe it's correct to fix that.
> >
> >
> > Some time ago hch made a patch fixing all IDE PCI drivers.
> > It was queued to be merged after hotplug support is added
> > but may be merged earlier if needed (to kill sparse warnings?).
>
> So I don't need to fix the remaining offenders, right?
Yep, I'll apply patch from hch.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-04 15:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-04 3:48 [PATCH] ide/amd74xx: fix section references Randy.Dunlap
2005-03-04 8:03 ` Vojtech Pavlik
2005-03-04 10:12 ` Bartlomiej Zolnierkiewicz
2005-03-04 15:33 ` Randy.Dunlap
2005-03-04 15:40 ` Bartlomiej Zolnierkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).