diff options
author | Li Zefan <lizefan@huawei.com> | 2012-12-25 21:48:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-26 23:16:23 +0100 |
commit | 3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98 (patch) | |
tree | 2f318c33150ddbf86580e7128c1905b232aef6ac /include/net/sock.h | |
parent | cpts: fix a run time warn_on. (diff) | |
download | linux-3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98.tar.xz linux-3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98.zip |
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 '')
-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; |