public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] small cleanup for per_hub_init()
@ 2004-08-03 17:52 Jesse Barnes
  0 siblings, 0 replies; only message in thread
From: Jesse Barnes @ 2004-08-03 17:52 UTC (permalink / raw)
  To: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

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.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>

Thanks,
Jesse

[-- Attachment #2: per-hub-cleanup.patch --]
[-- Type: text/plain, Size: 668 bytes --]

===== arch/ia64/sn/io/platform_init/sgi_io_init.c 1.9 vs edited =====
--- 1.9/arch/ia64/sn/io/platform_init/sgi_io_init.c	2004-05-11 08:25:13 -07:00
+++ edited/arch/ia64/sn/io/platform_init/sgi_io_init.c	2004-08-03 10:49:54 -07:00
@@ -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);
-	}
 
 	/*
 	 *

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-03 17:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03 17:52 [PATCH] small cleanup for per_hub_init() Jesse Barnes

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