netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled
Subsystems (4)
PATCH 1/1 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 <[email protected]>
--- include/net/sock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/sock.h +1 -1
@@ -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;
Signature · 1 line
1.8.0.2
Quoted 3 lines · Li Zefan
sock->sk_cgrp_prioidxwon't be used at all ifCONFIG_NETPRIO_CGROUP=n.Signed-off-by Li Zefan <[email protected]>
Acked-by Neil Horman <[email protected]>
Quoted 21 lines
--- include/net/sock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/net/sock.h +1
-1@@ -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;Signature · 1 line
1.8.0.2
From: Neil Horman <[email protected]>
Date: Wed, 26 Dec 2012 13:03:39 -0500
Quoted 5 lines · Li Zefan
Quoted 3 lines
sock->sk_cgrp_prioidxwon't be used at all ifCONFIG_NETPRIO_CGROUP=n.Signed-off-by Li Zefan <[email protected]>Acked-by Neil Horman <[email protected]>
Applied, thanks.