From patchwork Mon Oct 9 14:35:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115256 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2630240qgn; Mon, 9 Oct 2017 07:36:57 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDGgmMk1vhEdZPI0gJZZJRCSaVQvgYJqk1TQmBP31CCwGSiYu2AEFUisqOszarniDttVLEV X-Received: by 10.99.102.6 with SMTP id a6mr9123135pgc.298.1507559817594; Mon, 09 Oct 2017 07:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507559817; cv=none; d=google.com; s=arc-20160816; b=bxzCS9v5xPkb/QzF2lSIC7muCCyntZoAXjmm6k8TaQYc43Ak28hoe1ZcJ//o1+Rd1w 22lMIGlAPQ3kF1fLTrA2G6FiCvz5ZqIgWcbp3v208CXVYukdX1IjzyoamVmq1kXJ1VPT kCRJY3GsWVE2c1LbRo4o4lvTMYvGkcYRTQrJXflwMTlvehNl2pyFe5PJ41xNoW79o5Pu XsVGPaqnIAeh4jR7e+bRlXO5axuvuLQIJNEkQBJmJ4fP/JkIyIrUvDKs68+noEcwjgkF xROwQZlBxTTEOrX1Q9CfQNb/H6OrdQE95+GTkHRdBlIHV55I43bSoW42eEfjHmott30Y lpsA== 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:dkim-filter :arc-authentication-results; bh=vhZK8jdpmCMsB6s0pfqfXlqRIWFAzlmu1PRPxwQLrTY=; b=KZF+OjBcT8/LGOGkI37UwqkAHAmQeYNrW5ZYr3iwUdTIXSypEWBcL0JEWMG8JRSQNg d8fDHrE+ImwP8aXQWGLr1flWnPaIsmjGGTu+NtKkFani0VsTiPMY6kuneQVjjvzuH7eQ JJSfVUw2S2txbO0iY32K6IaYzIjBuE5sbdkskqoQoPGqaBJUqd/N8tjdyq9QceLWRPc1 nbjjGcranyo7gXHHAQqO2SXgKQHrvxlHWFEP34xi9X9TqTSSRhSCAx+a8wfxXqh066Pr TcMdAiYpAMhqCbd2laCJbmd5kVauwgDsarNe1qxMe7Kp3pSxl8S7SHdSDkf/MCrOwfnK tHGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gSDGxejt; 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 f186si6258968pgc.744.2017.10.09.07.36.57; Mon, 09 Oct 2017 07:36:57 -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=@nifty.com header.s=dec2015msa header.b=gSDGxejt; 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 S1754814AbdJIOgy (ORCPT + 26 others); Mon, 9 Oct 2017 10:36:54 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:33415 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751636AbdJIOgx (ORCPT ); Mon, 9 Oct 2017 10:36:53 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-11.nifty.com with ESMTP id v99EZVZE018442; Mon, 9 Oct 2017 23:35:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v99EZVZE018442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507559733; bh=vhZK8jdpmCMsB6s0pfqfXlqRIWFAzlmu1PRPxwQLrTY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSDGxejtjJWQDXg5q+Kyw8jdqzMAwIFr+0St73spMmeenkZu3J7lauqnYZIYdZ5tC HDrmCF7L+tGetY6N4CsGixflCzG5ayAhCHjP9LUG+/SLCELEnLFIA+YCMAkTaTwCMM 4N/PZ9QNafaWaVcQ26d8higfbsTgESKIQH+4RNvRxcjyXOKTw4dhzQagfasSP/0V8b zMe7oKkLGl5Mm2u0Hi1Zbd3Irr82gbCuyGBGDjfu3Cv8hknPGJmJbElOC/qcb8is6e /QYDk3W2lnZVmy6MZoaKGOlRoMtACuB2hKRLzSt2BeNyOi1fYs/w7h0kZDNgOhoLyR 46lsr4bVRVFlA== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: add KBUILD_ prefix to CFLAGS_MODULE, LDFLAGS_MODULE Date: Mon, 9 Oct 2017 23:35:13 +0900 Message-Id: <1507559715-30918-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507559715-30918-1-git-send-email-yamada.masahiro@socionext.com> References: <1507559715-30918-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org {CFLAGS,LDFLAGS}_MODULE are supposed to be set by users, not by in-kernel makefiles. Documentation/kbuild/makefiles.txt clearly explains the difference: KBUILD_CFLAGS_MODULE Options for $(CC) when building modules $(KBUILD_CFLAGS_MODULE) is used to add arch-specific options that are used for $(CC). From commandline CFLAGS_MODULE shall be used (see kbuild.txt). KBUILD_LDFLAGS_MODULE Options for $(LD) when linking modules $(KBUILD_LDFLAGS_MODULE) is used to add arch-specific options used when linking modules. This is often a linker script. From commandline LDFLAGS_MODULE shall be used (see kbuild.txt). Signed-off-by: Masahiro Yamada --- arch/arm/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 Acked-by: Russell King diff --git a/arch/arm/Makefile b/arch/arm/Makefile index cdb5b55..cafa4d4 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -16,11 +16,11 @@ LDFLAGS := LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) LDFLAGS_vmlinux += --be8 -LDFLAGS_MODULE += --be8 +KBUILD_LDFLAGS_MODULE += --be8 endif ifeq ($(CONFIG_ARM_MODULE_PLTS),y) -LDFLAGS_MODULE += -T $(srctree)/arch/arm/kernel/module.lds +KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/arm/kernel/module.lds endif GZFLAGS :=-9 @@ -120,7 +120,7 @@ CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb # Work around buggy relocation from gas if requested: ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) -CFLAGS_MODULE +=-fno-optimize-sibling-calls +KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls endif else CFLAGS_ISA :=$(call cc-option,-marm,) From patchwork Mon Oct 9 14:35:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115254 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2629148qgn; Mon, 9 Oct 2017 07:35:55 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB2PGecxFW1cVPqTyTSbzkkUuP2hm+cuedcCGx6Bf4fhlb64RS+NehKf8eMuvuTDnI16olM X-Received: by 10.98.104.198 with SMTP id d189mr10624174pfc.55.1507559755265; Mon, 09 Oct 2017 07:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507559755; cv=none; d=google.com; s=arc-20160816; b=F+JXiNX88v9uTDN2ikohxdNCSSum+ClJsjfq20LMD4Jmc9ZfwT+C2hgxAEG2dkXTKP yE0hcbWWtBJk9G62q1PYLRWqGRCDzcDwkwDBNjPgt08G4cQqFdaaoohEadOctITj7MXr PiFrt+5RCqnM06I9/DaFVm897K65tDw8yVX0XFEXixLU/lB8gjt/uvSoN+RlHfCObfoW RHsoXGsbULRNCd0IjOtYs5c5629Qq8a4c78cRr7acy4RKouEBLQrhzudfUqrNvg8kbZQ U99OWHdePQ4apxMxsVQRt4ApjL/IEzHUxj3nXlycbXU1tbdRRfag1LLGLlTcLXPrsRYS K5OQ== 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:dkim-filter :arc-authentication-results; bh=UsZH4SJbRn2VBEhLQA/xUCVRwLc1HbN7wd8EuVpqrCY=; b=wtZsrR3fNrYio20DvTXXq33CsfcfIRe3j2XAQlItFgGttPwuZgsmx0z5MimH4RDLp2 vx2s0gNcmtC9mM0A6W37ofzwWpxPj3EA7OCPuMsrJzM/leEDOJBfZ3GWbZYTtGbGGDsS yhwVZi7VlcreP7ghLNmUufQ5wZYjH20tVgyjRhy8+TJRLFpMfPWEhGkM88wjku7CRxds l8YP0hgRqAkcxKtQYxY2MavxUhMofQyobRPHy9Ev+9NSA4QsGKxvIs7FA4YYQ+j03oQu 0biu6aNrfXBJw+04FLZ8ICDJrO2wzaItAEEWKcRYz/ROQQsVID8kZhePLCBwOEHOvPpL PzXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0i44Cre7; 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 o62si6314534pga.317.2017.10.09.07.35.54; Mon, 09 Oct 2017 07:35:55 -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=@nifty.com header.s=dec2015msa header.b=0i44Cre7; 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 S1754594AbdJIOfw (ORCPT + 26 others); Mon, 9 Oct 2017 10:35:52 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:32037 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754212AbdJIOfu (ORCPT ); Mon, 9 Oct 2017 10:35:50 -0400 X-Greylist: delayed 576 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Oct 2017 10:35:49 EDT Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-11.nifty.com with ESMTP id v99EZVZF018442; Mon, 9 Oct 2017 23:35:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v99EZVZF018442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507559733; bh=UsZH4SJbRn2VBEhLQA/xUCVRwLc1HbN7wd8EuVpqrCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0i44Cre774G5H218p40rQJsU5QO5zybOBMG4XDgjBbCTc6Km+nPA/YZHLej9lVn4z 3uYdDsuPhGSLm6GZESWHQxtzc2xO8HizZzYMFt5/IL6MH3gT5ZGdBsyZWP59ZVxOXL Gx/pARwuHizn3w6OG0TfPvR7IqZWUWbRxfCgIMZcd5SOOcJV2dcsDi4Vq0F/DQX4Pe F0gehvU/stw7xTYBeqU58NDuCX5aTTgi1BbVQ7oeEwW5wR4OSkKczcFz/bhF9wfvL6 J6NzKLsiJetY6x1no2CUPJyBFYcW/W11jpfh9ILl7cF0x+SvoB4OvdJWNFOR1f2KF1 TMpTL+wFqrKXg== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Richard Kuo , linux-kernel@vger.kernel.org, linux-hexagon@vger.kernel.org Subject: [PATCH 2/3] hexagon: add KBUILD_ prefix to CFLAGS_MODULE, LDFLAGS_MODULE Date: Mon, 9 Oct 2017 23:35:14 +0900 Message-Id: <1507559715-30918-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507559715-30918-1-git-send-email-yamada.masahiro@socionext.com> References: <1507559715-30918-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org {CFLAGS,LDFLAGS}_MODULE are supposed to be set by users, not by in-kernel makefiles. Documentation/kbuild/makefiles.txt clearly explains the difference: KBUILD_CFLAGS_MODULE Options for $(CC) when building modules $(KBUILD_CFLAGS_MODULE) is used to add arch-specific options that are used for $(CC). From commandline CFLAGS_MODULE shall be used (see kbuild.txt). KBUILD_LDFLAGS_MODULE Options for $(LD) when linking modules $(KBUILD_LDFLAGS_MODULE) is used to add arch-specific options used when linking modules. This is often a linker script. From commandline LDFLAGS_MODULE shall be used (see kbuild.txt). Signed-off-by: Masahiro Yamada --- arch/hexagon/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/arch/hexagon/Makefile b/arch/hexagon/Makefile index 207711a0..4f5c84c 100644 --- a/arch/hexagon/Makefile +++ b/arch/hexagon/Makefile @@ -11,9 +11,9 @@ KBUILD_CFLAGS += -fno-short-enums # Modules must use either long-calls, or use pic/plt. # Use long-calls for now, it's easier. And faster. -# CFLAGS_MODULE += -fPIC -# LDFLAGS_MODULE += -shared -CFLAGS_MODULE += -mlong-calls +# KBUILD_CFLAGS_MODULE += -fPIC +# KBUILD_LDFLAGS_MODULE += -shared +KBUILD_CFLAGS_MODULE += -mlong-calls cflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION}) aflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION}) From patchwork Mon Oct 9 14:35:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115255 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2629453qgn; Mon, 9 Oct 2017 07:36:10 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBDJiCCyR46aKLHb4N9CznVyLp/jwwGuTmFIfh4CXbmP9rFnzGqgw/0UaP2cLk1UkDj6JvN X-Received: by 10.159.218.1 with SMTP id v1mr9007667plp.299.1507559770858; Mon, 09 Oct 2017 07:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507559770; cv=none; d=google.com; s=arc-20160816; b=lGE9LThMlvMcCs3yQUQT5q2dzR/byM5afWdB8k+iKHeAuo2QB5mbPEZJmHa+PSpBhm VQpvmVdXgzxcMjaD6TlhF8K7PLiLj3+hr6ruqY35eRX1f0/nmC5bToRV4SMiIoA9qiT0 lekZLzLecZCyKnYtk9bZsHzvcT6dC2VvfY1gmGBX6lXRJeayWgLPP0ONtp4eH6HpQrVe kf3Bx/UpBZ1/QweAT+RKjHWc78D0bl5LP1LTdOH+hQrjdc6AwFlUZaSSiOnBp2j03Yr4 7cLsDp3Pb99TxOZdk8h/Y4akgiLRj0D3CKq9ikpjyXI5O6BGq0Vm+8XqKLNmf7NZ+ubY kiQQ== 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:dkim-filter :arc-authentication-results; bh=n2i857VRcUZtrdVkAkaGt02SqHXBjeS4kpWLaK0F/Dk=; b=hWx4q+q7ooqiMlhrnoFN9rDrAKCSgRnnlqPsV0bCH+lYYgfUG5E9vIPwT8mZuoRRSa EJa3j50C5Ht56Ewtki3MG+tuI/zgEodI6knOfHv1y7+eBX2ovti7Hf5lcEi6d2sGsZWf F5bQzrbhzMttU0C5MXRN7Dx/apAOR6JgOvxndNiPiH/mNr+1PoLNiUWxjh5D2W4KjNbL jOOMi72NH8CQuQLEPL1QfaPUbUfB0ucY0FZi05SU4wGjYcY2av7TCEgeNmte519MwThD YdqxBPIh1RwNXt7VKweysL8BneW2R2DvvN7LuJLjPe0AK+rLnhetl8/NysDY1JDoMi5u ct1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lUXf8aqL; 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 x6si5187980plr.35.2017.10.09.07.36.10; Mon, 09 Oct 2017 07:36:10 -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=@nifty.com header.s=dec2015msa header.b=lUXf8aqL; 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 S1754807AbdJIOgH (ORCPT + 26 others); Mon, 9 Oct 2017 10:36:07 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:32404 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754649AbdJIOgG (ORCPT ); Mon, 9 Oct 2017 10:36:06 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-11.nifty.com with ESMTP id v99EZVZG018442; Mon, 9 Oct 2017 23:35:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v99EZVZG018442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507559734; bh=n2i857VRcUZtrdVkAkaGt02SqHXBjeS4kpWLaK0F/Dk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUXf8aqLcZeoipsuLmIUHhZ35u7OVTlsd01YgxYSXyQW76aEk/cUed8+OtoFdg7Dr V77BOHWo8UDeRs+hnYZ/fT5T8esBYE+Iyo5dJiHRJen23Y3Q9SB8XTTvQWFp2z+SHm JMF+YNJ+OlPN+N5SzbIOsz0UJhGsoPynkGBKOueFJdtew16ncpaLBWe8qBMntVHR4H ZMUCTRoNiLt8/92jDBnJDkRxxZWPY5RYFf/GWw2a/xnFAtTQ2HgVE9HXlSupa3CsO3 KUmq65rEhMvdmcbG71LFHuVLinY+B2ja7WFsZjuZCeGmg0p8OIaNaOZaxgn0tjyqLD Kam2OCKEIZS7Q== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Mark Salter , linux-c6x-dev@linux-c6x.org, Aurelien Jacquiot , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] c6x: add KBUILD_ prefix to CFLAGS_MODULE Date: Mon, 9 Oct 2017 23:35:15 +0900 Message-Id: <1507559715-30918-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507559715-30918-1-git-send-email-yamada.masahiro@socionext.com> References: <1507559715-30918-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CFLAGS_MODULE is supposed to be set by users, not by in-kernel makefiles. Documentation/kbuild/makefiles.txt clearly explains the difference: KBUILD_CFLAGS_MODULE Options for $(CC) when building modules $(KBUILD_CFLAGS_MODULE) is used to add arch-specific options that are used for $(CC). From commandline CFLAGS_MODULE shall be used (see kbuild.txt). Signed-off-by: Masahiro Yamada --- arch/c6x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile index 6b0be67..6f6096f 100644 --- a/arch/c6x/Makefile +++ b/arch/c6x/Makefile @@ -12,7 +12,7 @@ cflags-y += -mno-dsbt -msdata=none -D__linux__ cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls -CFLAGS_MODULE += -mlong-calls -mno-dsbt -msdata=none +KBUILD_CFLAGS_MODULE += -mlong-calls -mno-dsbt -msdata=none CHECKFLAGS +=