All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next bugfix] net, rps: fix build failure when CONFIG_RPS isn't set
@ 2013-12-31 20:31 Zhi Yong Wu
  2013-12-31 20:54 ` David Miller
  2013-12-31 22:03 ` Sergei Shtylyov
  0 siblings, 2 replies; 7+ messages in thread
From: Zhi Yong Wu @ 2013-12-31 20:31 UTC (permalink / raw)
  To: netdev; +Cc: davem, therbert, fengguang.wu, Zhi Yong Wu

From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 include/net/sock.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/net/sock.h b/include/net/sock.h
index 8ee90ad..bd716b6 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -846,12 +846,16 @@ static inline void sock_rps_reset_flow_hash(__u32 hash)
 
 static inline void sock_rps_record_flow(const struct sock *sk)
 {
+#ifdef CONFIG_RPS
 	sock_rps_record_flow_hash(sk->sk_rxhash);
+#endif
 }
 
 static inline void sock_rps_reset_flow(const struct sock *sk)
 {
+#ifdef CONFIG_RPS
 	sock_rps_reset_flow_hash(sk->sk_rxhash);
+#endif
 }
 
 static inline void sock_rps_save_rxhash(struct sock *sk,
-- 
1.7.6.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-01  6:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31 20:31 [net-next bugfix] net, rps: fix build failure when CONFIG_RPS isn't set Zhi Yong Wu
2013-12-31 20:54 ` David Miller
2013-12-31 20:58   ` David Miller
2014-01-01  6:36     ` Zhi Yong Wu
2013-12-31 22:03 ` Sergei Shtylyov
2013-12-31 21:08   ` David Miller
2013-12-31 21:08   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.