• Stephen Rothwell's avatar
    powerpc: Fix feature-fixup tests for gcc 4.5 · 3880ecb0
    Stephen Rothwell authored
    The feature-fixup test declare some extern void variables and then take
    their addresses.  Fix this by declaring them as extern u8 instead.
    
    Fixes these warnings (treated as errors):
    
      CC      arch/powerpc/lib/feature-fixups.o
    cc1: warnings being treated as errors
    arch/powerpc/lib/feature-fixups.c: In function 'test_cpu_macros':
    arch/powerpc/lib/feature-fixups.c:293:23: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:294:9: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c: In function 'test_fw_macros':
    arch/powerpc/lib/feature-fixups.c:306:23: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:307:9: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c: In function 'test_lwsync_macros':
    arch/powerpc/lib/feature-fixups.c:321:23: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:322:9: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
    Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    3880ecb0
feature-fixups.c 10.6 KB