net, rps: fix build failure when CONFIG_RPS isn't set
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Tue, 31 Dec 2013 20:31:01 +0000 (04:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Dec 2013 20:59:27 +0000 (15:59 -0500)
commitc9d8ca0454a28d0f835138d7294ede4fc6d95572
treeb70156265252cafb9541fecab7dbee7b0814713d
parent0438816efd86c764d5544bf52e769604062316b3
net, rps: fix build failure when CONFIG_RPS isn't set

In file included from net/socket.c:99:0:
include/net/sock.h: In function ‘sock_rps_record_flow’:
include/net/sock.h:849:30: error: ‘const struct sock’ has no member named ‘sk_rxhash’
include/net/sock.h: In function ‘sock_rps_reset_flow’:
include/net/sock.h:854:29: error: ‘const struct sock’ has no member named ‘sk_rxhash’

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h