Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp487119imm; Wed, 26 Sep 2018 01:58:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VWImQWCnRaBTJnJ1QmlTHQK0AvOC6g6sU3Wj2bR2a6DkGv5V4DH3Nlztij3Hw9gohkYUp X-Received: by 2002:a62:e091:: with SMTP id d17-v6mr5225845pfm.214.1537952324829; Wed, 26 Sep 2018 01:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537952324; cv=none; d=google.com; s=arc-20160816; b=dVWVo0GUIUy/Y4QXgNggSVOFi8s9TxghAhApQHYm856ACGv95SWTZhhdvWAGwcvDPU Mx+baJx62iCokaUINjOM7rIke2Vbh/w2EBuvkRg8j+3+16DLcfsoPcYH56UVTCGplP2z eNAQq6ARLLyZKYwrgBf5tb3hyUIaKmhKrbrF9EelSlidgFJOn3zgTIn2JqEzjj3qWaA2 wD0rDtLyDyOZO3tTG/RsuqjyZwECNehfqe/sRjX5zwju5qjm7iudot63sL6nAAqzPdyY pE6RfVicoJkgTLbntHFQdWty2JAFGsRaW+rv0nAj4g1cctAuNIkHEldA9fnteVKluQRl 2zIw== 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:from:references:cc:to:subject:dkim-signature; bh=IGdS/na7H308GKp6gGd8SHe9o1R5BO15JOr6Fd00qd4=; b=aq1mkS+x+5cheNDSLEaCCiZxvPxBgx6ilVhsltRJjoWjPGkfNXOVLAeHCJGwxZFXch t242wdYocKDugGELDQKxujx/QeWJgrDFNKvX4gFHYiF/0ykHS7td1raBDY5UFww1dXnx FIDWMMsfqq6px1EiFK7DG4lfnMGt0hTrQwYqrOzMvOXZG2HbbEoVrMTAh+tCVsY54MF7 tr4VW4WPR0D/m9hi7nABxGLIUwdZ7vyyN1YWG9ldtGoC4cesJGVXq2goUkO9ayXieZ/I 0hcXq6FXCK8OkJ0ZpsiSwYgaxpzQSLrhUgQOftZ15bz/Ml7UtVGV8LLjdZiURJ58JS/0 /pSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=ZzvuZ8hC; 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 8-v6si806366pgv.137.2018.09.26.01.58.29; Wed, 26 Sep 2018 01:58:44 -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=pass header.i=@rasmusvillemoes.dk header.s=google header.b=ZzvuZ8hC; 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 S1727781AbeIZPKK (ORCPT + 99 others); Wed, 26 Sep 2018 11:10:10 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:32957 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbeIZPKJ (ORCPT ); Wed, 26 Sep 2018 11:10:09 -0400 Received: by mail-lf1-f67.google.com with SMTP id o21-v6so8700881lfe.0 for ; Wed, 26 Sep 2018 01:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IGdS/na7H308GKp6gGd8SHe9o1R5BO15JOr6Fd00qd4=; b=ZzvuZ8hCRwzksY5yki0gtDE6ccNurkYaiwrzcS/ANS7etgYLugK3EtLbbfCRwo3Q4f VlsNsHrGpjtiGASEziPHUJQvfN6/LpIts/Dquj5/7MpRpgS2nlPPj/w+lrY+raIzwsbJ JY8QTMP/GK92R2FQsHH9x0jJEtWRvjCgUUNJk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IGdS/na7H308GKp6gGd8SHe9o1R5BO15JOr6Fd00qd4=; b=GZ5hug+dCgUYd8EmZ+GLjxHnZt6v8LT5A3gONq4BQ7TJCPV0EiumwFZXHWQa67CZ9w +O7Mx5FjzM6iT/v2cg8wJ3E7gASBAUyFR7TUk/e34kacuaTHQN9qIN34j8+CQ4ZZIAp1 tSLn/lr4ScruTSHoNXgC83+ndL+e/9TYOhW9rTr5ir8rpQYLAERIz53zbDlhnumN3S/N bjDs7PVdbQMYN3o9EFQUx+jRSojEhzj/shCtc+ALaP5rLIr5GxUPQ91RmKwExRgffQM5 eJhpMPOG/XQzBjDR65fh1Woza3Eczhw+cxoNJEFZdamMj1Xq6dfKqcso50YI7lMHgoes pyng== X-Gm-Message-State: ABuFfohmeezLi/aonSwpf1F51Jjy+l/cF0vMMlk2uE1oRLDoQDEJ5WyJ ApjoW++yp5Kyz+HIT5neqOvNRg== X-Received: by 2002:a19:aa8b:: with SMTP id t133-v6mr1529912lfe.92.1537952293026; Wed, 26 Sep 2018 01:58:13 -0700 (PDT) Received: from [172.16.11.40] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id s76-v6sm472474lje.94.2018.09.26.01.58.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 01:58:12 -0700 (PDT) Subject: Re: [PATCH v8 02/10] Makefile: Prepare for using macros for inline asm To: Nadav Amit , Ingo Molnar Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Sam Ravnborg , Michal Marek , Thomas Gleixner , "H. Peter Anvin" , linux-kbuild@vger.kernel.org References: <20180918212847.199085-1-namit@vmware.com> <20180918212847.199085-3-namit@vmware.com> From: Rasmus Villemoes Message-ID: <1aa5a1f3-ef3d-5cd3-831c-2202d73d3c9e@rasmusvillemoes.dk> Date: Wed, 26 Sep 2018 10:58:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180918212847.199085-3-namit@vmware.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-18 23:28, Nadav Amit wrote: > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index 8f6e7eb8ae9f..944fa3bc9376 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -214,8 +214,8 @@ ifdef CONFIG_X86_64 > KBUILD_LDFLAGS += $(call ld-option, -z max-page-size=0x200000) > endif > > -# Speed up the build > -KBUILD_CFLAGS += -pipe > +# We cannot use -pipe flag since we give an additional .s file to the compiler > +#KBUILD_CFLAGS += -pipe Is this really necessary? The gas manual says that one can use -- to name stdin, though that's probably a typo and should just be - . Doing gcc -pipe -Wa,foo.s -Wa,- does seem to work as expected (and would also make it possible to append some .s file should that ever be required). > > +archmacros: > + $(Q)$(MAKE) $(build)=arch/x86/kernel arch/x86/kernel/macros.s > + > +ASM_MACRO_FLAGS = -Wa,arch/x86/kernel/macros.s > +export ASM_MACRO_FLAGS > +KBUILD_CFLAGS += $(ASM_MACRO_FLAGS) How does this affect what gets rebuilt when one of the asm/foo.h files going into macros.s changes? Does that cause a global rebuild because everything depends on macros.s, or do we still only rebuild the files that actually include asm/foo.h? Rasmus