diff options
author | Li Zefan <lizefan@huawei.com> | 2012-12-26 00:48:24 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-27 02:16:23 +0400 |
commit | 3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98 (patch) | |
tree | 2f318c33150ddbf86580e7128c1905b232aef6ac | |
parent | ccb6e984a1f0ee03c3e2607809fe3809fa872a2e (diff) | |
download | linux-3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98.tar.xz |
netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled
sock->sk_cgrp_prioidx won't be used at all if CONFIG_NETPRIO_CGROUP=n.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 93a6745bfdb2..182ca99405ad 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -367,7 +367,7 @@ struct sock { unsigned short sk_ack_backlog; unsigned short sk_max_ack_backlog; __u32 sk_priority; -#ifdef CONFIG_CGROUPS +#if IS_ENABLED(CONFIG_NETPRIO_CGROUP) __u32 sk_cgrp_prioidx; #endif struct pid *sk_peer_pid; |