qed: Prevent warning without CONFIG_RFS_ACCEL
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Sun, 30 Apr 2017 09:14:44 +0000 (12:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 15:42:51 +0000 (11:42 -0400)
commit07ff2ed03bb874a5bb97361a5a07ee28f1afa574
tree2e62854b1a21bbb81fe06d8f8a33f13b48b222c4
parenta6e8ab8e729065f716790fb9429f53393f72d7b4
qed: Prevent warning without CONFIG_RFS_ACCEL

After removing the PTP related initialization from slowpath start,
the remaining PTT entry is required only in case CONFIG_RFS_ACCEL is set.
Otherwise, it leads to a warning due to it being unused.

Fixes: d179bd1699fc ("qed: Acquire/release ptt_ptp lock when enabling/disabling PTP")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c