* [2.6 patch] fix warning with modular ide.c
@ 2003-09-03 14:19 Adrian Bunk
2003-09-03 14:50 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2003-09-03 14:19 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-kernel, trivial
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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] fix warning with modular ide.c
2003-09-03 14:19 [2.6 patch] fix warning with modular ide.c Adrian Bunk
@ 2003-09-03 14:50 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2003-09-03 14:50 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel, trivial
On Wednesday 03 of September 2003 16:19, Adrian Bunk wrote:
> Hi Bartlomiej,
>
> I got the following compile warning when trying to compile ide.c modular
> in 2.6.0-tet4-mm5:
Modular ide is broken in 2.6.0-test4, somebody fixed it in -mm5? Don't.
It stays broken for purpose (I have patches fixing it) because I want to fix
other stuff first and it will change the way modular ide works (currently
its ugly and complicated) and not having to worry about breaking modular
ide all the time (it stays broken) simplifies things :-).
Anyway thanks for report.
--bartlomiej
> <-- 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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-03 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 14:19 [2.6 patch] fix warning with modular ide.c Adrian Bunk
2003-09-03 14:50 ` Bartlomiej Zolnierkiewicz
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®