Received: by 10.213.65.68 with SMTP id h4csp425752imn; Sat, 31 Mar 2018 01:03:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6kpqaEaCxB7ICqADMidLE9u+cNUl9eDXzP+SifxIar7aZSzvPXZJlSl/lZ4VYFXlWMkr3 X-Received: by 2002:a17:902:9a86:: with SMTP id w6-v6mr2176308plp.168.1522483423594; Sat, 31 Mar 2018 01:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522483423; cv=none; d=google.com; s=arc-20160816; b=WJR+SnfhYKnykmxzhIfMuBXbp96sEYDbKyWfo0m44pg70aKKqC1eTuRlA2DTQ2/WWJ qdEzsEBZckAmkxWvtnsdsYmBaHe72LFKMs2/BRaGIw4yheR+HV+doIbqfajexpvm6SY5 wKQxFROsPq5lygJVKVobvIJZr36TFCIqIne523fZ/XQBvQuKVUs5aK8+u3s52m4oGj4K mT/NrVU5dv+Yw6tHO/WDLY175l8BhBFPX/e5fC8ygf2h/XAzomNQSrRlxLqAAohOA+og LRARZsaPk/2ZU0IdAroW03zMSHDO4teuvfVeB5Vu4FNV42QfGHxKrxhg6RtjbZfKHoVE KT3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=3y7Md+fYTSo06z07dsZGjo1MgMxZt7RMHawfZt40Wu4=; b=SM3LrlgwX1BejjnYI+KF5vE2snPDaJ7v06qEZVROj9FRHHCPEG2tSraBX9gL3fq+ot zRG+zqcOyipu2VncSiHWOhl5g5O7yjIWJHPxnGy1PzIzBKnuoti41WhxSzZXUfn5p/fQ Cwv6mT3t56Vkvfk1x3oEXEy9OCp3FoiFYvnAJf3DC8kUx7cdWctVkTkbHXiySZbjAty5 pMAkLBFT+l+cj8TDmiBDSe7ex8YKAicpvjbLjt6cpeDjk+xM1C8/dJHHqnZlQnGcwW9j +cz3xRbwkavM1jzfhMfZB1u9piVr+rDPIqR+GDrufE1iiMtdOknwFggSNQyHkU1yMNZw DJQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si6839132pgn.104.2018.03.31.01.03.29; Sat, 31 Mar 2018 01:03:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752881AbeCaIBg (ORCPT + 99 others); Sat, 31 Mar 2018 04:01:36 -0400 Received: from terminus.zytor.com ([198.137.202.136]:58567 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766AbeCaIBe (ORCPT ); Sat, 31 Mar 2018 04:01:34 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2V80sjq2224483; Sat, 31 Mar 2018 01:00:54 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2V80r2e2224479; Sat, 31 Mar 2018 01:00:53 -0700 Date: Sat, 31 Mar 2018 01:00:53 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Cao jin Message-ID: Cc: tglx@linutronix.de, yamada.masahiro@socionext.com, linux-kernel@vger.kernel.org, michal.lkml@markovi.net, mingo@kernel.org, peterz@infradead.org, caoj.fnst@cn.fujitsu.com, torvalds@linux-foundation.org, hpa@zytor.com Reply-To: yamada.masahiro@socionext.com, tglx@linutronix.de, michal.lkml@markovi.net, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, caoj.fnst@cn.fujitsu.com In-Reply-To: <20180316084944.3997-1-caoj.fnst@cn.fujitsu.com> References: <20180316084944.3997-1-caoj.fnst@cn.fujitsu.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/build] x86/build: Don't pass in -D__KERNEL__ multiple times Git-Commit-ID: d6289f36aa7d5893d091a7a0c67eee7798719f03 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d6289f36aa7d5893d091a7a0c67eee7798719f03 Gitweb: https://git.kernel.org/tip/d6289f36aa7d5893d091a7a0c67eee7798719f03 Author: Cao jin AuthorDate: Fri, 16 Mar 2018 16:49:44 +0800 Committer: Ingo Molnar CommitDate: Sat, 31 Mar 2018 08:02:07 +0200 x86/build: Don't pass in -D__KERNEL__ multiple times Some ..cmd files under arch/x86 are showing two instances of -D__KERNEL__, like arch/x86/boot/ and arch/x86/realmode/rm/. __KERNEL__ is already defined in KBUILD_CPPFLAGS in the top Makefile, so it can be dropped safely. Signed-off-by: Cao jin Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Masahiro Yamada Cc: Michal Marek Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kbuild@vger.kernel.org Link: http://lkml.kernel.org/r/20180316084944.3997-1-caoj.fnst@cn.fujitsu.com Signed-off-by: Ingo Molnar --- arch/x86/Makefile | 3 +-- arch/x86/boot/compressed/Makefile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index d798e36d103c..a517852dad55 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -31,8 +31,7 @@ endif CODE16GCC_CFLAGS := -m32 -Wa,$(srctree)/arch/x86/boot/code16gcc.h M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) -REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -D__KERNEL__ \ - -DDISABLE_BRANCH_PROFILING \ +REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index f25e1530e064..f484ae0ece93 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -26,7 +26,7 @@ KCOV_INSTRUMENT := n targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma \ vmlinux.bin.xz vmlinux.bin.lzo vmlinux.bin.lz4 -KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ -O2 +KBUILD_CFLAGS := -m$(BITS) -O2 KBUILD_CFLAGS += -fno-strict-aliasing $(call cc-option, -fPIE, -fPIC) KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING cflags-$(CONFIG_X86_32) := -march=i386