Blame SOURCES/0013-netlink-mark-unused-function-parameters-of-non-netli.patch

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