Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp372625rwi; Mon, 10 Oct 2022 01:19:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bQu5Czk2dqFJuyL1YSRkuvAR3k5vxarI/4XgPXw7Gx88gmxPEnR/2RRZpoqFlgorHXltt X-Received: by 2002:a17:907:7635:b0:78d:74c2:a986 with SMTP id jy21-20020a170907763500b0078d74c2a986mr12137328ejc.442.1665389989480; Mon, 10 Oct 2022 01:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665389989; cv=none; d=google.com; s=arc-20160816; b=dUr6pkSkIi1e1hrcL5HPMsPj/qwUGnTsjlN1sTd7eyCaeUFGtwI+i4vyvREmysY3cQ VKcVgvQ+Lich+hhYgzVPSxQJVbbQU4Zr3xEYqBzPPo9AdU0tiM7Dgw6jTMBSdNFgeQXz hJuzcdEWF3q5fgG3g1LkK3VzzIj6EW/QT5x1h+NmUQwgNb8sWcIc8/xvI9uwf7Z9j56U q5GgTTd4DgHKHFQagrGcuNej1OrC2ZjUTRy25xKadQLN+CD+bZ2/Y84zfU2HVg9qU1Gg XPesLpBRF10m9xyIb+DzyTb/F8JIOwlcxJyOMc32UcNrKrGyk6A/4uTZ6/1clW/bPnh7 Iiug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/mOskKEX6Jl1B0SMfVPRVyrdFQo7DMIwicR4dSZ2oW4=; b=q898cngVUEz+LXH0G61wqIijqWHJ2A7Ew68KIrY6MNp0mEUiuuSNa6L8KFCya/1RGI JayX5+3PD1d+yiJo4A1NSN1nTRTXU4jIUUgKKEfKl1cI6hXxDgHFstalWSBt5RsA0Xwo NRSlGjuGFCsD3py/W+VXh9AnY4nC5ALwXAXR/g3YUwZmwOj8Nd/laoEo+NN9ejfxHMPG wJr8htMF2pE/mm3r0OCyed7Hcs7AYAbcQd9Byzqu6d7Mh3CnfwuPBPNB+MzZjChx5R7l 3xBYgnYxPh+Zp4h1qEZxkXDAmKDOzBXhn7C3D5cO9K8sQc6pVpCighUGaKI9kJB5aqB8 wyDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UR+Tl1i6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg2-20020a1709072cc200b0078081036bdasi8806737ejc.501.2022.10.10.01.19.24; Mon, 10 Oct 2022 01:19:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UR+Tl1i6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232139AbiJJHOe (ORCPT + 99 others); Mon, 10 Oct 2022 03:14:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbiJJHMy (ORCPT ); Mon, 10 Oct 2022 03:12:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E25622B24; Mon, 10 Oct 2022 00:08:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E5E78B80E63; Mon, 10 Oct 2022 07:07:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D693C433C1; Mon, 10 Oct 2022 07:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665385649; bh=vFcnlGFRnozb87ENcKx2BFKeuuCs1yt48HPib7rveaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UR+Tl1i6kRbDtL1fY4rAFX1PqGyOKBbWJjohNLCpD1iP4HrsagEEQJf9wJneMaOS3 mADl4H0fgeF3GojhYsUL+FSvTVn5BvxWcpXQt/VmjSYEIUhKNddyUMNnuQ/pbFf435 MH4m85/iKMRVlQxu/XNo50d7HyPf54k7UrCk2PB0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Sami Tolvanen , Kees Cook Subject: [PATCH 5.15 01/37] Makefile.extrawarn: Move -Wcast-function-type-strict to W=1 Date: Mon, 10 Oct 2022 09:05:20 +0200 Message-Id: <20221010070331.261617441@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221010070331.211113813@linuxfoundation.org> References: <20221010070331.211113813@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sami Tolvanen commit 2120635108b35ecad9c59c8b44f6cbdf4f98214e upstream. We enable -Wcast-function-type globally in the kernel to warn about mismatching types in function pointer casts. Compilers currently warn only about ABI incompability with this flag, but Clang 16 will enable a stricter version of the check by default that checks for an exact type match. This will be very noisy in the kernel, so disable -Wcast-function-type-strict without W=1 until the new warnings have been addressed. Cc: stable@vger.kernel.org Link: https://reviews.llvm.org/D134831 Link: https://github.com/ClangBuiltLinux/linux/issues/1724 Suggested-by: Nathan Chancellor Signed-off-by: Sami Tolvanen Signed-off-by: Kees Cook Link: https://lore.kernel.org/r/20220930203310.4010564-1-samitolvanen@google.com Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.extrawarn | 1 + 1 file changed, 1 insertion(+) --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -52,6 +52,7 @@ KBUILD_CFLAGS += -Wno-format-zero-length KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access) +KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict) endif endif