summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2012-12-25 20:48:24 +0000
committerDavid S. Miller <davem@davemloft.net>2012-12-26 14:16:23 -0800
commit3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98 (patch)
tree2f318c33150ddbf86580e7128c1905b232aef6ac /include/net
parentccb6e984a1f0ee03c3e2607809fe3809fa872a2e (diff)
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sock.h2
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;