diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-27 15:27:47 -0800 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-27 15:27:47 -0800 |
commit | f21b7267cca69590987d287a1a973715f3e3d4dc (patch) | |
tree | 5cdadc971a10bbb9eed5d65bb97213e9138c2304 /src | |
parent | 5763a32e962eeeedb270080a6b082ab94c872d47 (diff) |
compat: use maybe_unused macro over gcc-specific
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/compat/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, |