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

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