Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp625693pxb; Mon, 16 Aug 2021 13:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSezy+LiVy2t/SNOfGxmW30xNgHmW9r95tUHKOfcNSWsRaXfTrAr4bZwCdgcYfF3waFr7Z X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr270854ejb.334.1629145424757; Mon, 16 Aug 2021 13:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629145424; cv=none; d=google.com; s=arc-20160816; b=UwhsgIIlNQ2sk97G45Rbxbt13izpuL3DazJt1s1QTW3OzKUSMi9TiGjSWMF0L99GXK 0Xggp3s1E4i/LFjSjolbbbwxu+XYu2Yq/b50tH+hS6GwDP/La36UD9mHwQ4/Gg8HrVT9 diRoODf2utp6l0IfEMHvZsqvSOdZcul4o7qnk8nB+LkgkXgi8vIER17+5gke9HvaP3GP qHgOAbOUB+znacgtWK9M1N3ukZDnBKG2nqd4vCunBfhw/v0275TQXaMMyVP/iz/YIwVf G0V5NVHdNFrQ3jFdrE5VqJoHoGX+/DNgC1KPPDWq2CXapUi8DEtBGPAMagqf+HDnrod9 +2Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R4AlFQzDnlnc9lBVaSN+LIzYbPd6WtedlNYP5+sDEgY=; b=AAVKoDiZuoikPH3G/o21v96KLSst+myiRXiCWtR3RUivNWObXN/axugPGygvlpVH20 MtKcrNxQyx/S+xzqNJ0GXfY3TjnsieCSAGtKdJzMMngX8XbkwCdKgmYV4SCefSro0gOp LF3DVqm1MRMb1h0yvLEjeJimlFaxALvQ1ySam68foTR8HtbA8q6Kb6THRAn1TzjoPGkB pHT1UN6FynovmTXrKTsnEMU1QltdMhYJTkbt+q/baG2We6iBXDgM3S6DZQCVOngoJfV2 s8tWsTT1eVflbPXexQ5hczoIkczz9eBZkrvAsFZemG3/w2tfnJ8QnMr2mB34V93+bLnO GGGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KmgZBT6a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si136385edj.155.2021.08.16.13.23.20; Mon, 16 Aug 2021 13:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KmgZBT6a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232027AbhHPUV5 (ORCPT + 99 others); Mon, 16 Aug 2021 16:21:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:53882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231203AbhHPUV4 (ORCPT ); Mon, 16 Aug 2021 16:21:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 91D4C60EE4; Mon, 16 Aug 2021 20:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629145284; bh=qGJV1Mh6XW8/olRerNEsJb0Qw8ULXjJ4v5IofuIlKRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KmgZBT6a4HERZoWyIfVQh+jv8irgAQxJ0ZYRAybbunCV30rLZjHhjhqm2HOhxZ6T0 bRYyR440M7Vs+zQz3gtZ0sbLuxJtSOic4pYXq/jrjZmrpMMAWQloAZAQ68N+z13b78 8TCW8sn08i4iTWjzJtBi6TJInEYBIDjp7Fi/LoAhjovP+Rt3AHxv5Nu3OV+xETcMI4 BsUJKt6DSSc/GrKyMk2mi7Ddw9IXNZOhWMU5rkWDfJgOS4LYLjjIwHoyO+klbC5G4N kyiWd2PuX7nbkle9B1zR0Q7mp0ROYl1sbZyxUS6ZhgCqoJuR7Rl+y3b4kDX+e/5FWw u3Dlj0u7gMq/A== From: Nathan Chancellor To: Masahiro Yamada , Nick Desaulniers Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH 2/3] kbuild: Add a comment above -Wno-gnu Date: Mon, 16 Aug 2021 13:20:55 -0700 Message-Id: <20210816202056.4586-2-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc2 In-Reply-To: <20210816202056.4586-1-nathan@kernel.org> References: <20210816202056.4586-1-nathan@kernel.org> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Whenever a warning is disabled, it is helpful for future travelers to understand why the warning is disabled and why it is acceptable to do so. Add a comment for -Wno-gnu so that people understand why it is disabled. Signed-off-by: Nathan Chancellor --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 3900f5824721..07b76274396e 100644 --- a/Makefile +++ b/Makefile @@ -777,6 +777,7 @@ KBUILD_CFLAGS += $(stackp-flags-y) ifdef CONFIG_CC_IS_CLANG KBUILD_CPPFLAGS += -Qunused-arguments +# The kernel builds with '-std=gnu89' so use of GNU extensions is acceptable. KBUILD_CFLAGS += -Wno-gnu # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the # source of a reference will be _MergedGlobals and not on of the whitelisted names. -- 2.33.0.rc2