From patchwork Fri Apr 3 21:24:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11473667 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 252881668 for ; Fri, 3 Apr 2020 21:26:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0462920719 for ; Fri, 3 Apr 2020 21:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585949180; bh=EmiuIqsYPV8W8CXVrt7KLo1M/g/vRG1KHKUSNdPMGTM=; h=From:To:Cc:Subject:Date:List-ID:From; b=kACFeAz3tIl27+TB9Lp3zihqst4/TScQgKvKikQEaXLgwN5wyavwpLNwKZlr9niTH OAJ4k0Z0Za+7UVW/fEEndKpQ8/OG/17SOEpRP0ebaslxqmndVd1A9gwcrbO33BvZUm jDUKLFYIeWtoB4e3s0A76miczKubwJPfgFDS+76E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727947AbgDCV0T (ORCPT ); Fri, 3 Apr 2020 17:26:19 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:42404 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727867AbgDCV0T (ORCPT ); Fri, 3 Apr 2020 17:26:19 -0400 Received: from grover.flets-west.jp (softbank126093124033.bbtec.net [126.93.124.33]) (authenticated) by conuserg-11.nifty.com with ESMTP id 033LP536011098; Sat, 4 Apr 2020 06:25:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 033LP536011098 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1585949107; bh=itiQkkf048F6kCh4pcS/naHcdFnBaw1elbH1EPVVg1U=; h=From:To:Cc:Subject:Date:From; b=h6foS4CJXpAZEodoGqHX1CstzNsnmlzlclJEt/JW0nHe1anWa+ZmggaUMMAXb4uyj naVcGgfLLjdpcfy/eGPEs3bnLQ/kvLV1zqxgJwpukFsnI5wdXW1xHipNBtgtB/nxDO BoHv0/K0Zqp7iLDqCjBrJ34QDMvTGrl1Q3w+UzQCBMrJzXwe8/oyrrcLB7fgAY+bo/ nHKpSlfEDnXuZcRkL7HRe+mEGIbFR6qmywii3yeT3BkDkXSvOf4Gdrc6JB4Kl2doTo kuvlvP9glwwC9CXZ73oDDFujQEDKW6YSQA2fW9MX+mlWUxbGwCqMkwZsjFf0g3dD/o mu/gnuxCDdo8g== X-Nifty-SrcIP: [126.93.124.33] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Kees Cook , Nick Desaulniers , Thomas Gleixner Subject: [PATCH] kbuild: do not pass $(KBUILD_CFLAGS) to scripts/mkcompile_h Date: Sat, 4 Apr 2020 06:24:59 +0900 Message-Id: <20200403212459.13914-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org scripts/mkcompile_h uses $(CC) only for getting the version string. I suspected there was a specific reason why the additional flags were needed, and dug the commit history. This code dates back to at least 2002 [1], but I could not get any more clue. Just get rid of it. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=29f3df7eba8ddf91a55183f9967f76fbcc3ab742 Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook --- init/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Makefile b/init/Makefile index 30aa8ab11120..d45e967483b2 100644 --- a/init/Makefile +++ b/init/Makefile @@ -35,4 +35,4 @@ include/generated/compile.h: FORCE @$($(quiet)chk_compile.h) $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \ - "$(CONFIG_PREEMPT_RT)" "$(CC) $(KBUILD_CFLAGS)" "$(LD)" + "$(CONFIG_PREEMPT_RT)" "$(CC)" "$(LD)"