Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1390030lqp; Mon, 15 Apr 2024 05:22:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBEfLNGTBAZS5PoWgR2ZvtFnIYzr66+RuxgBBSqHSM0vC3Ksr5NncHM8+Pm5Clldv+wskHxUbbrOLHdWCUn3HogBphqCIjBTE3t7NTug== X-Google-Smtp-Source: AGHT+IFcXH4dUFgO/GXBpUDyDcm3ZRN7fzaQPIzv3rZh8P8K5pPuWX1FlFvmGCRD7ZRbPatpaKCH X-Received: by 2002:a0c:d848:0:b0:69b:690b:1fd3 with SMTP id i8-20020a0cd848000000b0069b690b1fd3mr5616913qvj.20.1713183777604; Mon, 15 Apr 2024 05:22:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713183777; cv=pass; d=google.com; s=arc-20160816; b=tgg9bF+2GJr5KLGGqdTw0DDS1h8HioH8PuvTMMXbSHazRlHdph6s5A6lO6jLFjZOdE tJL/ibJ+YL3xgcNDYPRwwMv4ibX7kgyt83Enb/v0JpOC6tzVA2N78cM09kkC4Bwx4gDZ mgO7FXH0p5zcGir5Cv0psgWOyBfjs6qzWOxe8BxmYGklCOvp3OiJCPrd6SxmrP/i9+9K BF9jcndCtTUDgZNMFoaH3d/D5YV0YSsVaS/k1+M5BLFlHKq3Ut8MoDjOXqT/GJtKExU0 y81Zderl4lGiFPgMbHZS441uULP+gYDX1qCJGWmlX7pzK8/KF73QU1SG3pv4YDrMPgdR iO6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3G4WNTWOOEa6YSn/LLZgx3/VOsi5C4695MbdkZqe9VA=; fh=8mZP3M6PAgp/PjjZstGz5vfdgfC3/JFy0A6tayPaJ0U=; b=m4AA/DkTnkOmbUK6n55fWdajKstqN006F00e1c+fVXXjuu7gB0NuaB4bU/MCNBK+um 0bGVxidCfqT5kM2olWENFgFq0xKqBpPL+2u3/y0E0obsnb5GeSO5OFuSygaZp5TP65LZ ToH/FXcbSCGZyn1A82xByeIwttIL1IPm9mKAhKAgV5P+Fqi+yv8AFSSf0ZCTf8iLIG2B XYtv1bqov3s+Cvl8KuFz3DQKdoWlGBVO8N4C8ol5vZDu5SHOJH6wvSezgLeIInz9oklI T9VEm4M2grfJKveN9m3NinHnAi8ZujYmZp9EfERnvzFlicOTDoFxYUUyvqrxbgOleYXr sbqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eQpdE6Gu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ef17-20020a0562140a7100b006991efec318si9529319qvb.26.2024.04.15.05.22.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eQpdE6Gu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 577E71C203DC for ; Mon, 15 Apr 2024 12:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A21C69D27; Mon, 15 Apr 2024 12:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eQpdE6Gu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCD7670CAD; Mon, 15 Apr 2024 12:20:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713183659; cv=none; b=Q+N9J3nwy4fJ/sokrJU4GpcSeZtHylc2dYmPDu20/WsFHFOhgOG21bn5uilHUcI/fx/mET17IChxzpKYBDYKt92aXYciD0Wwp0GpUjwVw4bYEIWqGG7pwfN+B9WWX6a664zfIT+2VCxKS2PmvPAEeLIPpuHvIZelU5nAzfA5VOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713183659; c=relaxed/simple; bh=rFheM71yjeyhsdNNlmFP4+aGuyKqpUtHIcDrzZ28OAI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e4ADMjHrM/gI0pNg7MOJdGlmaBMx18CBY0mRUonpuL0uIw89PhkI+v1sDjhB4xvqGQ+mV82Wr7sfCS+22HWVd9H2zdr4+7T1UTXD4z824UkMCrDiXk0x6voM+ZpGJJZDJ8fRXEncZabZvRJB+umV1P3ER2XEEo301f3fX4AsJIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eQpdE6Gu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81A4FC4AF07; Mon, 15 Apr 2024 12:20:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713183659; bh=rFheM71yjeyhsdNNlmFP4+aGuyKqpUtHIcDrzZ28OAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eQpdE6GuxbEQNfuOyFt+EkGaz36CTj5VFlsD3OgUJGhuFsy9ntPntCbL7Gte3FBcY 1kc8TnF7C28DHfBAPorUAdaOyRfq1pPxA5KrV59hyC/aMWMVSiIQRTf6mzdI2HIOIq oIci99l9WdfM/aSfPq+iF+58mVD1nEoKEyOFk+F1bX1rKCBzUuq7caFE5RGr0qkxwn JtKr7+oTM/eODyORqhiBBMkti4HoLHteI+MT6kjf5Lnm6xdW+LxaZ96BHzHQs5PdbC grhTAqAjwaJa31mr13JqPu1+HClA74HitSBcQJN5vC+7FpB68Kj8Ty2KyCfQUJJ9be X4n2O1ZkQ92sQ== From: Arnd Bergmann To: Andrew Morton Cc: Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Kees Cook , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] [v3] kbuild: enable -Wstringop-truncation globally Date: Mon, 15 Apr 2024 14:20:37 +0200 Message-Id: <20240415122037.1983124-7-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240415122037.1983124-1-arnd@kernel.org> References: <20240415122037.1983124-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The remaining warnings of this type have been addressed, so it can now be enabled by default, rather than only for W=1. Signed-off-by: Arnd Bergmann --- v3: no changes v2: no changes --- scripts/Makefile.extrawarn | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 1d13cecc7cc7..17c511ddf48a 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -108,7 +108,6 @@ else KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow-non-kprintf) KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation-non-kprintf) endif -KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation) KBUILD_CFLAGS += -Wno-override-init # alias for -Wno-initializer-overrides in clang -- 2.39.2