[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1312066972.22074.55.camel@i7.infradead.org>
Date: Sun, 31 Jul 2011 00:02:50 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Arnaud Lacombe <lacombar@...il.com>
Cc: "H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org,
linux-kbuild@...r.kernel.org,
user-mode-linux-devel@...ts.sourceforge.net
Subject: [PATCH 4/5] um: Do not define SUBARCH in CFLAGS
There are no users of this, and not a lot of reasons why people would *need*
to use it when the compiler defines standard macros for the architecture
anyway.
Signed-off-by: David Woodhouse <David.Woodhouse@...el.com>
---
Did I miss somewhere that this is actually used?
arch/um/Makefile | 2 +-
arch/um/kernel/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/um/Makefile b/arch/um/Makefile
index fab8121..2a54640 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -38,7 +38,7 @@ KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)
#
# These apply to USER_CFLAGS to.
-KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \
+KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ \
$(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap \
-Din6addr_loopback=kernel_in6addr_loopback \
-Din6addr_any=kernel_in6addr_any
diff --git a/arch/um/kernel/Makefile b/arch/um/kernel/Makefile
index c4491c1..48a4f9f 100644
--- a/arch/um/kernel/Makefile
+++ b/arch/um/kernel/Makefile
@@ -3,7 +3,7 @@
# Licensed under the GPL
#
-CPPFLAGS_vmlinux.lds := -U$(SUBARCH) -DSTART=$(LDS_START) \
+CPPFLAGS_vmlinux.lds := -DSTART=$(LDS_START) \
-DELF_ARCH=$(LDS_ELF_ARCH) \
-DELF_FORMAT=$(LDS_ELF_FORMAT)
extra-y := vmlinux.lds
--
1.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists