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 +=