2005-02-01 16:10:55

by Peter Hagervall

[permalink] [raw]
Subject: [PATCH] arch/i386/kernel/apic.c Kill a sparse warning

The following patch replaces a K&R-style function definition with its
ANSI counterpart.


diff -u linux-bk/arch/i386/kernel/apic.c linux/arch/i386/kernel/apic.c
--- linux-bk/arch/i386/kernel/apic.c 2005-01-29 03:14:14.000000000 +0100
+++ linux/arch/i386/kernel/apic.c 2005-01-29 03:16:35.000000000 +0100
@@ -518,8 +518,7 @@
* disable it down before re-entering the BIOS on shutdown.
* Otherwise the BIOS may get confused and not power-off.
*/
-void
-lapic_shutdown()
+void lapic_shutdown(void)
{
if (!cpu_has_apic || !enabled_via_apicbase)
return;


--
Peter Hagervall......................email: [email protected]
Department of Computing Science........tel: +46(0)90 786 7018
University of Ume?, SE-901 87 Ume?.....fax: +46(0)90 786 6126