Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp373970rwi; Mon, 10 Oct 2022 01:21:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM616GGrO2aBcJJwftM/gZ5C0Y7fasDbE1ehpd1z89+871vKlW3AxHbHpKYQmRJn+mP2CinW X-Received: by 2002:a05:6402:4313:b0:45a:b150:6796 with SMTP id m19-20020a056402431300b0045ab1506796mr11612478edc.246.1665390096864; Mon, 10 Oct 2022 01:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665390096; cv=none; d=google.com; s=arc-20160816; b=UpOZ8SA9gOuG3zQZ9O1Tj3IezJp+6pX8QsBNJcoKay/z5FcUarDTiUzYfvbkwEIEMm Bow+Bym8AAucdT8iLbUSdsuNmtUFb1ht/rwHNFdv7IZSAzEFaKLBrVWyXFgMbftunJ6z 82u9koHNwpwN14YmrBBSf/b4N7+MX6m43s0uTYLBF8+uY3JSMpV13N6VXZT+P6n46WSp TGrU1UFXbt2CMyGLKbrqiNh1XbBHX898jUl9eCY1PLJygk2QUiFsR7u3FBFKWb6VIjXG iGe2jR4nhy/Y1zuoiJGZwLR3mci1JiXhMBpeMiFxuqS67WZgBKCVPLEjOAK2T/LI0BuY W2qQ== 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=nnWIEb3YdO7aPjWbAthY2vCXqczFTHCGm9icjBd4FyM=; b=A8yJcy/SOqTkB1pwtZuLGjJDR+w0Br2/BAQiRdDY6vVegBXuD3sdAC2/Rc//4QJO6D ORWwh+Edfw0uBW5UIBr3ICLSIkzIA9bHV9+xfHozERLKn8zPhEBOkL/LRglf0N3glqCD W/9LhbT2JwbfC47Ve9Ybbrc+dStzYItAtYL750AGMRCCnaDAG9W7JoW/cGQiswLLaij8 BK8sZ0sF9kFZ1zL+olVlvJkJ0cdKeT1VNmBkqOTqaYvGUjqjsUaeSIOs0mh5GK7SZuTg iOCuK4eJ+aIcYw4409fLwlo7MiEkkLeyYOcGdApfwbXb0aAnSwR5JdxAxQpeEsANJmvz /qNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=up9Q9vne; 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 i13-20020a0564020f0d00b004515a8c347dsi7608762eda.500.2022.10.10.01.21.10; Mon, 10 Oct 2022 01:21:36 -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=up9Q9vne; 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 S231400AbiJJHF6 (ORCPT + 99 others); Mon, 10 Oct 2022 03:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbiJJHFM (ORCPT ); Mon, 10 Oct 2022 03:05:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11C2EBC; Mon, 10 Oct 2022 00:04:37 -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 C726CB80E53; Mon, 10 Oct 2022 07:04:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 406D1C433C1; Mon, 10 Oct 2022 07:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665385474; bh=dBpezJIwjq1M+9ukK5f5Mb+tYyOlvPJmyGHSMIB8t6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=up9Q9vne0GKW/hbKZ48930iafozALb23P48nNap+GGFbMwrqyBefWoYI3TTd+WYPO M6RFPa0OqdNkAi7sOJvEVDqit0gkYSKEKv7w4gL3d0tfmFwTnUwQpPawVk2LZF8Jg0 EXvJ8AqKDt202YR0Keh4+Sb4iskOPI1c5N7W5am8= 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 6.0 05/17] Makefile.extrawarn: Move -Wcast-function-type-strict to W=1 Date: Mon, 10 Oct 2022 09:04:28 +0200 Message-Id: <20221010070330.348608074@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221010070330.159911806@linuxfoundation.org> References: <20221010070330.159911806@linuxfoundation.org> User-Agent: quilt/0.67 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 @@ -64,6 +64,7 @@ KBUILD_CFLAGS += -Wno-sign-compare 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