From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934128AbeE2NIe (ORCPT ); Tue, 29 May 2018 09:08:34 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:40105 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933444AbeE2NIa (ORCPT ); Tue, 29 May 2018 09:08:30 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w4TD8Rnb006965 X-Nifty-SrcIP: [209.85.213.54] X-Google-Smtp-Source: ADUXVKI/Oon9U9httk0sE/2Q+Nas+4lprnxzC8ZPjLsoLIBSCnw32jyJbWNHkcr3Um6STXDhIcK4CTgMurAFh3KAoCg= MIME-Version: 1.0 In-Reply-To: <20180528134722.11358-1-luc.vanoostenryck@gmail.com> References: <20180528134722.11358-1-luc.vanoostenryck@gmail.com> From: Masahiro Yamada Date: Tue, 29 May 2018 22:07:46 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: $(CHECK) doesnt need NOSTDINC_FLAGS twice To: Luc Van Oostenryck Cc: Linux Kernel Mailing List , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-28 22:47 GMT+09:00 Luc Van Oostenryck : > Currently, $(CHECK) receives NOSTDINC_FLAGS twice: > * first directly in the main Makefile via CHECKFLAGS, > * then indirectly in scripts/Makefile.build via c_flags. > > Since once is enough, leave the occurence via c_flags and > remove the one via CHECKFLAGS. > > Signed-off-by: Luc Van Oostenryck > --- Applied to linux-kbuild. Thanks. > Makefile | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 56ba070df..3140ab1db 100644 > --- a/Makefile > +++ b/Makefile > @@ -808,7 +808,6 @@ endif > > # arch Makefile may override CC so keep this after arch Makefile is included > NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include) > -CHECKFLAGS += $(NOSTDINC_FLAGS) > > # warn about C99 declaration after statement > KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) > -- > 2.17.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada