From 404a0a0d7309c3bd48aafba7d4431721e1dedf0e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 27 Feb 2017 15:27:47 -0800 Subject: compat: use maybe_unused macro over gcc-specific --- src/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/compat/compat.h b/src/compat/compat.h index c3b4289..141cad7 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -87,7 +87,7 @@ struct udp_port_cfg_new { __be16 peer_udp_port; unsigned int use_udp_checksums:1, use_udp6_tx_checksums:1, use_udp6_rx_checksums:1, ipv6_v6only:1; }; -__attribute__((unused)) static inline int udp_sock_create_new(struct net *net, struct udp_port_cfg_new *cfg, struct socket **sockp) +static inline int __maybe_unused udp_sock_create_new(struct net *net, struct udp_port_cfg_new *cfg, struct socket **sockp) { struct udp_port_cfg old_cfg = { .family = cfg->family, -- cgit v1.2.3-59-g8ed1b