From patchwork Mon Nov 2 11:24:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320218 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3643881ilc; Mon, 2 Nov 2020 03:25:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3hI9dOT/caT1Jabcw98xNp4Tp+AeIxmjHpOO1iLVkHk8VTLQ+WPaHXYxZ4glJ+ibVxvNh X-Received: by 2002:a17:907:2166:: with SMTP id rl6mr3177227ejb.61.1604316332808; Mon, 02 Nov 2020 03:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604316332; cv=none; d=google.com; s=arc-20160816; b=IyWTDmYAxz2BZD96cJHYGwxDkOyYKrOLMbM4RiYX5sxWrlBVCPDd04esCRt1zcbvrl UCbjoW/pj9rVqH1Y8O3UIErBWv/xIPC03NVU5NnlWhYsCoMCYw0xsSt0iziwBPsiWlH0 7qtjLfMRAmjob4636unj6dIlVI+C3/YIPZsDeV7YDJ5g+cwrEEWxCVJuEOGtPdmpTIVm tggQ66NnwxTIsy+zp29RhGtU0+ZO67AkrZbp82LOpKTdw+wgIohEiEVGI3fIkoaOPkil a/YJ8ErVL/HmXYYAxnrwtfyAVkFKVSkQMxZiN/BR9hmhrskqvlXKeGhMSyUvWvJWcYCf qt5g== 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:cc:to:from :dkim-signature; bh=H6cdhCKSV+e73IF059XTYbnS4xki9YceyWLt1d9tAnQ=; b=fNWStTvbHS5sjoVjSEt5qIjoP3WIjHLnyksBuluYHD+h2O8UGsVV7J2pUAsFzzTOem frd2I53vURrY8H+TAxqvgIRxcUyaL9noVWUbt/9rHJY5aNJxs0BLMqYc7tc2hoyINuR5 dlodDMsgPcl35iEk0KzZ+RalP/PHHgAF6rV4f6Os/24nmmC0uFZiOt9EPEOYE8jn5OPd n3jv9dc6wyIYrgREBI7dd1momrUO2WTHOkdfoFgmOlHwdkGCPOZG9cFJIbIOmWunv2H1 et6CWB4dvpRI3kqLyDv8qs0KHYWQuIaqb+ckyQgv+3PRMy7zTcZX+bz2he6hnMRokELX gvQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kjIRWtT2; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt10si11228570edb.503.2020.11.02.03.25.32; Mon, 02 Nov 2020 03:25:32 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kjIRWtT2; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728947AbgKBLZa (ORCPT + 8 others); Mon, 2 Nov 2020 06:25:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728909AbgKBLZN (ORCPT ); Mon, 2 Nov 2020 06:25:13 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB938C061A47 for ; Mon, 2 Nov 2020 03:25:12 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id c16so9132239wmd.2 for ; Mon, 02 Nov 2020 03:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H6cdhCKSV+e73IF059XTYbnS4xki9YceyWLt1d9tAnQ=; b=kjIRWtT2G1NDh+U38Rv7FfAtYfkysDEGZtHw5TH2vid5+NKIXzmhRCBeUQBm0i6rmD DvEtQF9SB1RCFYbfjkYC6GzPyb5orD2t7povv+ioDwtbaEk6XUMibMktPjJOXDJo6wGf lNJ/KAF89yLrKtfQnIz71cLLcwypx5jB7zAYx3A8P23YT3saMLL7GQLV75BHtiGuoqph xPLBdJVmD+nkUYCDMjRh/sVCz5aTAxm+wpko30RyclSwVR7wwbRRGZ/Il2GF05RE2NaG T45PwQcc9oe0/ekJ26MluU5sESU6motRpIsCfo4vWBNFYlMzWiBPSnverdYvQpbBt1uI bDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H6cdhCKSV+e73IF059XTYbnS4xki9YceyWLt1d9tAnQ=; b=qUoZz2Gz1/vdWNCYD4j9V9+bwq1YBYWi6XmlwW76i5Y2vS/XQlYyB+/rqobnXWwCa6 GNsA9EFeKAELoQKoY86W9WrM9RXlb2oULSUrAGcgJJ/bE0pmEEdrNsEeYs1DxECMhPxF U7QFfqS4rdX7+JWJl8eQomwh+FRyuYCrAC0B+gAV823Lwg54BAqAw5nsrkoZpNu6RZwU 0KTLmj6stH5fKn07EEK2OZflxAtFYyRfT6B+Rm6e87o19JVOHKYEmPT5IP6e2tqlhc5S v92Z6ay/2wMAutdVU7zrxv8g18/TfugFa/gxsG5wp0FUqvT6w41mM1UvTeEnZHhgHcn+ xWFw== X-Gm-Message-State: AOAM533TexPyKhP2AL8coi5bQdFujwtDusfkh1+qfLoYlhnkt7QBBWlJ iOCP5qTun1KSGupOWhlxt/TXEQ== X-Received: by 2002:a1c:103:: with SMTP id 3mr16983122wmb.81.1604316311669; Mon, 02 Nov 2020 03:25:11 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id m14sm21867354wro.43.2020.11.02.03.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:25:11 -0800 (PST) From: Lee Jones To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Yan-Hsuan Chuang , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 41/41] realtek: rtw88: pci: Add prototypes for .probe, .remove and .shutdown Date: Mon, 2 Nov 2020 11:24:10 +0000 Message-Id: <20201102112410.1049272-42-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102112410.1049272-1-lee.jones@linaro.org> References: <20201102112410.1049272-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtw88/pci.c:1488:5: warning: no previous prototype for ‘rtw_pci_probe’ [-Wmissing-prototypes] 1488 | int rtw_pci_probe(struct pci_dev *pdev, | ^~~~~~~~~~~~~ drivers/net/wireless/realtek/rtw88/pci.c:1568:6: warning: no previous prototype for ‘rtw_pci_remove’ [-Wmissing-prototypes] 1568 | void rtw_pci_remove(struct pci_dev *pdev) | ^~~~~~~~~~~~~~ drivers/net/wireless/realtek/rtw88/pci.c:1590:6: warning: no previous prototype for ‘rtw_pci_shutdown’ [-Wmissing-prototypes] 1590 | void rtw_pci_shutdown(struct pci_dev *pdev) | ^~~~~~~~~~~~~~~~ Cc: Yan-Hsuan Chuang Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/realtek/rtw88/pci.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.25.1 diff --git a/drivers/net/wireless/realtek/rtw88/pci.h b/drivers/net/wireless/realtek/rtw88/pci.h index ca17aa9cf7dc7..7cdbb9533a09a 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.h +++ b/drivers/net/wireless/realtek/rtw88/pci.h @@ -212,6 +212,10 @@ struct rtw_pci { void __iomem *mmap; }; +int rtw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id); +void rtw_pci_remove(struct pci_dev *pdev); +void rtw_pci_shutdown(struct pci_dev *pdev); + static inline u32 max_num_of_tx_queue(u8 queue) { u32 max_num;