EXPORT_SYMBOL(i8253_lock) in arch/i386/kernel/time.c
PATCH 1/1 EXPORT_SYMBOL(i8253_lock) in arch/i386/kernel/time.c
Hi all,
in arch/i386/kernel/time.c (2.5.6-pre2) we make EXPORT_SYMBOL(i8253_lock), but
- linux/module.h isn't included in time.c;
- time.o isn't declared as export-objs in Makefile.
So we have theses warnings during kernel compilation:
time.c:118: warning: type defaults to int' in declaration of EXPORT_SYMBOL' time.c:118: warning: parameter names (without types) in function declaration time.c:118: warning: data definition has no type or storage class
Attached patch fixes these buglets, please consider applying.
Best regards.
Signature · 2 lines
Andrey Panin | Embedded systems software engineer [email protected] | PGP key: wwwkeys.eu.pgp.net
root/linux/arch/i386/kernel/Makefile renamed from linux/arch/i386/kernel/Makefile +1 -1
@@ -14,7 +14,7 @@ O_TARGET := kernel.o -export-objs := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o +export-objs := mca.o mtrr.o msr.o cpuid.o microcode.o time.o i386_ksyms.o obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \ ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \
root/linux/arch/i386/kernel/time.c renamed from linux/arch/i386/kernel/time.c +1 -0
@@ -41,6 +41,7 @@#include <linux/delay.h> #include <linux/init.h> #include <linux/smp.h> +#include <linux/module.h> #include <asm/io.h> #include <asm/smp.h>