Re: [PATCH] x86, earlyprintk: Fix two 'defined but not used' compile warnings

2015-03-31 Thread Borislav Petkov
On Tue, Mar 31, 2015 at 10:20:12PM +0100, Mark Einon wrote: > Two static functions are only used if CONFIG_PCI is defined,so only build them > if this is the case. Fixes the build warnings: > > arch/x86/kernel/early_printk.c:98:13: warning: ‘mem32_serial_out’ defined but > not used

[PATCH] x86, earlyprintk: Fix two 'defined but not used' compile warnings

2015-03-31 Thread Mark Einon
Two static functions are only used if CONFIG_PCI is defined,so only build them if this is the case. Fixes the build warnings: arch/x86/kernel/early_printk.c:98:13: warning: ‘mem32_serial_out’ defined but not used [-Wunused-function] static void mem32_serial_out(unsigned long addr, int offset,

[PATCH] x86, earlyprintk: Fix two 'defined but not used' compile warnings

2015-03-31 Thread Mark Einon
Two static functions are only used if CONFIG_PCI is defined,so only build them if this is the case. Fixes the build warnings: arch/x86/kernel/early_printk.c:98:13: warning: ‘mem32_serial_out’ defined but not used [-Wunused-function] static void mem32_serial_out(unsigned long addr, int offset,

Re: [PATCH] x86, earlyprintk: Fix two 'defined but not used' compile warnings

2015-03-31 Thread Borislav Petkov
On Tue, Mar 31, 2015 at 10:20:12PM +0100, Mark Einon wrote: Two static functions are only used if CONFIG_PCI is defined,so only build them if this is the case. Fixes the build warnings: arch/x86/kernel/early_printk.c:98:13: warning: ‘mem32_serial_out’ defined but not used