public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] small cleanup for per_hub_init()
Date: Tue, 03 Aug 2004 17:52:07 +0000	[thread overview]
Message-ID: <200408031052.07340.jbarnes@engr.sgi.com> (raw)

[-- 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);
-	}
 
 	/*
 	 *

                 reply	other threads:[~2004-08-03 17:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408031052.07340.jbarnes@engr.sgi.com \
    --to=jbarnes@engr.sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox