45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
|
From fd001f7b3e530afefe470db246e8fc299077329e Mon Sep 17 00:00:00 2001
|
||
|
From: Michal Kubecek <mkubecek@suse.cz>
|
||
|
Date: Wed, 16 Sep 2020 18:48:20 +0200
|
||
|
Subject: [PATCH 13/17] netlink: mark unused function parameters of non-netlink
|
||
|
stubs
|
||
|
|
||
|
Recent compiler warning cleanup missed three unused parameters in versions
|
||
|
of netlink_run_handler() and nl_monitor() used when netlink support is
|
||
|
disabled (configure --disable-netlink).
|
||
|
|
||
|
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
|
||
|
(cherry picked from commit eb5bd877ec5bd2a2d2b5e09fc90033be1a64c95a)
|
||
|
---
|
||
|
netlink/extapi.h | 7 ++++---
|
||
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/netlink/extapi.h b/netlink/extapi.h
|
||
|
index a35d5f2c0b26..4fee6a9c3a99 100644
|
||
|
--- a/netlink/extapi.h
|
||
|
+++ b/netlink/extapi.h
|
||
|
@@ -43,8 +43,9 @@ void nl_monitor_usage(void);
|
||
|
|
||
|
#else /* ETHTOOL_ENABLE_NETLINK */
|
||
|
|
||
|
-static inline void netlink_run_handler(struct cmd_context *ctx,
|
||
|
- nl_func_t nlfunc, bool no_fallback)
|
||
|
+static inline void netlink_run_handler(struct cmd_context *ctx __maybe_unused,
|
||
|
+ nl_func_t nlfunc __maybe_unused,
|
||
|
+ bool no_fallback)
|
||
|
{
|
||
|
if (no_fallback) {
|
||
|
fprintf(stderr,
|
||
|
@@ -54,7 +55,7 @@ static inline void netlink_run_handler(struct cmd_context *ctx,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
-static inline int nl_monitor(struct cmd_context *ctx)
|
||
|
+static inline int nl_monitor(struct cmd_context *ctx __maybe_unused)
|
||
|
{
|
||
|
fprintf(stderr, "Netlink not supported by ethtool, option --monitor unsupported.\n");
|
||
|
return -EOPNOTSUPP;
|
||
|
--
|
||
|
2.26.2
|
||
|
|