Skip to contentSkip to conversation

namespace pollution in ide-probe.c

PATCH New Arnd Bergmann 1 participant 1 message Dec 19, 2002 1 message not in the archive libata

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 namespace pollution in ide-probe.c

In reply to a message not in the archive

The function init_irq is only used in ide-probe.c, so it should better be static.
===== drivers/ide/ide-probe.c 1.30 vs edited =====

drivers/ide/ide-probe.c +1 -3
@@ -848,7 +848,7 @@
  * but anything else has led to problems on some machines.  We re-enable
  * interrupts as much as we can safely do in most places.
  */
-int init_irq (ide_hwif_t *hwif)
+static int init_irq (ide_hwif_t *hwif)
 {
 	unsigned long flags;
 	unsigned int index;
@@ -993,8 +993,6 @@
 	printk("\n");
 	return 0;
 }
-
-EXPORT_SYMBOL(init_irq);
 
 static int ata_lock(dev_t dev, void *data)
 {