Received: by 10.213.65.68 with SMTP id h4csp1030382imn; Wed, 28 Mar 2018 18:44:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx49RkCIxGOFJ13x3xVSMhL0Lf54rXmay84JkdTRYV6Ba2PF7GrLn2+R72qU0YTPeO4UG+XmC X-Received: by 10.99.96.141 with SMTP id u135mr4190941pgb.49.1522287896278; Wed, 28 Mar 2018 18:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522287896; cv=none; d=google.com; s=arc-20160816; b=HkKAna+ufspyRqAoGAEEslgvHOMs/wiiXDcH1Q3MDJEAbIKoxGfvHURz9XJUEaEbXX vzlASL2u3ALE4OgPB63ST9ql7y6ou1Pb6ok7OTzaY+5Xf674X1xUeANj0G1rTCJeDY83 1eC0v02+s53y461qkNex9nObDf3GB6d4d3S/LfuiAKnd5yb3AbTGp9odHN8C+OTOQ4kV fl4XPy5m7XVX3fRXwk6lvpz/yeOSGDadKVfAnZsZssgrqE6xw8/lv09JlfIprGdVcZQz bC9IQ2tdEyqbTbm6u9C3MRxuu7qOsHpLCSzXz4H+MI8lLJuo0MpAk28h13/jUGF4lpJY Q+Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=Sp1l91gtICvX9ejDJFbJ69URmSp19372PvAzFx37Y94=; b=E2lGWmI1ZCWFEvvWSw4Kpd2BuIrtD4T2wH6iz9zbdvAaWb/rKg9RteiaDURZCixJBV vzyeRLSRhnB3VLf8l9b/RLp67bQjW5k743KWGrgzbNLIHMIuX3ZwK9hXShZTgFzfwXLF Qg+R/25pR5Ud2LpFKcR869zJ+alxUods1wdZgxTGqebjLapHXOs6KXWBGHp2cn0VxeZM e8ZeYLCjR5BMfqFbogKH8S5d5Dtdi1b1s+vfO00OJ2gf8twhPre5AT0kAyVbP3Hyf19h RVPnLuCtSWMJFpFdXAkj2qPk5e7U/e+Eds48oNaT1d4VAsjBZp6yulYznSr4XnDPy2mK lIdQ== 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 85si3724853pfh.176.2018.03.28.18.44.40; Wed, 28 Mar 2018 18:44:56 -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 S1751865AbeC2Bnr (ORCPT + 99 others); Wed, 28 Mar 2018 21:43:47 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:37080 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751167AbeC2Bnq (ORCPT ); Wed, 28 Mar 2018 21:43:46 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="38303239" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 29 Mar 2018 09:43:43 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id AAA824D0EFCD; Thu, 29 Mar 2018 09:43:41 +0800 (CST) Received: from [10.167.226.60] (10.167.226.60) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 29 Mar 2018 09:43:39 +0800 Subject: Re: [PATCH] x86/build: drop a superfluous macro From: Cao jin To: , CC: , , References: <20180316084944.3997-1-caoj.fnst@cn.fujitsu.com> Message-ID: Date: Thu, 29 Mar 2018 09:43:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180316084944.3997-1-caoj.fnst@cn.fujitsu.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: AAA824D0EFCD.AC1A3 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping? On 03/16/2018 04:49 PM, Cao jin wrote: > Some ..cmd files under arch/x86 report -D__KERNEL__ appears two > times in the command line, like arch/x86/boot, arch/x86/realmode/rm. > It is already defined in KBUILD_CPPFLAGS from top Makefile. so it can be > dropped saftely from these Makefiles. > > Signed-off-by: Cao jin > --- > 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 a20eacd9c7e9..592489a15d94 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 4b7575b00563..78e3400c22d7 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 > -- Sincerely, Cao jin