Skip to contentSkip to conversation

iscsi_ibft_find: fix modpost warning

PATCH In review Jan Beulich 2 participants 2 messages Jul 18, 2008 – Jul 23, 2008 iSCSI boot firmware table (iBFT) driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iscsi_ibft_find: fix modpost warning

Exporting __init functions is wrong.

---
 drivers/firmware/iscsi_ibft_find.c |    1 -
 1 file changed, 1 deletion(-)
drivers/firmware/iscsi_ibft_find.c +0 -1
@@ -81,4 +81,3 @@ void __init reserve_ibft_region(void)
 	if (ibft_addr)
 		reserve_bootmem(pos, PAGE_ALIGN(len), BOOTMEM_DEFAULT);
 }
-EXPORT_SYMBOL_GPL(reserve_ibft_region);
#1 lore raw
Quoted 1 line · Jan Beulich

Exporting __init functions is wrong.

Looks good. Thanks for catching that.

Quoted 14 lines
---
 drivers/firmware/iscsi_ibft_find.c |    1 -
 1 file changed, 1 deletion(-)
drivers/firmware/iscsi_ibft_find.c +0 -1
@@ -81,4 +81,3 @@ void __init reserve_ibft_region(void)
 	if (ibft_addr)
 		reserve_bootmem(pos, PAGE_ALIGN(len), BOOTMEM_DEFAULT);
 }
-EXPORT_SYMBOL_GPL(reserve_ibft_region);