Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1292323rwd; Tue, 13 Jun 2023 07:21:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+W6eX5Ew0qYRajYhcbrjCvoc3bn4ERLfn8G6GcoVvDKjrygOV1cfnn+SXJ/nl5vAlBZYK X-Received: by 2002:a19:f20c:0:b0:4f6:1b45:e8aa with SMTP id q12-20020a19f20c000000b004f61b45e8aamr5474043lfh.50.1686666076777; Tue, 13 Jun 2023 07:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686666076; cv=none; d=google.com; s=arc-20160816; b=HO0TsjlALr8A3Wo2aeucg7inOaWLnljTvJVWXoMsGuecrc2aOxvzXaz5sw7JydmAqS YLc4EIL32KbHtQXb/UO3VpsUw5p1Kuhxf6eVOXmXGhmZ1Ktcx7kytDxfqkO1VO5he8Vj cAdhuMQyr2kIpJE+OC+h5hiViKhDoH7H/P6S8UrB3N2lwgc5NUvOtyijER2v0STkxxRL 3UFC/KbNf5TdUr+5hzHf+6eu5uYFOVPWQs7ICVYZN2MYXXyEVY/nO3LxMsiOUxDw+3fl OB/NZbowkhV9vx/0ArC1N+lPov3dI2ntnQh/dE5tm2TOOCIHuLn0t5cbhhPVb+Ns5466 XL8Q== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=PFN/ASteNueWRUxqcDDJ+ElN/2SabpTbpYRLg29yx3o=; b=JJbUr7mZStkv/PXVQQz6zEkvbSfcAb9AL1hDWgQinNd9sRhF9I+vf9f0sXz2JGt/jU FzyxYm9+oc4XAqsQCEsRsfrnfxkNkADNcCawUriMw12rZWQPSjTKebj1JuBRKeEv+zkb w57JCgA4N0NpFATPnDLyI5umWexxXqDNiOu8txv6hkM5UaTQPSEqd/ggyG1Q8yyzifcH xdd4KF3ogy8Tiqhm2NXLjX9CBzkMCS6Y8rBCsH0zSB9D6mmVvfB0ovxkfmTH9pAJgXgN mE2c1hb0cZPBY1UVWq0oo218l0M9jjDBqw48uEUOC1AYowtalRN33h1Kk/ADxEkD5w8R eCcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EMYHYbGB; 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 s11-20020a170906284b00b00977d29ecc8dsi6172017ejc.905.2023.06.13.07.20.34; Tue, 13 Jun 2023 07:21:16 -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=EMYHYbGB; 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 S242561AbjFMOLF (ORCPT + 61 others); Tue, 13 Jun 2023 10:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242865AbjFMOJq (ORCPT ); Tue, 13 Jun 2023 10:09:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF8DD1BD0 for ; Tue, 13 Jun 2023 07:09:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 5EEA662BF4 for ; Tue, 13 Jun 2023 14:09:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FABFC433F1 for ; Tue, 13 Jun 2023 14:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686665362; bh=HGUJPj8Zb2nczOTlJUfhU7bQeSCQyXzXYC+YrzNKh3g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EMYHYbGB0ylaYfz4/EMBU7qI/7X8I7rxvBN0QkgxknuHOm04rMqExjwsW68ooKdLb YTOGSoO3ehGIrLL6bE99tNhiT5kF4pSlwXd0e+5bF7Rt7v6lzLBtGfoFs+zBbHFDBo PaqMJ/5v1C/H3VYqewWpPZizF2bAf5WbrmRpWwIIfVctdQ6fSFIAKcsoOKMur9wogb Y5ahfHVqpWrAE8bFx+DUlnNh/p4x5+1fyVpb6AEQsu//lasLhm0iWlVnc+Urw6wYBY cjHT4BK1RJ+fsE1Iu4I5osfTNNjpjyTcaxlsML92NqPaDDNsW4Y+ZqjSLfnK7pmqMr FrOQwhjoqYI3w== From: Kalle Valo To: linux-wireless@vger.kernel.org Subject: [PATCH 2/4] wifi: brcmsmac: fix gnu_printf warnings Date: Tue, 13 Jun 2023 17:09:16 +0300 Message-Id: <20230613140918.389690-3-kvalo@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230613140918.389690-1-kvalo@kernel.org> References: <20230613140918.389690-1-kvalo@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 With GCC 13.1 and W=1 brcmsmac has warnings like this: ./include/trace/stages/stage5_get_offsets.h:23:31: warning: function 'trace_event_get_offsets_brcms_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] Add a workaround which disables -Wsuggest-attribute=format in brcms_trace_brcmsmac_msg.h. I see similar workarounds in other drivers as well. Compile tested only. Signed-off-by: Kalle Valo --- .../brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h index 488456420353..42b0a91656c4 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h @@ -24,6 +24,11 @@ #define MAX_MSG_LEN 100 +#pragma GCC diagnostic push +#ifndef __clang__ +#pragma GCC diagnostic ignored "-Wsuggest-attribute=format" +#endif + DECLARE_EVENT_CLASS(brcms_msg_event, TP_PROTO(struct va_format *vaf), TP_ARGS(vaf), @@ -71,6 +76,9 @@ TRACE_EVENT(brcms_dbg, ), TP_printk("%s: %s", __get_str(func), __get_str(msg)) ); + +#pragma GCC diagnostic pop + #endif /* __TRACE_BRCMSMAC_MSG_H */ #ifdef CONFIG_BRCM_TRACING -- 2.30.2