From: wdenk Date: Mon, 8 Oct 2001 19:03:07 +0000 (+0000) Subject: Fix compiler warnings X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a913e9d959526bb70afe1b646859274a1969ae47;p=users%2Frw%2Fppcboot.git Fix compiler warnings --- diff --git a/board/flagadm/flagadm.c b/board/flagadm/flagadm.c index 5922b61..e467430 100644 --- a/board/flagadm/flagadm.c +++ b/board/flagadm/flagadm.c @@ -26,7 +26,9 @@ /* ------------------------------------------------------------------------- */ +#if 0 static long int dram_size (long int, long int *, long int); +#endif /* ------------------------------------------------------------------------- */ @@ -99,8 +101,11 @@ long int initdram (int board_type) udelay(100); -// size_b0 = dram_size (CFG_MAMR_48_SDR_4, (ulong *)SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE); +#if 0 + size_b0 = dram_size (CFG_MAMR_48_SDR_4, (ulong *)SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE); +#else size_b0 = 16*1024*1024; +#endif /* * No bank 1 @@ -114,6 +119,7 @@ long int initdram (int board_type) /* ------------------------------------------------------------------------- */ +#if 0 /* * Check memory range for valid RAM. A simple memory test determines * the actually available RAM size between addresses `base' and @@ -163,3 +169,4 @@ static long int dram_size (long int mamr_value, long int *base, long int maxsize } return (maxsize); } +#endif /* 0 */ diff --git a/board/mousse/mousse.c b/board/mousse/mousse.c index 36810af..9ef22fc 100644 --- a/board/mousse/mousse.c +++ b/board/mousse/mousse.c @@ -96,8 +96,7 @@ int misc_init_f (void) /* * Initialize PCI Devices, report devices found. */ -int pci_init(void) +void pci_init (bd_t *dummy) { pci_dev_init(0); - return 0; } diff --git a/cpu/mpc8xx/cpu_init.c b/cpu/mpc8xx/cpu_init.c index f3e0b9a..ef301ea 100644 --- a/cpu/mpc8xx/cpu_init.c +++ b/cpu/mpc8xx/cpu_init.c @@ -44,10 +44,6 @@ cpu_init_f (volatile immap_t *immr) volatile memctl8xx_t *memctl = &immr->im_memctl; ulong reg; #endif -#if defined(CONFIG_I2C) && defined(CFG_ALLOC_DPRAM) - volatile cpm8xx_t *cp = (cpm8xx_t *)&immr->im_cpm; - volatile iic_t *iip = (iic_t *)&cp->cp_dparam[PROFF_IIC]; -#endif /* SYPCR - contains watchdog control (11-9) */ diff --git a/include/config_CRAYL1.h b/include/config_CRAYL1.h index 63c4dcc..001e4c8 100644 --- a/include/config_CRAYL1.h +++ b/include/config_CRAYL1.h @@ -34,8 +34,8 @@ * (easy to change) */ -#define CONFIG_PPC405GP 1 /* This is a PPC405 CPU */ -#define CONFIG_PPC405 1 /* ...member of PPC405 family */ +#define CONFIG_405GP 1 /* This is a PPC405 CPU */ +#define CONFIG_405 1 /* ...member of PPC405 family */ #define CONFIG_BOARD_PRE_INIT 1 /* setup for 405gp */ #define CONFIG_SYS_CLK_FREQ 25000000 /* .. frequency in L1 */ diff --git a/include/ppcboot.h b/include/ppcboot.h index 048e2b2..c21a29b 100644 --- a/include/ppcboot.h +++ b/include/ppcboot.h @@ -196,7 +196,8 @@ void inline setenv (char *, char *); defined (CONFIG_CPCIISER4) || \ defined (CONFIG_OCRTC) || \ defined (CONFIG_DASA_SIM) || \ - defined (CONFIG_ERIC) + defined (CONFIG_ERIC) || \ + defined (CONFIG_MOUSSE) /* $(CPU)/405gp_pci.c */ void pci_init (bd_t *); void pciinfo (int); @@ -277,7 +278,6 @@ void hermes_start_lxt980 (int speed); #ifdef CONFIG_EVB64260 void evb64260_init(void); -ulong get_gclk_freq(void); void debug_led(int, int); void display_mem_map(void); void perform_soft_reset(void); @@ -377,7 +377,9 @@ void prt_8260_clks (void); #elif defined(CONFIG_8xx) || \ defined(CONFIG_IOP480) || \ defined(CONFIG_4xx) || \ - defined(CONFIG_CU824) + defined(CONFIG_CU824) || \ + defined(CONFIG_EVB64260) || \ + defined(CONFIG_MOUSSE) ulong get_gclk_freq (void); ulong get_OPB_freq (void); #ifdef CONFIG_4xx diff --git a/net/bootp.c b/net/bootp.c index 7a6d057..6535434 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -333,7 +333,10 @@ BootpTimeout(void) static int DhcpExtended(u8 *e, int message_type, IPaddr_t ServerID, IPaddr_t RequestedIP) { u8 *start = e ; - u8 *cnt, *x; + u8 *cnt; +#if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_VENDOREX) + u8 *x; +#endif *e++ = 99; /* RFC1048 Magic Cookie */ *e++ = 130;