summaryrefslogtreecommitdiff
path: root/sysdep/linux/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/linux/netlink')
-rw-r--r--sysdep/linux/netlink/krt-iface.h6
-rw-r--r--sysdep/linux/netlink/krt-set.h8
-rw-r--r--sysdep/linux/netlink/netlink.c14
3 files changed, 14 insertions, 14 deletions
diff --git a/sysdep/linux/netlink/krt-iface.h b/sysdep/linux/netlink/krt-iface.h
index eddfbac5..f44ca27f 100644
--- a/sysdep/linux/netlink/krt-iface.h
+++ b/sysdep/linux/netlink/krt-iface.h
@@ -19,10 +19,10 @@ struct krt_if_params {
struct krt_if_status {
};
-static inline void krt_if_construct(struct kif_config *c) { };
-static inline void krt_if_shutdown(struct kif_proto *p) { };
+static inline void krt_if_construct(struct kif_config *c UNUSED) { };
+static inline void krt_if_shutdown(struct kif_proto *p UNUSED) { };
static inline void krt_if_io_init(void) { };
-static inline int kif_params_same(struct krt_if_params *old, struct krt_if_params *new) { return 1; }
+static inline int kif_params_same(struct krt_if_params *old UNUSED, struct krt_if_params *new UNUSED) { return 1; }
#endif
diff --git a/sysdep/linux/netlink/krt-set.h b/sysdep/linux/netlink/krt-set.h
index 4f35e090..83d082d0 100644
--- a/sysdep/linux/netlink/krt-set.h
+++ b/sysdep/linux/netlink/krt-set.h
@@ -19,9 +19,9 @@ struct krt_set_params {
struct krt_set_status {
};
-static inline void krt_set_construct(struct krt_config *c) { };
-static inline void krt_set_start(struct krt_proto *p, int first) { };
-static inline void krt_set_shutdown(struct krt_proto *p, int last) { };
-static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
+static inline void krt_set_construct(struct krt_config *c UNUSED) { };
+static inline void krt_set_start(struct krt_proto *p UNUSED, int first UNUSED) { };
+static inline void krt_set_shutdown(struct krt_proto *p UNUSED, int last UNUSED) { };
+static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
#endif
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index c911642a..83e93c9a 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -409,7 +409,7 @@ nl_parse_addr(struct nlmsghdr *h)
}
void
-krt_if_scan(struct kif_proto *p)
+krt_if_scan(struct kif_proto *p UNUSED)
{
struct nlmsghdr *h;
@@ -518,7 +518,7 @@ nl_send_route(struct krt_proto *p, rte *e, int new)
}
void
-krt_set_notify(struct krt_proto *p, net *n, rte *new, rte *old)
+krt_set_notify(struct krt_proto *p, net *n UNUSED, rte *new, rte *old)
{
if (old && new)
{
@@ -726,7 +726,7 @@ nl_parse_route(struct nlmsghdr *h, int scan)
}
void
-krt_scan_fire(struct krt_proto *p) /* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */
+krt_scan_fire(struct krt_proto *p UNUSED) /* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */
{
struct nlmsghdr *h;
@@ -771,7 +771,7 @@ nl_async_msg(struct nlmsghdr *h)
}
static int
-nl_async_hook(sock *sk, int size)
+nl_async_hook(sock *sk, int size UNUSED)
{
struct iovec iov = { nl_async_rx_buffer, NL_RX_SIZE };
struct sockaddr_nl sa;
@@ -871,7 +871,7 @@ nl_open_async(void)
static u8 nl_cf_table[(NL_NUM_TABLES+7) / 8];
void
-krt_scan_preconfig(struct config *c)
+krt_scan_preconfig(struct config *c UNUSED)
{
bzero(&nl_cf_table, sizeof(nl_cf_table));
}
@@ -909,12 +909,12 @@ krt_scan_start(struct krt_proto *p, int first)
}
void
-krt_scan_shutdown(struct krt_proto *p, int last)
+krt_scan_shutdown(struct krt_proto *p UNUSED, int last UNUSED)
{
}
void
-krt_if_start(struct kif_proto *p)
+krt_if_start(struct kif_proto *p UNUSED)
{
nl_open();
nl_open_async();