From mboxrd@z Thu Jan 1 00:00:00 1970 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 4E96C25EFAE; Fri, 19 Dec 2025 07:33:36 +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=1766129616; cv=none; b=Z0L/R3xdAw2me/CwjQuBmLuXzhAaF5rppKCrJQ9JZH0oCrT35OA26E42KahkPZhcTmEgqj6yotEmRUCSvQhhTqC7ziRTE3U0d6GK4PKtv31+ihNL+kj2/9CRIPO/lHQIwq6XCUfgourAcxHQjurbM26aDCKZWgZDH6HG72ZfSXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766129616; c=relaxed/simple; bh=f8+G6CVnJp2DBUsfaWCf5DINHDnv28/Brh1CjQS5678=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ObU5Ul/sOvdeWdHJVn6a4KEVrcYGCFhAf51Aah69n0bZxwrWFzLH78NsJGlgYNKaV7i75eXrzWIqK8hLf6EkLOEALqL5UUAdMZAgFMYpAEm9w3RJWWE0vUFoFAsQ1Oxaop3NVl4r77sPJY6xk6pPedOv/BRGqbuI3pue/ghv2Fk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P+S2bAGU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P+S2bAGU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CF86C4CEF1; Fri, 19 Dec 2025 07:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1766129615; bh=f8+G6CVnJp2DBUsfaWCf5DINHDnv28/Brh1CjQS5678=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P+S2bAGU5yOPI6ncR6Hsq8cPmW3M4Yqg506ro+7zmln9tQTIazrjsEYt1+YBl5zHP T5tyLBVp7D/uFJpY19JFsqZ3pdgwViUoaBXHMPH+mt62otQ+STb42h+x5dyss0VW1F 5/dpDUyvgNdMEnjs7EWMLMw2DVAXN/n+X4FXM8fPbnjVrTnp0+SU43DQMFMMiN+253 1OK5VXRczsdldkhAx6rXyIte+FDktPPwr+04wnqfqaX30/SfFOpOgX0KIquRzLEL6G HiT3C2w+H+r/n3KOVwGF9K/kAC6ypuhzVRcuGX9l7jZz6+ZLYEw/mcYxUxgB8YD7qP U+FgPloDdpSrw== Date: Fri, 19 Dec 2025 08:33:29 +0100 From: Nicolas Schier To: Vincent Mailhol Cc: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Chris Mason , David Sterba , Linus Torvalds , linux-kbuild@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 0/2] kbuild: remove gcc's -Wtype-limits Message-ID: Mail-Followup-To: Vincent Mailhol , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Chris Mason , David Sterba , Linus Torvalds , linux-kbuild@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-btrfs@vger.kernel.org References: <20251218-remove_wtype-limits-v1-0-735417536787@kernel.org> Precedence: bulk X-Mailing-List: linux-sparse@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251218-remove_wtype-limits-v1-0-735417536787@kernel.org> On Thu, Dec 18, 2025 at 07:50:00PM +0100, Vincent Mailhol wrote: > I often read on the mailing list people saying "who cares about W=2 > builds anyway?". At least I do. Not that I want to fix all of them, > but on some occasions, such as new driver submissions, I have often > found a couple valid diagnostics in the W=2 output. > > That said, the annoying thing is that W=2 is heavily polluted by one > warning: -Wtype-limits. Try a gcc W=2 build on any file and see the > results for yourself. I suspect this to be the reason why so few > people are using W=2. > > This series removes gcc's -Wtype-limits in an attempt to make W=2 more > useful. Those who do not use W=2 can continue to not use it if they > want. Those who, like me, use it form time to time will get an > improved experience from the reduced spam. > > Extra details on statistics, past attempts and -Wtype-limits > alternatives are given in the first patch description. > > Signed-off-by: Vincent Mailhol > --- > Vincent Mailhol (2): > kbuild: remove gcc's -Wtype-limits > kbuild: cleanup local -Wno-type-limits exceptions > > drivers/gpu/drm/Makefile | 1 - > fs/btrfs/Makefile | 1 - > scripts/Makefile.warn | 4 +++- > 3 files changed, 3 insertions(+), 3 deletions(-) > --- > base-commit: 3e7f562e20ee87a25e104ef4fce557d39d62fa85 > change-id: 20251205-remove_wtype-limits-c77eb46d09c2 > > Best regards, > -- > Vincent Mailhol > Thanks for the effort! (This allows to revert commit dc7fe518b049 ("overflow: Fix -Wtype-limits compilation warnings").) Reviewed-by: Nicolas Schier