Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2942251ioo; Tue, 24 May 2022 09:18:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqf166d4ZbkUxhLE5omgz2pQrv1uhbddvIWqLv3DZa90JPcXLT5HowxEsrHRzPuVEVXrnQ X-Received: by 2002:a17:90b:4ac1:b0:1df:c71d:510c with SMTP id mh1-20020a17090b4ac100b001dfc71d510cmr5275102pjb.118.1653409091940; Tue, 24 May 2022 09:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653409091; cv=none; d=google.com; s=arc-20160816; b=nOKFM5qIyjs1Wf8soSyqYROnkOReVOuURMBrLoH892nMy9Pr+KVzOkfpgJhX6IvhVq mfxnuscx+WZrW9aWTUIkJZTz3oKBVmTkv4PuvZmwVP86KTnF5sl+RzFMNykO8bgPvVm/ 6/QhMAzj9Eteb3opl/rAy01mKZqWMR3uCXiwF3Mn49yRrmWAwq2OUPiqJpYxjbV9Ub8W 3qCHon/CBvlEqhb5QPFuf882yOH8d529xLChDwPCBabn/E0qbR+/jzwSGoPS299bTZ1Z 9ImW4oG3Bc0OLRgC9oAAQ1qm7vVuGBnyCZQgmhvkxpzxzl9Brn5e784YJnSl8nQPpneU ojOQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ejjdHxGS2RNPWZcq/t/sSZsweR6FWZWbPK4Cq27+aEE=; b=KdJFnV5k8DeJ+LEzBdwFnRj6HZfMbMespdaSDXefNnuzgZeCbE+tj0z1Xq4iGziis9 t28DpzkkMJPfcsOkZ2L3MYLWFxU3k8ct6kDEamqS9LTJO2oiiP/ruKc2yfJnLX15JSVi DLL0e8+hzz6LTIY4yH/ZO3GXOCWj93VHCz6lFUfiJx508Hz/QxastequDm6kTharU6Nj LHAeH39uu8htRLRjCTJ1SI6Ee9HqREs3qI36E6doK84vY+DpfBAF6C9gDKowu2mwaptA E8S2+Jg/6+laraiER/6xia2rfhTUSEN5L+BbzSXF+NIxwTE+OQuSiP6hRCfL23MiuL1r cIuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YXsiqX/+"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e63-20020a636942000000b003a9f9703091si13682640pgc.338.2022.05.24.09.18.00; Tue, 24 May 2022 09:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b="YXsiqX/+"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238549AbiEXO5U (ORCPT + 67 others); Tue, 24 May 2022 10:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238486AbiEXO5R (ORCPT ); Tue, 24 May 2022 10:57:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22ADD35267; Tue, 24 May 2022 07:57:16 -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 CBF5DB81722; Tue, 24 May 2022 14:57:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4E2BC34115; Tue, 24 May 2022 14:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653404233; bh=2G1lM3nsXXMS5iC7eM087INlpVeFdluiJ6CvAOU9jHw=; h=From:To:Cc:Subject:Date:From; b=YXsiqX/+AX/XlBuPt9GAU9pCz1kG63CcwGFug978oLdsFtACwbENY3K9acdYI49jf ksoY6+QsxIAt2lyVmCmv0rEAqS94zM8Ltm3jPwMLjlvulwZ/8YvgXNV+dEmy18GQsG T8lS1d2ePq7wu10PhVGcowDPjBmgPybWGIaqyFfoBR6PTgI9mcgarJPdntIa3R1hGa n+trNYOLcsNh8ec5PF+MGq26jsNpzEHhHnuMg7x3PAVFvM5AonLo+NWvpLVxtBivdz pl3IxkfswYul0nH9Uki/0iNjRZ0ThEcEeD54fCNUF1AJvDIDeQmq0uqefCbduNSGKd IkWiUshJO+Vrg== From: Nathan Chancellor To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Kalle Valo , Nick Desaulniers , Tom Rix , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , "kernelci.org bot" Subject: [PATCH] ath6kl: Use cc-disable-warning to disable -Wdangling-pointer Date: Tue, 24 May 2022 07:56:55 -0700 Message-Id: <20220524145655.869822-1-nathan@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 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,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org Clang does not support this option so the build fails: error: unknown warning option '-Wno-dangling-pointer' [-Werror,-Wunknown-warning-option] Use cc-disable-warning so that the option is only added when it is supported. Fixes: bd1d129daa3e ("wifi: ath6k: silence false positive -Wno-dangling-pointer warning on GCC 12") Reported-by: "kernelci.org bot" Signed-off-by: Nathan Chancellor --- drivers/net/wireless/ath/ath6kl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/Makefile b/drivers/net/wireless/ath/ath6kl/Makefile index 01cc0d50fee6..a75bfa9fd1cf 100644 --- a/drivers/net/wireless/ath/ath6kl/Makefile +++ b/drivers/net/wireless/ath/ath6kl/Makefile @@ -38,7 +38,7 @@ ath6kl_core-y += recovery.o # FIXME: temporarily silence -Wdangling-pointer on non W=1+ builds ifndef KBUILD_EXTRA_WARN -CFLAGS_htc_mbox.o += -Wno-dangling-pointer +CFLAGS_htc_mbox.o += $(call cc-disable-warning, dangling-pointer) endif ath6kl_core-$(CONFIG_NL80211_TESTMODE) += testmode.o base-commit: 677fb7525331375ba2f90f4bc94a80b9b6e697a3 -- 2.36.1