Received: by 10.213.65.68 with SMTP id h4csp41830imn; Mon, 19 Mar 2018 18:55:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELvTe9GdOVoj6b0znlNa/yaWHdOBqPeNcQCLQPMQ+jz18jwVYt1+f1qAgrptkMswDUb8aJNb X-Received: by 2002:a17:902:bd46:: with SMTP id b6-v6mr14368613plx.38.1521510947600; Mon, 19 Mar 2018 18:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510947; cv=none; d=google.com; s=arc-20160816; b=x4WWLIuaGFb+nfzbCzmy1mJH0ReY5U8dCc/eCSZ0of/bt/P+ftNrwLW+/5gZ9KObml TqGNKlDUbTpLrAmA1NO3b5/l81XNUOZnmhQdlCWUCtyEOdepIXVKleY4I5uUp4/LU3Z/ Ch2rarhN9g/Bw4ZEh91AVA2qLlL0GXiMhCqToCbPEv2xcSWnnRBYb3Zo42AnrFg3qLvq JIEE2ZLbTGxpsnPYsz/0GZWZ2kXKySK97arf5C73AlNWlAhXFS5oeOZ7r1mdhvsnigVz jHWTs2YR23vXqC1qS8Vbj9A0jBqDZNhJq5D3IqzeOYKA8FXTawFp2U0GHTKWcnkZrTA3 Nlbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:message-id:date:subject:cc :to:from:arc-authentication-results; bh=etuYQqQCWn4l4mYxSyDvw926g01ajni7EHjINCQo0UE=; b=fJPj8h7SOOD8tcOiv7wIzTE59CdF3fMhtOGUAigmlbtitIM0Tp+rfmNrFeIHct1DjI hos879Q2SrPqzUc2oHMzm0r52VNzW5lDUWAEf++pEJLuIFbXvZ0tIgxipxIe99UI+uvn Kmm63uztpu/QJyYfuKc9rufwnJYCXHBv+LogEgQFz9u11TkXuG+M+q/oueBYpuJs3wQi FTf+yAjy60ipEtT5p8sc+e8i1aBEmfzaSIdHsv5Vrgglf2g7R4eBhw74LSf1y2XxDuiG wkEl8cwK8z/fA6jLv2YUmSlwZ00Lyn0j9WE4xBNkJvwwFuGfqav93AqyUi+Y7C6lYHFP dlHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=m3cHi3u3; 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 f22si443443pfe.356.2018.03.19.18.55.33; Mon, 19 Mar 2018 18:55:47 -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=@agner.ch header.s=dkim header.b=m3cHi3u3; 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 S1030617AbeCSVNI (ORCPT + 99 others); Mon, 19 Mar 2018 17:13:08 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:43776 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030487AbeCSVNB (ORCPT ); Mon, 19 Mar 2018 17:13:01 -0400 Received: from trochilidae.lan (unknown [IPv6:2001:1620:c6e::edf]) by mail.kmu-office.ch (Postfix) with ESMTPSA id BDFBB5C155D; Mon, 19 Mar 2018 22:12:39 +0100 (CET) From: Stefan Agner To: yamada.masahiro@socionext.com, michal.lkml@markovi.net Cc: arnd@arndb.de, mka@chromium.org, geert@linux-m68k.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] kbuild: set no-integrated-as before incl. arch Makefile Date: Mon, 19 Mar 2018 22:12:53 +0100 Message-Id: <20180319211253.3172-1-stefan@agner.ch> X-Mailer: git-send-email 2.16.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1521493959; bh=etuYQqQCWn4l4mYxSyDvw926g01ajni7EHjINCQo0UE=; h=From:To:Cc:Subject:Date:Message-Id; b=m3cHi3u3Gu0ll5mqD+FpCzZpVPKSR9Qa8Oba4VrgGFbhrBiau3i/bixhCwwT2qRpsVV0n6Cpoqka6TF703OFGHYwbA3DB3RDJYjLoB6DzVdWdBgG/nOa76c4x0sO0Mhwqr/nY4Wa3zZ10GfriUT4UyZC2A+KRoTEcBOtmH/PTKY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 56f76a5cd006..0474803c65f7 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 @@ -744,8 +746,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.16.2