Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1936746ima; Thu, 25 Oct 2018 07:16:32 -0700 (PDT) X-Google-Smtp-Source: AJdET5cUdzJXvYwr9TGXrk9aPiotyOO5Id48ZodbHJKpV8eOf4DBmApC4D0+OEBRaDTiY3qBSRGu X-Received: by 2002:a63:5726:: with SMTP id l38-v6mr1680668pgb.118.1540476992531; Thu, 25 Oct 2018 07:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540476992; cv=none; d=google.com; s=arc-20160816; b=a7YnKJx/qpWgSKcqKxMkA8Q7ls9k/FFzaToihBfFLoSx9LGQ98SFOvVbaAFuwZmiNj zWkZb2C1RrEfva1PnYBIstUxCQarLgUkUAY86mLBp1x1HwMWZjbk6imScDyDeyfDat3y IOOvYdKgfThbZhul38AAjJm+pIaAGI+TVqo7mS5Agd8Z8SkazkMCvoFqwgrMNIgGlmc/ OK/XVa9rR0JyOPlZiT1DYQijJ3wxGeCc0ng9O8xVRVjPA3YIjec1RscCX7QADrESRgLC S0ldAXaq1+HM50pjNC4Zxd08tsL136X87v3REFdmUqrEMOQhMA+jQ33icoE3vF6AWI+1 x2tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=0DQym5XzIkGJ04smAc1xOP+lDZqLj1VewxxTraveRVg=; b=vYB8GRSGOY35mN3KNrMPDJvOYe5AjpdOKMNIDkszXaST47afWO8eJKY2Vmjn7tBpzt 6lcgJK+CRAZZHbRQ9dxQ6d+2/JBtwwUsBkcij9ZNYdXBPerrdPRhMmA7P8OP/Kq+oRSC ps/+QjUSfgdeM+d8q/damcesPICoFWYRez9RGwFHpVoJOB0dQ/OMYmuBL4iLsINBlxNb 8Y/d/5BeY/6ld43FQFTng6T82dA24uzcknbc8bCrH7WwS18ihW36e6V3ZB4+2GA6PuEv QofkQ3lu8vlNfeDr47ShdzWsg1kFEFdyFg036yBkazqZFzCoOFwP2sT2x51xWV9hjXDM hqTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zhAkSBRY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9-v6si7821766pll.414.2018.10.25.07.15.50; Thu, 25 Oct 2018 07:16:32 -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=@kernel.org header.s=default header.b=zhAkSBRY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728063AbeJYWoQ (ORCPT + 99 others); Thu, 25 Oct 2018 18:44:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:52900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbeJYWoP (ORCPT ); Thu, 25 Oct 2018 18:44:15 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 543EE20834; Thu, 25 Oct 2018 14:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476680; bh=NwynvzGvWNTj5tSHrwK3Ls8K/bwJhrPhijjBgvXCYlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zhAkSBRYKICdW6ekQyfUThZyVYj4E0VXu2tBRLwDTJFyJwdn5UwwZQd8lcJ7wCzYU hMZHUUBVHwBcnrrgaKGYiRSImY8Hc6mnihaLSwY7tEJEYqWZ6Pl2+9HhoYw9MNoDKj k2QuLMdhJzLwOMMWnfm2oB+P1j1dn796Pd/0pFeI= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stefan Agner , Masahiro Yamada , Sasha Levin Subject: [PATCH AUTOSEL 4.14 18/46] kbuild: set no-integrated-as before incl. arch Makefile Date: Thu, 25 Oct 2018 10:10:25 -0400 Message-Id: <20181025141053.213330-18-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Agner [ Upstream commit 0f0e8de334c54c38818a4a5390a39aa09deff5bf ] In order to make sure compiler flag detection for ARM works correctly the no-integrated-as flags need to be set before including the arch specific Makefile. Fixes: cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile") Signed-off-by: Stefan Agner Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 16d1a18496fb..8cc08595b760 100644 --- a/Makefile +++ b/Makefile @@ -487,6 +487,8 @@ CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN) endif KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) +KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) +KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) endif RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register @@ -721,8 +723,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # See modpost pattern 2 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) -KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) -KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) else # These warnings generated too much noise in a regular build. -- 2.17.1