diff options
author | 2012-12-25 20:48:24 +0000 | |
---|---|---|
committer | 2012-12-26 14:16:23 -0800 | |
commit | 3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98 (patch) | |
tree | 2f318c33150ddbf86580e7128c1905b232aef6ac /include | |
parent | cpts: fix a run time warn_on. (diff) | |
download | linux-3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98.tar.gz linux-3d0dcfbd8fa2a1e63fabb5f8edac8b8a27860d98.tar.bz2 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 'include')
-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; |