Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1998583lqe; Tue, 9 Apr 2024 07:01:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM9o6wEDLW6pNXKV/zmxDDy4Dy3YNiYWQip/NO4LGCF4gzNTWRE3es7omX3zR7fzPXJaw35i/w1De5WDC9OLeA8n+oZFjLUahY09w/yA== X-Google-Smtp-Source: AGHT+IFsaniftTNfSwuLMPIn8twuBiFaB4IW2tQL4f6qohrOh4DwviI4Ol3vBepaVbkwCjk+TlqO X-Received: by 2002:a50:9eec:0:b0:56d:faa2:789b with SMTP id a99-20020a509eec000000b0056dfaa2789bmr7997890edf.40.1712671305979; Tue, 09 Apr 2024 07:01:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712671305; cv=pass; d=google.com; s=arc-20160816; b=dCYT0Gp8cLIIomrb80n0+KHJWG5a8wGqkpitY+G84G/4KE0ITg0m9zfIJsOTOeNPP5 Uj3dLxx6eOJXWX2TCsFp+TYV2J8/HwsSBFsNE+bVyW9VGObO/M/hlhjcGGOYabxhnVGK EO0hRA0D7bLUF4TiXarNFSkwk9vwoJ9Jhxgdcvzc1V4KyJnNg3PMnqd5t4lUPb5XXfLs 8A6RBScdo7CeMmJKySl0lpRSYD8yGmPdAE3ZgpTn8LhArM3zTftZtaKmkpum9OdeU9H/ F428uxYupJ7/sE3VivPUyccfSMIvDfI8i3DHF4n3F1asJT0AF1fc0QRWv29Sa/ZS9rWf WkSg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=wrF+7zPgDTwFJXmXxAZ0Mgg2foY1HxxpitT3/APsmqY=; fh=VehPt3IvrE8vXpZWN3ctklQQrgU7z6S4VQ7yLo5FDXM=; b=bGk6dYlPjijmS8hd6ZAE/8XOfH7xCzf33FFtyyT+/cOGZW/0FUHBuLmAk6zMQnI0LQ KDi2HpPlsJHpYIGuD6IRip6nIR6FzrBSIwxh8dVv6IscASEApK7W/fyewoaUsDMyO9VG HEHgpw9YSoV5G1OyglhsUu3W7csRJ3eKL0whPK+uqOe+MNdRo4sUlsIQtc9nZxBI5IBG s2LPPNFHTNFgwJWobk2//6HQtGlCZmuO6cD9FKjecELDVE9MUnSA1W/dhuW4rkgsYX7f vkAB430Hx01TxKmMd4UnDm6BwidQ8eXs8Jp3ryKtYBs7ubszNGWcQvC44eUlKIulUjeK rtiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="o/vZLIAo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o2-20020a509b02000000b0056c4cc04f2bsi4777378edi.210.2024.04.09.07.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="o/vZLIAo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137043-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B370E1F231FF for ; Tue, 9 Apr 2024 14:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEEAF13048B; Tue, 9 Apr 2024 14:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o/vZLIAo" 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 CDD5012F38D; Tue, 9 Apr 2024 14:01:08 +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=1712671268; cv=none; b=QMsoU/iHfLeaCRRiwLHzRraDu/6rkc8It85x4VK0POM/7MXBM5A4ltrfVjAe59bzY//mHdsFjRZYHK9hrFi8lgJ+ap3T/rUjnSpV4c8DeDB8/oHe2Sn+q8GexI6XhbGqTEwbHXMnafmdds+zzN/AHVvDJfVUgL2iPTW9pIetyJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712671268; c=relaxed/simple; bh=OwmOVUjCxv1ceoUcK0JKEZS/f6zK2xJ2fR3OQpIwvAk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UGQgl0mZWrt53GcmeNVpLhbF9VgX3ufS46qTVlT9ZFgsvbg8UIe8zllnDKQSiXb/+AiKEKCdOXtm4XhHFlqgdlna7z7xEiRmDPd747co6EFtXXOXoij+AxgYJBWnq3Exhj8kyzqX81dyMcRZqzk0aXTeRozczoYtm2QgDixh9pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o/vZLIAo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02D32C433F1; Tue, 9 Apr 2024 14:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712671268; bh=OwmOVUjCxv1ceoUcK0JKEZS/f6zK2xJ2fR3OQpIwvAk=; h=From:To:Cc:Subject:Date:From; b=o/vZLIAowEbtnS5yLJVyXyO73vrmHagQ76P0tGPcQ70MLclvTK2i/UKemgdQ3Nro+ P/xczUtUI+2b3ID1wswWAz7p25VS4eVvJHj9mpZ7i4Pzdska69X+Q5ofmrHEN8SyM1 syUL0xPahY5GjXe4iQ99mDr4Ut3fDHcLJjjz8yRKwoBLahebfCMyqLUiGFo2UojABY JnQy77wbUltj1iCFq74CbM7s6WoPhAWUzelnqDjAubKqhwaBnuSSvW6fNxUzGAxOXo qQ4qTT+0Z+JABWRWbiGjufXRHzpEhOY1rbLuhCDh9dby0QgI5Q/OcWG3RK4l2EIecL VIZSyv6cK7O7g== From: Arnd Bergmann To: linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , "Richard Russon" , Jens Axboe , Robert Moore , "Rafael J. Wysocki" , Len Brown , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Lin Ming , Alexey Starikovskiy , linux-ntfs-dev@lists.sourceforge.net, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-trace-kernel@vger.kernel.org Subject: [PATCH 0/5 v2] address remaining stringop-truncation warnings Date: Tue, 9 Apr 2024 16:00:53 +0200 Message-Id: <20240409140059.3806717-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 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 We are close to being able to turn on -Wstringop-truncation unconditionally instead of only at the 'make W=1' level, these five warnings remain after the previous round and three patches I sent separately for drivers/staging. I hope I managed to include all the feedback on v1, so please apply directly to subsystem trees if v2 looks ok to you. Arnd Arnd Bergmann (5): [v2] test_hexdump: avoid string truncation warning [v2] acpi: disable -Wstringop-truncation [v2] block/partitions/ldm: convert strncpy() to strscpy() [v2] blktrace: convert strncpy() to strscpy_pad() [v2] kbuild: enable -Wstringop-truncation globally block/partitions/ldm.c | 6 ++---- drivers/acpi/acpica/Makefile | 1 + kernel/trace/blktrace.c | 3 +-- lib/test_hexdump.c | 2 +- scripts/Makefile.extrawarn | 1 - 5 files changed, 5 insertions(+), 8 deletions(-) -- 2.39.2 Cc: "Richard Russon" Cc: Jens Axboe Cc: Robert Moore Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Cc: Andrew Morton Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nicolas Schier Cc: Lin Ming Cc: Alexey Starikovskiy Cc: linux-ntfs-dev@lists.sourceforge.net Cc: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-acpi@vger.kernel.org Cc: acpica-devel@lists.linux.dev Cc: linux-trace-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org