Skip to contentSkip to conversation

sparse on uml (infrastructure bits)

PATCH New [email protected] 1 participant 1 message Sep 9, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparse on uml (infrastructure bits)

Passes -m64 to sparse on uml/amd64, tells sparse to stay out of
USER_OBJS.

----

arch/um/Makefile-x86_64 +1 -0
diff -urN RC13-git7-stubs/arch/um/Makefile-x86_64 RC13-git7-uml-checker/arch/um/Makefile-x86_64
@@ -8,6 +8,7 @@
 #it's needed for headers to work!
 CFLAGS += -U__$(SUBARCH)__ -fno-builtin
 USER_CFLAGS += -fno-builtin
+CHECKFLAGS  += -m64
 
 ELF_ARCH := i386:x86-64
 ELF_FORMAT := elf64-x86-64
arch/um/scripts/Makefile.rules +5 -0
diff -urN RC13-git7-stubs/arch/um/scripts/Makefile.rules RC13-git7-uml-checker/arch/um/scripts/Makefile.rules
@@ -9,6 +9,11 @@
 
 $(USER_OBJS) : c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
 	$(CFLAGS_$(notdir $@))
+$(USER_OBJS): cmd_checksrc =
+$(USER_OBJS): quiet_cmd_checksrc =
+$(USER_OBJS): cmd_force_checksrc =
+$(USER_OBJS): quiet_cmd_force_checksrc =
+
 
 # The stubs and unmap.o can't try to call mcount or update basic block data
 define unprofile