Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp530018rwi; Mon, 31 Oct 2022 04:45:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7l8TOcr20YSeWsdxvxLZzKA9VCMBn6lgYfof0KiViYCNm2pDXQwU3arKwh9zAw5bk9TXPo X-Received: by 2002:a17:907:2bcf:b0:79d:e8e6:d579 with SMTP id gv15-20020a1709072bcf00b0079de8e6d579mr12265630ejc.563.1667216739186; Mon, 31 Oct 2022 04:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667216739; cv=none; d=google.com; s=arc-20160816; b=bg7qMxjSJ1CEj8RktR7TXTNa1YNKasORLn3y74YMJbBBNjQHxQ/8jSsene+u4KReQy MhsKkGC3+H6ygPSZV+NmIHnXP/uL7WMTBCKi5Y5zJohbm43vILnMhKF7Bu7/YaX57X3X v+dKpzIFAXN7COodTY6aFbrqII0BvC8Bx2+oMw2J+IdAyMkFEPv5EbrjBLhtWvmG2dXn aJRDBORbLKk/d2D7RY8FP/ltRBO880jumYjOwsxnZoOjuV8bRdyIt5Dm8YosZJuyNlGu xgUiNpCwYyCqJDSqnUXciSPuyHcOKkpuzK7s85XbyxBWq4lN574JHG4ujq7YDko0uzjV Ldyw== 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=FyR55Y7VqviQBY3RJFuseMd0/2jCIdqvXkpKiuzP5H4=; b=RSIOEiXL5+3MRI0WhfifXTF1/1GfludhrKmDli/alEQ6L3CvVNhfURuHvwBdGPtfyW AUVsU4a0VsvehdRFkO2V3Ii4YDyFBWILlooiMRAqIKityrM54pZsxFBAsrZ+cJnfrZk8 0HKIvlr6FzS+YMkUmBHOY+dj0ug47YOx07WBoScMzVRJG97WM4z7ZZ6wIKCAmXIwGFbh /7gGiUUsXXd6GV/sPBcfMp9rlUSeGoBm2VgYdA9dBPUQ2HyV2PUgc+/9nHTwYxU5Y+TH EMMt5OFLKkN0DiAIZnTUTE97YJqp3PLpjHhqpgOy1OxHWDwh2vZnNj1uCk2+OFTiDIkP bYpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TapGG1cj; 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 3-20020a170906310300b0073d6c0facdcsi6847205ejx.259.2022.10.31.04.45.20; Mon, 31 Oct 2022 04:45:39 -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=TapGG1cj; 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 S230436AbiJaLoP (ORCPT + 65 others); Mon, 31 Oct 2022 07:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbiJaLny (ORCPT ); Mon, 31 Oct 2022 07:43:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D961EE0F1; Mon, 31 Oct 2022 04:43:47 -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 9251DB815DB; Mon, 31 Oct 2022 11:43:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6DD8C433C1; Mon, 31 Oct 2022 11:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667216625; bh=7CgMWQKsHtTPXkZqm7iC2oNhmPIigVqj/vJZBx2o4xg=; h=From:To:Cc:Subject:Date:From; b=TapGG1cj/MNNBx3Qa2teCF20AMx1UBkTPTwClP7Q/KpQFgnt4NM+sbJ3FL2VaGB26 t5nMsH/23wFoUzUAFu92sc83IHmkcmwrHEq1wpAzudldQD6tL+A+gYWAoQHRRAEAuu 4MGxdDKnRp1SkCh9bflpkd2ix0K5qWVr/04Aj1nsoxWGdfRErg1QeDfxYlXnE4IC6l WhR+n7CahsIZARz57uccJaeGqN6Y7c6vEq+2A204LUFS5MAzK2O7avnVbTtnos8Onk 9w61rP4t6wavtcmvmPIPfU0r957YQ0QPMeXyRbNFE7v9GUZ0ZaXwGBqFcJyxDFj3rp iSo1C0Tof/1jg== From: "Jiri Slaby (SUSE)" To: kvalo@kernel.org Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Martin Liska , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] ath11k (gcc13): synchronize ath11k_mac_he_gi_to_nl80211_he_gi()'s return type Date: Mon, 31 Oct 2022 12:43:41 +0100 Message-Id: <20221031114341.10377-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.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-wireless@vger.kernel.org ath11k_mac_he_gi_to_nl80211_he_gi() generates a valid warning with gcc-13: drivers/net/wireless/ath/ath11k/mac.c:321:20: error: conflicting types for 'ath11k_mac_he_gi_to_nl80211_he_gi' due to enum/integer mismatch; have 'enum nl80211_he_gi(u8)' drivers/net/wireless/ath/ath11k/mac.h:166:5: note: previous declaration of 'ath11k_mac_he_gi_to_nl80211_he_gi' with type 'u32(u8)' I.e. the type of the return value ath11k_mac_he_gi_to_nl80211_he_gi() in the declaration is u32, while the definition spells enum nl80211_he_gi. Synchronize them to the latter. Cc: Martin Liska Cc: Kalle Valo Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Jiri Slaby (SUSE) --- drivers/net/wireless/ath/ath11k/mac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.h b/drivers/net/wireless/ath/ath11k/mac.h index 2a0d3afb0c99..0231783ad754 100644 --- a/drivers/net/wireless/ath/ath11k/mac.h +++ b/drivers/net/wireless/ath/ath11k/mac.h @@ -163,7 +163,7 @@ void ath11k_mac_drain_tx(struct ath11k *ar); void ath11k_mac_peer_cleanup_all(struct ath11k *ar); int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx); u8 ath11k_mac_bw_to_mac80211_bw(u8 bw); -u32 ath11k_mac_he_gi_to_nl80211_he_gi(u8 sgi); +enum nl80211_he_gi ath11k_mac_he_gi_to_nl80211_he_gi(u8 sgi); enum nl80211_he_ru_alloc ath11k_mac_phy_he_ru_to_nl80211_he_ru_alloc(u16 ru_phy); enum nl80211_he_ru_alloc ath11k_mac_he_ru_tones_to_nl80211_he_ru_alloc(u16 ru_tones); enum ath11k_supported_bw ath11k_mac_mac80211_bw_to_ath11k_bw(enum rate_info_bw bw); -- 2.38.1