Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Compile fixes for chrp/nvram.c

Include asm/rtas.h for prototype for rtas_call etc., and make the
`done' variable unsigned int since that's what rtas_call wants.

Signed-off-by: Paul Mackerras <paulus@samba.org>

+5 -2
+5 -2
arch/powerpc/platforms/chrp/nvram.c
··· 17 17 #include <asm/uaccess.h> 18 18 #include <asm/prom.h> 19 19 #include <asm/machdep.h> 20 + #include <asm/rtas.h> 20 21 #include "chrp.h" 21 22 22 23 static unsigned int nvram_size; ··· 26 25 27 26 static unsigned char chrp_nvram_read(int addr) 28 27 { 29 - unsigned long done, flags; 28 + unsigned int done; 29 + unsigned long flags; 30 30 unsigned char ret; 31 31 32 32 if (addr >= nvram_size) { ··· 48 46 49 47 static void chrp_nvram_write(int addr, unsigned char val) 50 48 { 51 - unsigned long done, flags; 49 + unsigned int done; 50 + unsigned long flags; 52 51 53 52 if (addr >= nvram_size) { 54 53 printk(KERN_DEBUG "%s: write addr %d > nvram_size %u\n",