From patchwork Mon Aug 1 11:04:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 595311 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D60BC00144 for ; Mon, 1 Aug 2022 11:04:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231241AbiHALEu (ORCPT ); Mon, 1 Aug 2022 07:04:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbiHALEt (ORCPT ); Mon, 1 Aug 2022 07:04:49 -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 5F13F2B608 for ; Mon, 1 Aug 2022 04:04:48 -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 EF29E60C24 for ; Mon, 1 Aug 2022 11:04:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E43F4C433C1 for ; Mon, 1 Aug 2022 11:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659351887; bh=BHJ/VsPHNxnObMgbm+frtWpE8d59jySRMzsCsLD19CE=; h=From:To:Subject:Date:From; b=QI3o4Szk+2RpHZzQokzMHAyWcUv1OWjwnXBANjtNF3yCQ1X3F0woctJQqCwcAqYba 1/i4JJPwIWkHP3p70tw3vHma+WgP/xgXXPDvNA9RvYvLCJtCzfqC9alNDRjWNCv9v2 T85NyinSDS7vjV7eRxKBZkjnsDDq4b1hKyncBODfOXCvWuygjKJw1MsmT5rUoyzF86 E8wSLfSmdO7IW0iXNFa3G+Hgijx+wScn3UJGw9epXcbf8WPujhxPEp+mwZKXbE/KiO VHoXHZwT3hFE8fDiLaLpcfOKVcFna1Q4p5ddLPwlmDovhRGH39mmWAfby8723JYzmy eVs69sXotXO9A== From: Kalle Valo To: linux-wireless@vger.kernel.org Subject: [PATCH wireless] wifi: wilc1000: fix spurious inline in wilc_handle_disconnect() Date: Mon, 1 Aug 2022 14:04:40 +0300 Message-Id: <20220801110440.13144-1-kvalo@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sparse warns: drivers/net/wireless/microchip/wilc1000/hif.h:218:35: error: marked inline, but without a definition Remove the inline, it's not needed. Reported-by: Jakub Kicinski Signed-off-by: Kalle Valo --- drivers/net/wireless/microchip/wilc1000/hif.c | 2 +- drivers/net/wireless/microchip/wilc1000/hif.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) base-commit: 63757225a93353bc2ce4499af5501eabdbbf23f9 diff --git a/drivers/net/wireless/microchip/wilc1000/hif.c b/drivers/net/wireless/microchip/wilc1000/hif.c index b89519ab9205..eb1d1ba3a443 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -635,7 +635,7 @@ static inline void host_int_parse_assoc_resp_info(struct wilc_vif *vif, conn_info->req_ies_len = 0; } -inline void wilc_handle_disconnect(struct wilc_vif *vif) +void wilc_handle_disconnect(struct wilc_vif *vif) { struct host_if_drv *hif_drv = vif->hif_drv; diff --git a/drivers/net/wireless/microchip/wilc1000/hif.h b/drivers/net/wireless/microchip/wilc1000/hif.h index 69ba1d469e9f..baa2881f4465 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.h +++ b/drivers/net/wireless/microchip/wilc1000/hif.h @@ -215,5 +215,6 @@ void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length); void *wilc_parse_join_bss_param(struct cfg80211_bss *bss, struct cfg80211_crypto_settings *crypto); int wilc_set_default_mgmt_key_index(struct wilc_vif *vif, u8 index); -inline void wilc_handle_disconnect(struct wilc_vif *vif); +void wilc_handle_disconnect(struct wilc_vif *vif); + #endif