Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2365241imm; Mon, 28 May 2018 06:48:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIaS5OI/IYk86ZCVG22wdHDEsDZRny1czuJbRRx3u1v/w1nxvqRSJB6eeMyy4h1rHEEKM1G X-Received: by 2002:a17:902:b591:: with SMTP id a17-v6mr9489048pls.2.1527515320762; Mon, 28 May 2018 06:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527515320; cv=none; d=google.com; s=arc-20160816; b=rvci+iJhz05n/9O0kI3HFAO0E9xBWn8vChTUv2LHF6L/aJf1HtjRiO6a9zqv/nkkW2 bzJcwOMhM9OppcZAd5wbMrvAXkKf2t8kJS+Z2fvEg6kQPP0B9jipc7pUUf4F0nOeyv5f VDWhmryvD9I/796d4PF8o1yxpq9pNPobrGzX9n6qptmEenxQrvfw4yCgEPhpPizvfpOF Q1apAKrpiDez3rlI63TlCoUBGSPaP8xZl4M7ey+02Zu54gfC9ruLw1A9/hCDM8HicknE E8TjiBiEpkqdAeCpf/J7YR1mFn3/oFLAYixUa79XvHF6UYdR4DQ/+7L+nWtj5MnDFtiR dfDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=vuVHy08g2pQiXC2u6ZQGmo7wQJMLvMDRYHgASr0lU0A=; b=EEjogL9uO9Vh+TTnumyPmDITqQN8d3x6zkajM2HXsMy1GR1BjaYNQKITiRcaLIVAvF muSLrG/M1jlEBUg8H/hug/WgBu4IICVZTcdEutCNYoA5WXFOvmi0m+StSe5ZZgW9/vU7 uvMUc9hQGTjqDJYAs9ZbPl4Q/BVX65zQFy0bazmtTOQX0CZQ5f8nIxTshTKMeJPdji51 Kt5CFlRpPW9CvJOemgsp0hJciGr8sXye3Kzx/txiMbXtgiYW7xqiojwogtzmq36J6HO6 viApM0yBGHNRy0svc8cJ7gd2F42urgMCuXwZqRYshk7kvCTTALJ7IxupmSiOqd/+5evA mXJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EDLbvyCM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j27-v6si6739465pgn.450.2018.05.28.06.48.25; Mon, 28 May 2018 06:48:40 -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=@gmail.com header.s=20161025 header.b=EDLbvyCM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937679AbeE1Nrg (ORCPT + 99 others); Mon, 28 May 2018 09:47:36 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53940 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937436AbeE1Nra (ORCPT ); Mon, 28 May 2018 09:47:30 -0400 Received: by mail-wm0-f65.google.com with SMTP id a67-v6so32207039wmf.3; Mon, 28 May 2018 06:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vuVHy08g2pQiXC2u6ZQGmo7wQJMLvMDRYHgASr0lU0A=; b=EDLbvyCMtfbMLJV8u1s5Nh206RLUngGlooJ26262gr1xlhJcftAgu9sxuA8aQ1A0+H ettpRhOcXl8aBoXxVA5NNXzkUTxvhRlqFz2OSmsknS8qmv/vawLHd4soMMs1bf1tqm7p h27+2wLW32dX6L+50PFaIH0uhQHL2KSJVwxZ+Qikm8fIITb6P2nlCgJZOlPvGCAKiXHn 2CRHdy2bWOzg2fdQb7lrM2srWrxMZlA2AfMs5U4kahiJuOK78Ba0tZbG3qeZ6LQtMqhn sBJeBHNswkOS70JOqIULzL4O1GLQqbW3CtiCdVPEuE/GG+6/cCVIccn2Xwl4nm0s+ekp UVpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vuVHy08g2pQiXC2u6ZQGmo7wQJMLvMDRYHgASr0lU0A=; b=U+wb1J/RgyOllW9SeqO+u1kcd+YzXFvhsfLHnXPUqjHn3p/Xt+XszAiV5kRF94qLjC lesrSEU6mRFFcYbXxdiEHG9HFjKAIIZ6WK2b1wR8W3RSxW0XXtzroywDTB6IQDcF8vkX M7shd5cDIE1WcRz5LO/+uuJjWGMyJ5sHr4qgDU5jcX2dpU5Y1tMFE+YbPk0Rha3osx+g DzV1OumWOYMybSyhY93N2w6YsL0bCf5sR3BLVVvAuk0bSpjCaRkCs3YQv521623BocMB eybV5p8UpDXyfmrZvYsCHngJpUvehVqMvqVLWu33ZV5BB37kclgaGEclHSltqb+ZZfM+ Hzbg== X-Gm-Message-State: ALKqPwekAKiBTFxQ0t2fW4gTGDsSrYAJOqIkRDSEcs/fW7rWmRaAyNR9 usMMl+oxeX5YN/GEUBU9crW34UpF X-Received: by 2002:a50:87e6:: with SMTP id 35-v6mr4779253edz.1.1527515248690; Mon, 28 May 2018 06:47:28 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40cd:8c00:54f4:f1a8:ec83:5053]) by smtp.gmail.com with ESMTPSA id d29-v6sm17105397eda.52.2018.05.28.06.47.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 06:47:27 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Masahiro Yamada Cc: Luc Van Oostenryck Subject: [PATCH] kbuild: $(CHECK) doesnt need NOSTDINC_FLAGS twice Date: Mon, 28 May 2018 15:47:22 +0200 Message-Id: <20180528134722.11358-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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