Fix printk format error, remove dead code, eliminate warnings...
Subsystems (2)
PATCH 1/1 Fix printk format error, remove dead code, eliminate warnings...
Ralf,
Please apply. Thanks.
-Steve
--
Steven J. Hill - Embedded SW Engineer
arch/mips/kernel/setup.c +5 -1
@@ -576,7 +576,11 @@int i;for (i =0 ; i < boot_mem_map.nr_map; i++) { +#ifdef CONFIG_64BIT_PHYS_ADDR printk (" memory: %08Lx @ %08Lx " , +#else +printk (" memory: %08lx @ %08lx " , +#endif boot_mem_map.map[i].size, boot_mem_map.map[i].addr);switch (boot_mem_map.map[i].type) {case BOOT_MEM_RAM :
@@ -871,7 +881,7 @@#ifndef CONFIG_HIGHMEM /* Maximum memory usable is what is directly addressable */ printk (KERN_WARNING "Warning only %ldMB will be used.\n" , -MAXMEM >>20 ); + (unsigned long )MAXMEM >>20 );printk (KERN_WARNING "Use a HIGHMEM enabled kernel.\n" );#endif }
arch/mips/math-emu/ieee754xcpt.c +1 -0
@@ -30,6 +30,7 @@*************************************************************************/ #include "ieee754.h" +#include <linux/kernel.h> /* * Very naff exception handler (you can plug in your own and
arch/mips/math-emu/sp_sub.c +2 -1
@@ -167,11 +167,12 @@ xe = xe; xs = ys; } -if (xm ==0 ) +if (xm ==0 ) {if (ieee754_csr.rm ==IEEE754_RD )return ieee754sp_zero (1 );/* round negative inf. => sign = -1 */ else return ieee754sp_zero (0 );/* other round modes => sign = 1 */ + }/* normalize to rounding precision */
arch/mips/mm/c-r5432.c +0 -28
@@ -42,34 +42,6 @@/* -------------------------------------------------------------------- */ /* #include <asm/r4kcache.h> */ -static inline void flush_icache_line_indexed (unsigned long addr) -{ - __asm__ __volatile__( -".set noreorder\n\t" -".set mips3\n\t" -"cache %1, (%0)\n\t" -"cache %1, 1(%0)\n\t" -".set mips0\n\t" -".set reorder" - : - :"r" (addr), -"i" (Index_Invalidate_I)); -} - -static inline void flush_dcache_line_indexed (unsigned long addr) -{ - __asm__ __volatile__( -".set noreorder\n\t" -".set mips3\n\t" -"cache %1, (%0)\n\t" -"cache %1, 1(%0)\n\t" -".set mips0\n\t" -".set reorder" - : - :"r" (addr), -"i" (Index_Writeback_Inv_D)); -} -static inline void flush_icache_line (unsigned long addr) { __asm__ __volatile__(
arch/mips/mm/fault.c +3 -0
@@ -18,6 +18,9 @@#include <linux/smp.h> #include <linux/smp_lock.h> #include <linux/version.h> +#ifdef CONFIG_VT +#include <linux/vt_kern.h> +#endif #include <asm/hardirq.h> #include <asm/pgalloc.h>
arch/mips/mm/init.c +6 -1
@@ -161,6 +161,7 @@extern char _ftext, _etext, _fdata, _edata;extern char __init_begin, __init_end; +#ifdef CONFIG_HIGHMEM static void __init fixrange_init (unsigned long start,unsigned long end,pgd_t *pgd_base) {
@@ -189,13 +190,17 @@ j = 0; } } +#endif void __init pagetable_init (void ) { +#ifdef CONFIG_HIGHMEM unsigned long vaddr; -pgd_t *pgd, *pgd_base; +pgd_t *pgd;pmd_t *pmd;pte_t *pte; +#endif +pgd_t *pgd_base;/* Initialize the entire pgd. */ pgd_init ((unsigned long )swapper_pg_dir);
include/linux/rtnetlink.h +2 -2
@@ -586,9 +586,9 @@extern void rtnetlink_init (void );#define ASSERT_RTNL () do { if (down_trylock(&rtnl_sem) == 0) { up(&rtnl_sem); \ -printk("RTNL: assertion failed at " __FILE__ "(%d):" __FUNCTION__ "\n", __LINE__); } \ +printk("RTNL: assertion failed at " __FILE__ "(%d): %s\n", __LINE__, __FUNCTION__); } \ } while(0); -#define BUG_TRAP (x) if (!(x)) { printk("KERNEL: assertion (" #x ") failed at " __FILE__ "(%d):" __FUNCTION__ "\n", __LINE__); } +#define BUG_TRAP (x) if (!(x)) { printk("KERNEL: assertion (" #x ") failed at " __FILE__ "(%d): %s\n", __LINE__, __FUNCTION__); }#endif /* __KERNEL__ */
net/netlink/af_netlink.c +1 -1
@@ -48,7 +48,7 @@#define NL_EMULATE_DEV #endif -#define BUG_TRAP (x) if (!(x)) { printk("Assertion (" #x ") failed at " __FILE__ "(%d):" __FUNCTION__ "\n", __LINE__); } +#define BUG_TRAP (x) if (!(x)) { printk("Assertion (" #x ") failed at " __FILE__ "(%d):%s\n", __LINE__, __FUNCTION__); }struct netlink_opt {