https://github.com/torvalds/linux
Revision 3880ecb05bc5ece4c6e392a21ea77518e55b4935 authored by Stephen Rothwell on 28 June 2010, 21:08:29 UTC, committed by Benjamin Herrenschmidt on 08 July 2010, 08:11:41 UTC
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: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 9ce9168
Tip revision: 3880ecb05bc5ece4c6e392a21ea77518e55b4935 authored by Stephen Rothwell on 28 June 2010, 21:08:29 UTC
powerpc: Fix feature-fixup tests for gcc 4.5
powerpc: Fix feature-fixup tests for gcc 4.5
Tip revision: 3880ecb
File | Mode | Size |
---|---|---|
interface | ||
Kbuild | -rw-r--r-- | 21 bytes |
events.h | -rw-r--r-- | 1.8 KB |
evtchn.h | -rw-r--r-- | 2.9 KB |
features.h | -rw-r--r-- | 463 bytes |
grant_table.h | -rw-r--r-- | 4.3 KB |
hvc-console.h | -rw-r--r-- | 449 bytes |
page.h | -rw-r--r-- | 26 bytes |
xen-ops.h | -rw-r--r-- | 349 bytes |
xen.h | -rw-r--r-- | 856 bytes |
xenbus.h | -rw-r--r-- | 8.0 KB |
xencomm.h | -rw-r--r-- | 2.5 KB |
Computing file changes ...