From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC2CCCD6105 for ; Mon, 9 Oct 2023 16:38:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377245AbjJIQil (ORCPT ); Mon, 9 Oct 2023 12:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377291AbjJIQik (ORCPT ); Mon, 9 Oct 2023 12:38:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70746AF for ; Mon, 9 Oct 2023 09:38:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8EF2C433C7; Mon, 9 Oct 2023 16:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696869519; bh=MSbNJzxR5Uxb0K+7ztElxHBM3Hj8ixSJi5qLk0iBaMI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QGwJpxqDz0aWM/BosmKez3lWAzKO+tIizIY36faOYAH58uTLnp/LRvmv+60FlDGVe j+nJdg6GSQNkrt2VQyGWEgLwrD8L9SERIVo2+5HUKmwIUtodiwZ6jnCQsc8ShIslMn 6kkKaaC7DRHQ/B5LgLHxL/mCEleCGkegj26CeiHwZGAUXnmeUbYw4NvJ0Ps/jt5v8A uoDLD68YHxnJ/ztUMTWuuJVCLSR5Z4dy6qIYEi1mEWwH5PSODGxwFCcWfmj32QBYsl GmaRQP3mNh23EAW9bZCm31L9FDMjQet0Sx7tqfFJ89tjtX7gxxXAyWGgJICUSLOGZD cmCfoaJPEy/RA== Date: Mon, 9 Oct 2023 09:38:37 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: Jani Nikula , intel-gfx@lists.freedesktop.org, linux-kbuild@vger.kernel.org, Arnd Bergmann , Nick Desaulniers Subject: Re: [PATCH 1/2] drm/i915: drop -Wall and related disables from cflags as redundant Message-ID: <20231009163837.GA1153868@dev-arch.thelio-3990X> References: <48f11648d7169687e7242e4c9b4694a0c03c4263.1696595500.git.jani.nikula@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org On Sun, Oct 08, 2023 at 12:28:46AM +0900, Masahiro Yamada wrote: > On Fri, Oct 6, 2023 at 9:35 PM Jani Nikula wrote: > > > > The kernel top level Makefile, and recently scripts/Makefile.extrawarn, > > have included -Wall, and the disables -Wno-format-security and > > $(call cc-disable-warning,frame-address,) for a very long time. They're > > redundant in our local subdir-ccflags-y and can be dropped. > > > > Cc: Arnd Bergmann > > Cc: Nick Desaulniers > > Cc: Nathan Chancellor > > Cc: Masahiro Yamada > > Signed-off-by: Jani Nikula > > > I made a similar suggestion in the past > https://lore.kernel.org/dri-devel/20190515043753.9853-1-yamada.masahiro@socionext.com/ > > So, I am glad that Intel has decided to de-duplicate the flags. > > > > I think you can drop more flags. > > For example, > > subdir-ccflags-y += -Wno-sign-compare > > > It is set by scripts/Makefile.extrawarn > unless W=3 is passed. > > > If W=3 is set by a user, -Wsign-compare should be warned > as it is the user's request. > > > drivers/gpu/drm/i915/Makefile negates W=3. > There is no good reason to do so. > > > Same applied to > > > subdir-ccflags-y += -Wno-shift-negative-value As I point out in my review of the second patch [1], I am not sure these should be dropped because -Wextra turns these warnings back on, at least for clang according to this build report [2] and my own testing, so they need to be disabled again. [1]: https://lore.kernel.org/20231006174550.GC3359308@dev-arch.thelio-3990X/ [2]: https://lore.kernel.org/202310070011.Fji48IBk-lkp@intel.com/ Cheers, Nathan.