@@ -1538,7 +1538,6 @@ uint32_t io_read32(uint16_t port)
15381538static int hal_pcie_init (void )
15391539{
15401540 int ret ;
1541- int bus , i ;
15421541 int law_idx = 8 ;
15431542 int tlb_idx = 14 ; /* next available TLB (after DDR) */
15441543 struct pci_enum_info enum_info ;
@@ -1862,8 +1861,10 @@ struct qe_firmware {
18621861/* Checks for valid QE firmware */
18631862static int qe_check_firmware (const struct qe_firmware * firmware , const char * t )
18641863{
1865- unsigned int i , j ;
1864+ unsigned int i ;
1865+ #ifdef ENABLE_QE_CRC32
18661866 uint32_t crc ;
1867+ #endif
18671868 size_t calc_size = sizeof (struct qe_firmware );
18681869 size_t length ;
18691870 const struct qe_header * hdr ;
@@ -2172,7 +2173,6 @@ static int fman_upload_firmware(const struct qe_firmware *firmware)
21722173 /* Loop through each microcode. */
21732174 for (i = 0 ; i < firmware -> count ; i ++ ) {
21742175 const struct qe_microcode * ucode = & firmware -> microcode [i ];
2175- uint32_t trapCount = 0 ;
21762176
21772177 /* Upload a microcode if it's present */
21782178 if (ucode -> code_offset ) {
@@ -2868,7 +2868,7 @@ extern uint32_t _bootpg_addr;
28682868/* Startup additional cores with spin table and synchronize the timebase */
28692869static void hal_mp_up (uint32_t bootpg )
28702870{
2871- uint32_t all_cores , active_cores , whoami , bpcr ;
2871+ uint32_t all_cores , active_cores , whoami ;
28722872 int timeout = 50 , i ;
28732873
28742874 whoami = get32 (PIC_WHOAMI ); /* Get current running core number */
0 commit comments