Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2464073imd; Fri, 2 Nov 2018 11:52:02 -0700 (PDT) X-Google-Smtp-Source: AJdET5e8kPa1goNwokXKNYUa3+gIfrQSQgOhzG2OQvJY5frtnVEAowmEpMto8+kiQmCXy/omWv/W X-Received: by 2002:a17:902:3341:: with SMTP id a59-v6mr12761054plc.138.1541184722146; Fri, 02 Nov 2018 11:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184722; cv=none; d=google.com; s=arc-20160816; b=Lr5hF+iMz8uGcN4OnkwJ0cFneC7jduMOjmwebjrAL6iVQglD7DYCBdseYd7xL9Xed5 n9wyPWKtMC4xf0gZBoTskJU+jN+aoaf/yZ15mnx97hm5rRUga+QDpP4JyNdo7QYc3WFf 6gox08FEK5zFHIlsGj7oKyTQtYOb5ofD0pfLeSrICXn/SGAfPFQVApHClJKBqCjq1EYg YvK6OoZYNB4d7ELuGNrNffPEMGFCikH3YXsXQwEYNzbgu9+qpke7ydBHCPVBK7sfl4T8 iA1vGHYbFB6VYcRqmDDd8cWa/6ZrAM16geJajCwComUWvr9+DFbKKSgKTpLiBahoXhOB qE3g== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=T6JKJEH9mQwgnL/0lNhCdwwA44lODGNDHEywqKzFs94=; b=OQvjimGqN6DStUWyMnSW4vY2oI9HHqJAwpxUzJhhteZAkp6y6hSh/I5uwWZiqZGTB1 /+ZfrnmNhnSAaZ/pSWuHtSb4uBM8XUlMFDmkzjZfzYc1dlcxSQSss3+ATa33I159RVud CWJlxWe8xGCGUVtbCVcCm2uOYfMMIs9h4RIXFIrv1u4oSgIC4LHGF+IRIPD/LKDd/myw /wXhoIEXY6NjhNg105CRAln1vsgd3Jv4Q1F/LN0qte3GXVqb6FO6zrR1+QXRLeM1hVr3 7oh1tAJoQEV6kIV5/4dElIz5V7Jr8bb7nndNtn8CyW4ds0XdpWfsGCFDSr8SQVUVcXxp U3UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mcRlMknT; 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 f11-v6si31754262pfh.33.2018.11.02.11.51.46; Fri, 02 Nov 2018 11:52:02 -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=mcRlMknT; 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 S1730930AbeKCD7h (ORCPT + 99 others); Fri, 2 Nov 2018 23:59:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:55330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbeKCD7h (ORCPT ); Fri, 2 Nov 2018 23:59:37 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F65C2084A; Fri, 2 Nov 2018 18:51:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184682; bh=A7dchIM4K0GllAboFlkE+qr56wPZSHXfgomQ36DxAIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mcRlMknTIVPmKBRfTcww63K3e+k7qWHn0WfqkXVbc5c6Q799uB6ES9kXE84ObhTih Ce1HI4DUnAlAz7nFA99+4IDoh1BMUKH046vAlRMwuGTSQk4lIBNuvnkMRapGA0dfQs gC0HEA6QrvKmYz3q+27kWV6oSzdotJIWRSqu1OIo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Agner , Masahiro Yamada , Sasha Levin Subject: [PATCH 4.14 067/143] kbuild: set no-integrated-as before incl. arch Makefile Date: Fri, 2 Nov 2018 19:34:12 +0100 Message-Id: <20181102182902.562305541@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182857.064326086@linuxfoundation.org> References: <20181102182857.064326086@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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