[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b16cb1bdbaf73daa7df02d7945697eb69b55f789.1596451857.git.mkubecek@suse.cz>
Date: Mon, 3 Aug 2020 13:57:15 +0200 (CEST)
From: Michal Kubecek <mkubecek@...e.cz>
To: netdev@...r.kernel.org
Subject: [PATCH ethtool 4/7] netlink: mark unused callback parameter
Function nomsg_reply_cb() is used as a callback for mnl_cb_run() but it
does not use its data parameter; mark it as unused to get rid of compiler
warning.
Signed-off-by: Michal Kubecek <mkubecek@...e.cz>
---
netlink/netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/netlink/netlink.c b/netlink/netlink.c
index 17b7788600d0..76b6e825b1d0 100644
--- a/netlink/netlink.c
+++ b/netlink/netlink.c
@@ -16,7 +16,7 @@
/* Used as reply callback for requests where no reply is expected (e.g. most
* "set" type commands)
*/
-int nomsg_reply_cb(const struct nlmsghdr *nlhdr, void *data)
+int nomsg_reply_cb(const struct nlmsghdr *nlhdr, void *data __maybe_unused)
{
const struct genlmsghdr *ghdr = (const struct genlmsghdr *)(nlhdr + 1);
--
2.28.0
Powered by blists - more mailing lists