Article View: linux.kernel.netdev
Article #14922[PATCH net-next] sfc: add missing prototypes for ef10 helper functions
From: "Chen Aibing"
Date: Thu, 12 Nov 2026 06:55
Date: Thu, 12 Nov 2026 06:55
39 lines
11266 bytes
11266 bytes
From: chenaibing <chenaibing@cmss.chinamobile.com> Fix the following W=1 warnings when building with -Wmissing-prototypes: drivers/net/ethernet/sfc/ef10.c: warning: no previous prototype for 'efx_ef10_vadaptor_query' [-Wmissing-prototypes] drivers/net/ethernet/sfc/ef10.c: warning: no previous prototype for 'efx_ef10_vadaptor_alloc' [-Wmissing-prototypes] drivers/net/ethernet/sfc/ef10.c: warning: no previous prototype for 'efx_ef10_vadaptor_free' [-Wmissing-prototypes] drivers/net/ethernet/sfc/ef10.c: warning: no previous prototype for 'efx_ef10_vport_add_mac' [-Wmissing-prototypes] drivers/net/ethernet/sfc/ef10.c: warning: no previous prototype for 'efx_ef10_vport_del_mac' [-Wmissing-prototypes] drivers/net/ethernet/sfc/ef10.c: warning: no previous prototype for 'efx_ef10_tx_tso_desc' [-Wmissing-prototypes] These non-static functions are defined in ef10.c and called from ef10_sriov.c, but have no declaration in any shared header. Add the missing prototypes to efx.h. Signed-off-by: chenaibing <chenaibing@cmss.chinamobile.com> --- drivers/net/ethernet/sfc/efx.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/net/ethernet/sfc/efx.h b/drivers/net/ethernet/sfc/efx.h index 1234567890ab..abcdef123456 100644 --- a/drivers/net/ethernet/sfc/efx.h +++ b/drivers/net/ethernet/sfc/efx.h @@ -209,6 +209,18 @@ int efx_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs, bool flush); +/* ef10.c: exported helpers also used by ef10_sriov.c */ +int efx_ef10_vadaptor_query(struct efx_nic *efx, unsigned int port_id, + u32 *port_flags, u32 *vadaptor_flags, + unsigned int *vlan_tags); +int efx_ef10_vadaptor_alloc(struct efx_nic *efx, unsigned int port_id); +int efx_ef10_vadaptor_free(struct efx_nic *efx, unsigned int port_id); +int efx_ef10_vport_add_mac(struct efx_nic *efx, + unsigned int port_id, const u8 *mac); +int efx_ef10_vport_del_mac(struct efx_nic *efx, + unsigned int port_id, const u8 *mac); +int efx_ef10_tx_tso_desc(struct efx_tx_queue *tx_queue, struct sk_buff *skb, + bool *data_mapped); + #endif /* EFX_EFX_H */ -- 2.39.0
Technical Details
Message-ID:
<7d3fd748.4779.1a1ce8a8dcb.Coremail.chenaibingfly@126.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361540-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361540-linux-kernel-netdev=dewy.ru
From: chenaibingfly@126.com ("Chen Aibing")
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next] sfc: add missing prototypes for ef10 helper
functions
Date: Thu, 12 Nov 2026 14:55:49 +0800 (CST)
Organization: Usenet Network
Message-ID: <7d3fd748.4779.1a1ce8a8dcb.Coremail.chenaibingfly@126.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: base64
Injection-Info: usenet.network;
logging-data="1030303"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6Pm+bbK6dqD68vLsiKrsjiPDWuA= sha256:y4o5Tiw2wsZgjEx3I9uBfXD/oYApUJUGx8W/45Lyum4=
sha1:GqXDhj17nU+ATYQm9XUZzvtGx3M= sha256:6zkyaCE2jYk+fFepn18RdqxVRMXWSb9L+JqrEPnw/Co=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id C5199114123; Thu, 12 Nov 2026 10:00:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
header.d=126.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id e8fW2YOLdRgw;
Thu, 12 Nov 2026 10:00:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-361540-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=126.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id EB3E511411E; Thu, 12 Nov 2026 09:59:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id D8CB3C09E5; Thu, 12 Nov 2026 06:56:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
t=1794466565;
b=tfGupxOekN4iBwL2+z3j0ojE1PreaC3elYd7j5yc2W0sKqSLIre7N0akh2bnrqlHYnAA
DfL5+BR4VS5qVYnwaPI/Bv5ls5FrcE9baaFghmHdHmmCvOxwdRUNOjD48DoEzQGKzfyyk
QKo5hDbJ2mwC8tEM7jbKmyf+EBtaEDsqgEwzJEuv32otz+mFNFHoMPA+kNvmZJmBkd/EJ
5XkLrvKbmZ7afmaawNF3XOTfesexibzmKvq9863ojO3kuTrD62Ss0fVENE1ZTh+09+YNp
tQIZBBXNIYXQeUk8aHNhmtc1YnmesiObrPxokJTsAJFB/YbdguZsgOAcKhGn5kEOcSQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794466565;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
From:To:Cc:Subject:X-Priority:X-Mailer:X-NTES-SC:
Content-Transfer-Encoding:Content-Type:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Message-ID:X-Coremail-Locale:X-CM-TRANSID:
X-CM-SenderInfo:X-Coremail-Antispam;
bh=orTk+cCRojN6jAERdRAtmuhY/zheZD2z69ZfmXakmaQ=;
b=xgZ9w9sMjl8fCsywO9indQsc/Ie1ikGxZXu0sckEfKb3eWya34fecQ3nIQH0GBHl6Y7U
DXkMHvgI6toNqlttnkmVtF69aSR4qrK+8jr8zH6GLZDVFyUruMF0YsA2/QpBjsFoodIOe
LVf8YrYUMdadImJP3wTZ2u4OguNlviv23RM8z6heSzUpy6avorgLoy99vUepewjdI8pZ1
cWkPdnvjkDUArc/yd7XY9PpVeLQ9/tgKxwVRWNtOGexJohcNwbb8h6hCvHJ7jKZI0WPo7
0MW7ujiPpebCE/euzlr1CqLybdugEg9RwkIsHY3fPOO1coKnJxNFJUUzZnuSMpPTTRg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=SQ4XpjV+;
dmarc=pass header.from=126.com;
spf=pass smtp.mailfrom=126.com;
arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A1EA606A32E;
Thu, 12 Nov 2026 06:56:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=SQ4XpjV+
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.31.6
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794466564;
b=nbXLxER5Dcp4X4/l2/Zt7Rk1aVIviHKW25W1YrgxZGk+YbbyTXE/REJbeIxizr/rTvpY
ZIlLqDz+IHboWD/etuGkNNV/beMETf4a4NrYriBJDg3ZGQEGB+0I6kSGipTn1Epz8/hRR
OGPLQFejarZfG+5ORf11hHouylwTjRdUWfHOJhyIeDpajzHyzCwSQ3s4mS7nDnhXfAkW/
4a6jBtJ/uWMFYBgHjgJOhwC9AOCgOFV1NxhTZ0IEGWPdTBQ1dBYVpITCgKl2/HOmRqqae
Jkaa7TFGPkVRmhuixq+EnlBuMDwbOuryyICs0z/mMktWaARs14KEs6ULUSbT8ENkZKA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794466564;
h=DMARC-Filter:DKIM-Signature:Received:X-Originating-IP:Date:From:To:
Cc:Subject:X-Priority:X-Mailer:X-NTES-SC:Content-Transfer-Encoding:
Content-Type:MIME-Version:Message-ID:X-Coremail-Locale:X-CM-TRANSID:
X-CM-SenderInfo:X-Coremail-Antispam;
bh=orTk+cCRojN6jAERdRAtmuhY/zheZD2z69ZfmXakmaQ=;
b=i/GIwQRTySVY03y5PTIgPqESXRDFQFORuJPsIEFcL0w8IeLrGhrMMfoAM12j2DOTq6Bp
eYiqpC9DcbHgFAHIPvacFjT/ltNGodrFY7/Za0fNxbZm+qNPRZjzkvoitKiBADhGIZT4P
kVy+yqSvlK+TKNqdZLtV6ztT1WMtPAvNbfLM5Ujo/w/MiAlo7yihZ+E36MTWb/QXvpCmw
i9HBTX0311Lo+tLGOQijpSZ8d8tELEOKiH6D4k0bVgbdkoJpX9PqOISxoKtohtXS9qIJB
cpEVMhPPlELiPFUeWEWaomNs3CAneoeGhdHobbCK/INyAvevA+gPItxKMvbAUbHEhbg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=126.com;
spf=pass smtp.mailfrom=126.com;
dkim=pass header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=SQ4XpjV+;
arc=none smtp.remote-ip=220.197.31.6
X-Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.6])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B0F7606A31C
for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 06:56:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4B0F7606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com;
s=s110527; h=Date:From:To:Subject:Content-Type:MIME-Version:
Message-ID; bh=orTk+cCRojN6jAERdRAtmuhY/zheZD2z69ZfmXakmaQ=; b=S
Q4XpjV+vWyuE0M06YbIRuv2yI7tdqnfb6B5/jpuk0yLCrTWZ3gaHipu6gMwrKs6K
eZ6XjoYpVS7Hpdgz1yaIhyJ80pEJoH+I5qk/7G9c2JMaaUwxT0llvzpwPXy2KRJ4
MG6XTPWDtF+boBmlncebBPlCr/poqEhlKI+uHvEKhg=
X-Received: from chenaibingfly$126.com ( [2409:8720:4a00:1405::326] ) by
ajax-webmail-wmsvr-41-103 (Coremail) ; Thu, 12 Nov 2026 14:55:49 +0800
(CST)
X-Cc: linux-net-drivers@amd.com, ecree.xilinx@gmail.com,
habetsm.xilinx@gmail.com
X-Priority: 3
X-Mailer: Coremail Webmail Server Version 2023.4-cmXT build
20260511(2e539873) Copyright (c) 2002-2026 www.mailtech.cn 126com
X-NTES-SC: AL_Qu2SBviduU0v7yGQYOkfn0YSgug3WcKzvvok3YRVc+YOpQDO/y8HWHJvOVnQ+emwDg2gnBqQQQZO6f1iXaR6prFtc9o0ONbP9LOw0TOOBw==
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Coremail-Locale: zh_CN
X-CM-TRANSID: ZykvCgD3t3_1YvVqoi9gAA--.52213W
X-CM-SenderInfo: xfkh0txlel0wxio1qiyswou0bp/xtbBqRXtKWr1YvWYagAA3C
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==