]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: ncsi: Set ncsi_stop_dev() to inline while NET_NCSI not enabled
authorMinda Chen <minda.chen@starfivetech.com>
Fri, 5 Jun 2026 03:36:07 +0000 (11:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Jun 2026 00:18:51 +0000 (17:18 -0700)
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>
include/net/ncsi.h

index 08a50d9acb0a84df9e4ea3567624354dc1874256..e886358207aacb95fd622d29453398f3ddb065b6 100644 (file)
@@ -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)
 {
 }