Skip to contentSkip to conversation

2.4.19 compile warning for AMD Athlon config

DISCUSSION John Kinsella 1 participant 1 message Aug 6, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · you

amd_adv_spec_cache_feature() tries to use have_cpuid_p(), which does not exist in 2.4.x tree.

Doh,
it does of course exist, but it might benefit from a forward declaration to
suppress compiler warning.

arch/i386/kernel/setup.c.tmp Tue Aug 6 14:39:58 2002 renamed from arch/i386/kernel/setup.c Sun Aug 4 14:17:35 2002 +2 -0
@@ -171,6 +171,8 @@
 extern int root_mountflags;
 extern char _text, _etext, _edata, _end;
 
+static int have_cpuid_p(void);
+
 static int disable_x86_serial_nr __initdata = 1;
 static int disable_x86_fxsr __initdata = 0;
 static int disable_x86_ht __initdata = 0;