Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1389055lqp; Mon, 15 Apr 2024 05:21:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5mQI15lVEVIN2wJmuobcr2WMFvLFkmTSQdKSzrT4pGdCjlIRL/DRh1575CSL8yXktNL85yVml9z/m7/UG/SSq1GhnqNYB879XagUapQ== X-Google-Smtp-Source: AGHT+IEfTx9/eL7A+zdCLrucc/cflwyuOsAp5T+9lKpfS791Y5+QZx4gycUdfWqE8jVFPhD5OpGY X-Received: by 2002:a05:6a20:3941:b0:1a7:5479:6544 with SMTP id r1-20020a056a20394100b001a754796544mr14648358pzg.7.1713183667871; Mon, 15 Apr 2024 05:21:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713183667; cv=pass; d=google.com; s=arc-20160816; b=wNwB1uAEtgezapM5T0CN6UZabt8SX1IybqjacWRRuYXwRjgnlIaV4AVz2bz2QtFgp9 Oww3i4Xy7jcGKFDjhKUjUMj+Cc7DsmK9JTCdBTw/mzXq7PdmYYlpC504GwocxiNDmozH rHgovV/RR+H9Jd8xs1IMYMapphh7Dd/pi9cvbm+HQOBSAeF6bC+hGobYrPsRowhujKZY AEkuWgjW7vRLCHu0zDYTuVDpKGDHyDqMgoNHze77hUX2aLk/1qBVQojOZzBGqd1xCXkV v6qUx/BgKFE6fwHtpQ9f/xUWAEt6BIUcnoJD4qyHoQkdLP0ergDJJFURDoPRwSCFHTaN Ljvg== 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=5AHo9xpAvfCMD1FmTPLYQDnSEl4Xt5XuaRI3v751EEc=; fh=8mZP3M6PAgp/PjjZstGz5vfdgfC3/JFy0A6tayPaJ0U=; b=W5aFKbkt+Xyo/SPl/NVNuoFk1gOtzR3mQ6oAd8VVZkcTwtk10zvOH++35f759CiQiN kwjAY4BJiREamdaF9Yq52kQm76pjgpquiwntQIfZTKLTtCkJ+d3ZAv2zG4yuVl2fIl08 A4hXJ4aa2Q6fYxJYb/XapBQcgISWq+7WNLLQ3JNSnXt+NjVaMGb6g0kZoOSl3Nl9ipsB CrzZBU77sISWy1MGsPyoMS2sFoOHPw1gyRfMxAQ9QPThGYr1ILYO+9DdHEg++4cZSHLy aaUk+xaGawdB7oD1F+Q/iyNbM/uXQCQswIy07veh4ax30SWjXmL5rw8hLfPpZgvIOmB4 kzrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JvVnKv4A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 138-20020a630290000000b005d7bf204e22si7685982pgc.859.2024.04.15.05.21.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JvVnKv4A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145053-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BFFC282EA5 for ; Mon, 15 Apr 2024 12:21:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 110BB6BFC2; Mon, 15 Apr 2024 12:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JvVnKv4A" 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 340B8679F3; Mon, 15 Apr 2024 12:20:45 +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=1713183646; cv=none; b=IsT6SNhZdGEaCbjx+rH1pVzKiUPwIgzgy3Igo/LYXjLFq9f6cJKUELaBGvTQvl1sgV/B+o65kyLX5CNG5W7cX1KWbSbYguBQa8lNtcpvqXidothEoFih6xtofLvKbFj0vtVdC6Dkp3vTnxZ0PtKTsQSektlkclGyIjMFjZvea5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713183646; c=relaxed/simple; bh=IW1/5zKnRf0vw8lfNR7D2qM5w54xu3yNJIPDeRFonXI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KPDvdPyIpvRuZY+D/rU6LujgfHBYtZ2I5aQmQp/lDC/czmnyqVqUl4Fe7+b/EnIzkkn7UZ0fQMXIUEKSlsfC9EPVOsQ68o8MouqWZ7VZ6yXjSrX4RWlBYPptehE/VrERXXHz6IYyo9YTL0qty4wCpgeIa9/ToG+usWxYC+A6Pp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JvVnKv4A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3B97C2BD11; Mon, 15 Apr 2024 12:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713183645; bh=IW1/5zKnRf0vw8lfNR7D2qM5w54xu3yNJIPDeRFonXI=; h=From:To:Cc:Subject:Date:From; b=JvVnKv4AsPCeRMiEg6D4oYpvvDe2nSTFgYOiHNrlrifk56E7NMCpMsX4UZmoLtQDL j/QBUMPyJLDS32sKkOTrl/BaPpq2HQvqkeBiddUjEyKw2lhz86S/N4QvJfiEFwxRTd ljrITaHn2FIm8du8d6QJKQCwvlbYFTWBRJJOKgsve0shOShydllGXvNmiZU3cUaZCY PFWjcIwP166IZvxjlRvVyy2i0oJoN1zQJvbmX/OfAr+egklRCgBXknOuZxbBdzl5G9 rZZr7EP3uZ/ktq8b5/AuOAVy/GjXvaAMJFDJMxjY5yWnKVoPgqZlnFH2jdSCvrfoll Cc0ANhX7thanw== 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 0/6] [v3] kbuild: enable more warnings by default Date: Mon, 15 Apr 2024 14:20:31 +0200 Message-Id: <20240415122037.1983124-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 Hi Andrew, All the warning fixes I sent for these warnings have been merged into mainline or linux-next, so let's turn them on by default. Since some of the bugfixes are still in flight in maintainer trees, I have rebased this on top of the mm/mm-nonmm-unstable branch for the purpose of merging these during the second half of the 6.10 merge window. I did thorough testing of the changes on x86, arm64 and arm, as well as allmodconfig testing across all architectures and compilers. It is still likely that this will catch more warnings that show up in configurations I did not test, or in newly merged code, and I plan to send fixes for those as well. I also sent patches to enable -Wunused-const-variable and -Wtautological-constant-out-of-range-compare, but those still need additional bugfixes to get merged first. Arnd Bergmann (6): [v3] kbuild: turn on -Wextra by default [v3] kbuild: remove redundant extra warning flags [v3] kbuild: turn on -Wrestrict by default [v3] kbuild: enable -Wformat-truncation on clang [v3] kbuild: enable -Wcast-function-type-strict unconditionally [v3] kbuild: enable -Wstringop-truncation globally scripts/Makefile.extrawarn | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) -- 2.39.2 Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nicolas Schier Cc: Kees Cook Cc: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org