Received: by 10.213.65.68 with SMTP id h4csp449666imn; Sat, 31 Mar 2018 01:46:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx49dVjjiJfb1OwVT2U1mK36/pN4ovEU4U5iOV/3Kfnr8eHkI0f6zPvscW8mN3WYAwPrYwRA+ X-Received: by 10.99.96.66 with SMTP id u63mr1440942pgb.22.1522485972853; Sat, 31 Mar 2018 01:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522485972; cv=none; d=google.com; s=arc-20160816; b=z7Lab+fKFPEpgFxpimJVFTj37UfUnbnd2gDpvCuqW4bl4cB5ixcoJeRF4D4bPNZXF8 wCtI4H0svw+fjJW0gjBrXExYd11lnD8Pc/eHutoKS/HTzLaXHXPjhjs5MNsqKlOUKhmi YymvoBRD7S1pr7Pos/O9Rg1X2YXoS9mqc8NT4Zxu5xHg+3iwa6Oyv+DC14QwLFSDXQ8n pL9znWyKAq2iHqWquWMkj8z83n8P9E/H/0Ybsn0q5TcaZYxYVQPptfXeYMPTGX1E7S1S 0vxg4d9juUTR7sU2AkyXsdTyv3MtgypokSfADkQ3h05bm/nlYYaYyG03NGghVQ7Sa5iX 95pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=y9GZhGK6IUs5VcMku3JtWoLKA7XkiIJJE6RuUEiJnog=; b=josODo521/tJk3n6eD0qutvcwOBztaZ20m/FJS2fSPJF+hlOro1p6Nep70BKSA+kdn 1TmbHFvT9Dfo5dFWp1Hkvw9uVyo1DM3xcmD3XItDHoIoVTHOzzm01a0Mu5pUzgM9NBur do3hxWGkqyCrebruRHLKZ1klHIX2pOS2ViiA9rs3HoIoNKCt+avE/f8H0sWJck/wVSzU S1+fMEkhVI/uLs5JREsFA54gyRMRpSd7Zfd/izBhIUJsRBaX+j8puQEDMigE8ffKAyI5 iEYpPSFMx7pjbZuEz7iLbm7H7d09OPoVk+nfLbc7n46mMFW2btJ821VUXqAEoY1GLOGf UjsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ml/h7iG9; 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 w18si6773538pgv.150.2018.03.31.01.45.58; Sat, 31 Mar 2018 01:46:12 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ml/h7iG9; 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 S1752967AbeCaIox (ORCPT + 99 others); Sat, 31 Mar 2018 04:44:53 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36541 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbeCaIov (ORCPT ); Sat, 31 Mar 2018 04:44:51 -0400 Received: by mail-wr0-f196.google.com with SMTP id y55so9586213wry.3; Sat, 31 Mar 2018 01:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=y9GZhGK6IUs5VcMku3JtWoLKA7XkiIJJE6RuUEiJnog=; b=Ml/h7iG9Q7qTxsWsPw6R3ih4gDtqWCfpGIzNNskUaGQ1x7m5+Udiq6UBkzVRJTomjJ LcUnsN2xf4KSzRIliTWeOFH5AAv0c2OrgoqNmksXS79P94x1FoE360nNcPQOMs9RnM5y WF2tbSG3JZ9JLfHdhb71p/nK9XQ7FrBZKkrdENdbv7CBfmAauYoFkCgNEn/qyMq2qzmo 9+RuF9rg8+EQbc0iiJ6pmTq5n4uLxjQcWMKRBaQPrcFXmlbil1w784puSTFdm63xMYDF oxDUh0yYh2DcyKkvtOND/hbKdAUpCemtuBMP0RezrD4tWvcJjafflbP57vaRZ2G3i+1J lyjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=y9GZhGK6IUs5VcMku3JtWoLKA7XkiIJJE6RuUEiJnog=; b=uTU+L2+nCgT7Urwby6MCPJdxn2NgnCOaFlSkY09wJtawZ7+ztllF7LZKkduYnD6Wva FiYUfw5cqgkv8ysNPNWGhLs4efbWxMlyYCnBvQMIXRzHoqpMbHi7firNRdfShL9aARiB +yVhAy0VFxnSEFrgVQMPktB6uDLCD0ZZAN0qtpWPF4QsljyWjyp8a/IMpEVMkOJvL/8s H5nNFkLVBogod+HkNvdoWcTrGL5mhwiyAncAtzb3E4J9IClUcWOHk1ww8ngnCL6AHvcS Yl6JE/l00RYq4gUPWtgWv4I6hLj7p0ZSQ7pZfYwSOaWx9l3gh9WWy11VMlVAZTdeDe3b Q25A== X-Gm-Message-State: AElRT7EWbXtPiatIMa4z9VDfQcyicnAi5GSX/krS2hkgTBTZaX9y3BDr MVKaTTLRRzukm8B8vi9etDQ= X-Received: by 10.223.134.213 with SMTP id 21mr1301693wry.221.1522485890189; Sat, 31 Mar 2018 01:44:50 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id p4sm14547092wrf.27.2018.03.31.01.44.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 31 Mar 2018 01:44:49 -0700 (PDT) Date: Sat, 31 Mar 2018 10:44:47 +0200 From: Ingo Molnar To: yamada.masahiro@socionext.com, tglx@linutronix.de, michal.lkml@markovi.net, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, caoj.fnst@cn.fujitsu.com Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/build] x86/build: Don't pass in -D__KERNEL__ multiple times Message-ID: <20180331084447.s7diqmbdbs2zmqdm@gmail.com> References: <20180316084944.3997-1-caoj.fnst@cn.fujitsu.com> <20180331083816.mwa4jo7xmuch2vze@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180331083816.mwa4jo7xmuch2vze@gmail.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ingo Molnar wrote: > > * tip-bot for Cao jin wrote: > > > 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 > > Dropped this patch, it's totally untested, the build fails on x86-64 defconfig > already. Apologies, I messed up my testing: the patch is fine after all! Thanks, Ingo