mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [2.6 patch] fix warning with modular ide.c
Date: Wed, 3 Sep 2003 16:19:02 +0200	[thread overview]
Message-ID: <20030903141901.GZ23729@fs.tum.de> (raw)

Hi Bartlomiej,

I got the following compile warning when trying to compile ide.c modular 
in 2.6.0-tet4-mm5:

<--  snip  -->

...
  CC [M]  drivers/ide/ide.o
drivers/ide/ide.c: In function `ide_unregister_subdriver':
drivers/ide/ide.c:2476: warning: implicit declaration of function 
`pnpide_init'
...

<--  snip  -->

I'd suggest the patch below (or something similar).

cu
Adrian

--- linux-2.6.0-test4-mm5-modular-no-smp/drivers/ide/ide.c.old	2003-09-03 15:55:46.000000000 +0200
+++ linux-2.6.0-test4-mm5-modular-no-smp/drivers/ide/ide.c	2003-09-03 15:59:46.000000000 +0200
@@ -214,6 +214,11 @@
 extern ide_driver_t idedefault_driver;
 static void setup_driver_defaults(ide_driver_t *driver);
 
+#ifdef CONFIG_BLK_DEV_IDEPNP
+extern void pnpide_init(int enable);
+#endif
+
+
 /*
  * Do not even *think* about calling this!
  */
@@ -2288,7 +2293,6 @@
 #endif /* CONFIG_BLK_DEV_BUDDHA */
 #if defined(CONFIG_BLK_DEV_IDEPNP) && defined(CONFIG_PNP)
 	{
-		extern void pnpide_init(int enable);
 		pnpide_init(1);
 	}
 #endif /* CONFIG_BLK_DEV_IDEPNP */



             reply	other threads:[~2003-09-03 14:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-03 14:19 Adrian Bunk [this message]
2003-09-03 14:50 ` Bartlomiej Zolnierkiewicz

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=20030903141901.GZ23729@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /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

all inboxes | Powered by JetHome®