public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gdth: Fixup section annotations
@ 2014-01-10 15:31 Hannes Reinecke
  2014-01-10 17:07 ` James Bottomley
  0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2014-01-10 15:31 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, Hannes Reinecke

Fixup section annotations so that kbuild doesn't complain anymore.

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 drivers/scsi/gdth.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
index ce5ef01..98bd66e 100644
--- a/drivers/scsi/gdth.c
+++ b/drivers/scsi/gdth.c
@@ -329,7 +329,7 @@ static int irq[MAXHA] __initdata =
 {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
 /* disable driver flag */
-static int disable __initdata = 0;
+static int disable = 0;
 /* reserve flag */
 static int reserve_mode = 1;                  
 /* reserve list */
@@ -658,7 +658,7 @@ static int gdth_pci_init_one(struct pci_dev *pdev,
 #endif /* CONFIG_PCI */
 
 #ifdef CONFIG_EISA
-static int __init gdth_init_eisa(u16 eisa_adr,gdth_ha_str *ha)
+static int __devinit gdth_init_eisa(u16 eisa_adr,gdth_ha_str *ha)
 {
     u32 retries,id;
     u8 prot_ver,eisacf,i,irq_found;
@@ -752,7 +752,7 @@ static int __init gdth_init_eisa(u16 eisa_adr,gdth_ha_str *ha)
 #endif /* CONFIG_EISA */
 
 #ifdef CONFIG_ISA
-static int __init gdth_init_isa(u32 bios_adr,gdth_ha_str *ha)
+static int __devinit gdth_init_isa(u32 bios_adr,gdth_ha_str *ha)
 {
     register gdt2_dpram_str __iomem *dp2_ptr;
     int i;
@@ -4688,7 +4688,7 @@ static struct scsi_host_template gdth_template = {
 };
 
 #ifdef CONFIG_ISA
-static int __init gdth_isa_probe_one(u32 isa_bios)
+static int __devinit gdth_isa_probe_one(u32 isa_bios)
 {
 	struct Scsi_Host *shp;
 	gdth_ha_str *ha;
@@ -4820,7 +4820,7 @@ static int __init gdth_isa_probe_one(u32 isa_bios)
 #endif /* CONFIG_ISA */
 
 #ifdef CONFIG_EISA
-static int __init gdth_eisa_probe_one(u16 eisa_slot)
+static int __devinit gdth_eisa_probe_one(u16 eisa_slot)
 {
 	struct Scsi_Host *shp;
 	gdth_ha_str *ha;
@@ -5155,7 +5155,7 @@ static struct notifier_block gdth_notifier = {
     gdth_halt, NULL, 0
 };
 
-static int __init gdth_init(void)
+static int __devinit gdth_init(void)
 {
 	if (disable) {
 		printk("GDT-HA: Controller driver disabled from"
@@ -5209,7 +5209,7 @@ static int __init gdth_init(void)
 	return 0;
 }
 
-static void __exit gdth_exit(void)
+static void __devexit gdth_exit(void)
 {
 	gdth_ha_str *ha;
 
-- 
1.7.12.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gdth: Fixup section annotations
  2014-01-10 15:31 [PATCH] gdth: Fixup section annotations Hannes Reinecke
@ 2014-01-10 17:07 ` James Bottomley
  2014-01-13  8:23   ` Hannes Reinecke
  0 siblings, 1 reply; 4+ messages in thread
From: James Bottomley @ 2014-01-10 17:07 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: linux-scsi@vger.kernel.org

On Fri, 2014-01-10 at 16:31 +0100, Hannes Reinecke wrote:
> Fixup section annotations so that kbuild doesn't complain anymore.

This doesn't look right: __devinit is now an obsolete annotation.

James


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gdth: Fixup section annotations
  2014-01-10 17:07 ` James Bottomley
@ 2014-01-13  8:23   ` Hannes Reinecke
  2014-01-13 16:12     ` James Bottomley
  0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2014-01-13  8:23 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi@vger.kernel.org

On 01/10/2014 06:07 PM, James Bottomley wrote:
> On Fri, 2014-01-10 at 16:31 +0100, Hannes Reinecke wrote:
>> Fixup section annotations so that kbuild doesn't complain anymore.
> 
> This doesn't look right: __devinit is now an obsolete annotation.
> 
Hmm. Patch has been in our internal kernel repository for ages.
I'll be checking.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gdth: Fixup section annotations
  2014-01-13  8:23   ` Hannes Reinecke
@ 2014-01-13 16:12     ` James Bottomley
  0 siblings, 0 replies; 4+ messages in thread
From: James Bottomley @ 2014-01-13 16:12 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: linux-scsi@vger.kernel.org

On Mon, 2014-01-13 at 09:23 +0100, Hannes Reinecke wrote:
> On 01/10/2014 06:07 PM, James Bottomley wrote:
> > On Fri, 2014-01-10 at 16:31 +0100, Hannes Reinecke wrote:
> >> Fixup section annotations so that kbuild doesn't complain anymore.
> > 
> > This doesn't look right: __devinit is now an obsolete annotation.
> > 
> Hmm. Patch has been in our internal kernel repository for ages.
> I'll be checking.

We fixed all the __dev section horrors by simply eliminating
CONFIG_HOTPLUG.  After that, the compiler and linker should notice
sectional problems (basically around init and exit sections), so either
the patch is obsolete, or there is some residue after all the __dev...
sections are removed that is still needed.

James


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-13 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10 15:31 [PATCH] gdth: Fixup section annotations Hannes Reinecke
2014-01-10 17:07 ` James Bottomley
2014-01-13  8:23   ` Hannes Reinecke
2014-01-13 16:12     ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox