Skip to content

Commit 2624f12

Browse files
viro@ZenIV.linux.org.ukLinus Torvalds
authored andcommitted
[PATCH] sparse on uml (infrastructure bits)
Passes -m64 to sparse on uml/amd64, tells sparse to stay out of USER_OBJS. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent f91f4d9 commit 2624f12

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/um/Makefile-x86_64‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ START := 0x60000000
88
#it's needed for headers to work!
99
CFLAGS += -U__$(SUBARCH)__ -fno-builtin
1010
USER_CFLAGS += -fno-builtin
11+
CHECKFLAGS += -m64
1112

1213
ELF_ARCH := i386:x86-64
1314
ELF_FORMAT := elf64-x86-64

‎arch/um/scripts/Makefile.rules‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
99

1010
$(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
1111
$(CFLAGS_$(notdir $@))
12+
$(USER_OBJS): cmd_checksrc =
13+
$(USER_OBJS): quiet_cmd_checksrc =
14+
$(USER_OBJS): cmd_force_checksrc =
15+
$(USER_OBJS): quiet_cmd_force_checksrc =
16+
1217

1318
# The stubs and unmap.o can't try to call mcount or update basic block data
1419
define unprofile

0 commit comments

Comments
 (0)