Skip to contentSkip to conversation

small cleanup for per_hub_init()

PATCH New Jesse Barnes 1 participant 1 message Aug 3, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small cleanup for per_hub_init()

Mark per_hub_init as __init and remove an unnecessary extern declaration of it in sgi_io_init.c. This has the effect of killing a warning in the compile of that file.

Thanks,
Jesse

===== arch/ia64/sn/io/platform_init/sgi_io_init.c 1.9 vs edited =====

arch/ia64/sn/io/platform_init/sgi_io_init.c +2 -4
@@ -37,7 +37,7 @@
  *
  * 	This code is executed once for each Hub chip.
  */
-static void
+static void __init
 per_hub_init(cnodeid_t cnode)
 {
 	nasid_t nasid;
@@ -130,10 +130,8 @@
 	klhwg_add_all_modules(hwgraph_root);
 	klhwg_add_all_nodes(hwgraph_root);
 
-	for (cnode = 0; cnode < numionodes; cnode++) {
-		extern void per_hub_init(cnodeid_t);
+	for (cnode = 0; cnode < numionodes; cnode++)
 		per_hub_init(cnode);
-	}
 
 	/*
 	 *