]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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)
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

index 8a5a0649fc4ac0ef77396c6cade94bffbd41b272..59992cf20d42eb1f0245ae5f8446b40ff9a4903c 100644 (file)
@@ -928,7 +928,9 @@ static int qed_slowpath_start(struct qed_dev *cdev,
        struct qed_tunnel_info tunn_info;
        const u8 *data = NULL;
        struct qed_hwfn *hwfn;
+#ifdef CONFIG_RFS_ACCEL
        struct qed_ptt *p_ptt;
+#endif
        int rc = -EINVAL;
 
        if (qed_iov_wq_start(cdev))