summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinda Chen <minda.chen@starfivetech.com>2026-06-05 06:36:07 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-10 03:18:51 +0300
commit5c9a6a124afdb933b3f2c9cd685f729920da0a37 (patch)
treec396b94ae8d05e61d10fede3e4bf1aed94fc6f00 /include
parenta7601bf9c3d3a9e4951081fa3b65b4b722e3c1a9 (diff)
downloadlinux-5c9a6a124afdb933b3f2c9cd685f729920da0a37.tar.xz
net: ncsi: Set ncsi_stop_dev() to inline while NET_NCSI not enabled
While NET_NCSI not enabled, ncsi_stop_dev() is not inline and call with it, casue compile waring: linux/include/net/ncsi.h:63:13: warning: 'ncsi_stop_dev' defined but not used [-Wunused-function] static void ncsi_stop_dev(struct ncsi_dev *nd) Setting ncsi_stop_dev() to inline like other function to remove compile warnings. Signed-off-by: Minda Chen <minda.chen@starfivetech.com> Link: https://patch.msgid.link/20260605033607.37630-1-minda.chen@starfivetech.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/ncsi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ncsi.h b/include/net/ncsi.h
index 08a50d9acb0a..e886358207aa 100644
--- a/include/net/ncsi.h
+++ b/include/net/ncsi.h
@@ -60,7 +60,7 @@ static inline int ncsi_start_dev(struct ncsi_dev *nd)
return -ENOTTY;
}
-static void ncsi_stop_dev(struct ncsi_dev *nd)
+static inline void ncsi_stop_dev(struct ncsi_dev *nd)
{
}