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

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