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 | 404a0a0d7309c3bd48aafba7d4431721e1dedf0e (patch) | |
tree | ab6065aa67c73c1153a3d4b1da9e03e48451a57d /src | |
parent | data: transition to skb_reset_tc for 4.11 (diff) | |
download | wireguard-monolithic-historical-404a0a0d7309c3bd48aafba7d4431721e1dedf0e.tar.xz wireguard-monolithic-historical-404a0a0d7309c3bd48aafba7d4431721e1dedf0e.zip |
compat: use maybe_unused macro over gcc-specific
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, |