Two minor fixes for 4.6-rc2
- Fix mlx5 build error when on demand paging is not enabled - Fix possible uninit variable in new i40iw driver -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJXBR9aAAoJELgmozMOVy/dXd8P/jFSdS+9X07Pjsb9X+t+o4fm 54HesGM0+ShXzX8cp4rzIFK3bH8kpY6z89/Hxtk1wVtRMmfMXDAqPy7UW4Jbk75J jr3S986C9gKwyFQaxb72RAYISoSqHDyg0pWNEVqMRfOgaz1RyVcpUsUoplxW+LeP amQYLE3jPPdda+FGT7II9zB0jy5/YV1IxneI3YomJpRbHnWqebtLKCFDHlhxyzfM OVYQIYTHYM4DtbN6yse89ajvH4GqRC2aPSjtmp1LVgAQXuuSIwtpNPWPWrBZkhII HNx7OizSH0lcKaqSQG2ioZHUHm13N5j5ZKrZe95MPxN8XQ190cf/xYhCZUWmrPTO mmi/IrdB0llMbJiT5fCLQi6nCCC573ziS0CozYQ1NcC3pfruMaCMXh4EeimNIslC 4K0+JwaOmJp56vWMfdrlrJ3GgNHMGDrNQOcM6kUgdAeyGqT1QP6SMVLILje+6NyK oD0v+IHCBBqU8PegYTLewku3NYuIXDduxlgfLxvxPFKKoaIJfjv91aQaorMsWu2B JgABzoX98HtWYjbF5Wk+oYcMnWB9iFZrOuyQV+YYMDXrkpHCOZnzXFCSHbdEcdLT nLjGTvtXMDM3hKl6WoSFH+kUbotIvgXF1rOZ6190AQgk/wVKcnWey7yfHB+JtANt VqyaCc6ykeRZSnAP1Qgd =PcOX -----END PGP SIGNATURE----- Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma Pull rdma fixes from Doug Ledford: "I'm back from PTO. These issues cropped up while I was gone and are simple fixes. I'll have more after I've caught up, but I wanted to get these in quick. Two minor fixes for 4.6-rc2: - Fix mlx5 build error when on demand paging is not enabled - Fix possible uninit variable in new i40iw driver" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: i40iw: avoid potential uninitialized variable use IB/mlx5: fix VFs callback function prototypes
This commit is contained in:
commit
9cb5b787db
|
@ -1992,7 +1992,6 @@ static int i40iw_addr_resolve_neigh(struct i40iw_device *iwdev,
|
||||||
/**
|
/**
|
||||||
* i40iw_get_dst_ipv6
|
* i40iw_get_dst_ipv6
|
||||||
*/
|
*/
|
||||||
#if IS_ENABLED(CONFIG_IPV6)
|
|
||||||
static struct dst_entry *i40iw_get_dst_ipv6(struct sockaddr_in6 *src_addr,
|
static struct dst_entry *i40iw_get_dst_ipv6(struct sockaddr_in6 *src_addr,
|
||||||
struct sockaddr_in6 *dst_addr)
|
struct sockaddr_in6 *dst_addr)
|
||||||
{
|
{
|
||||||
|
@ -2008,7 +2007,6 @@ static struct dst_entry *i40iw_get_dst_ipv6(struct sockaddr_in6 *src_addr,
|
||||||
dst = ip6_route_output(&init_net, NULL, &fl6);
|
dst = ip6_route_output(&init_net, NULL, &fl6);
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* i40iw_addr_resolve_neigh_ipv6 - resolve neighbor ipv6 address
|
* i40iw_addr_resolve_neigh_ipv6 - resolve neighbor ipv6 address
|
||||||
|
@ -2016,7 +2014,6 @@ static struct dst_entry *i40iw_get_dst_ipv6(struct sockaddr_in6 *src_addr,
|
||||||
* @dst_ip: remote ip address
|
* @dst_ip: remote ip address
|
||||||
* @arpindex: if there is an arp entry
|
* @arpindex: if there is an arp entry
|
||||||
*/
|
*/
|
||||||
#if IS_ENABLED(CONFIG_IPV6)
|
|
||||||
static int i40iw_addr_resolve_neigh_ipv6(struct i40iw_device *iwdev,
|
static int i40iw_addr_resolve_neigh_ipv6(struct i40iw_device *iwdev,
|
||||||
u32 *src,
|
u32 *src,
|
||||||
u32 *dest,
|
u32 *dest,
|
||||||
|
@ -2089,7 +2086,6 @@ static int i40iw_addr_resolve_neigh_ipv6(struct i40iw_device *iwdev,
|
||||||
dst_release(dst);
|
dst_release(dst);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* i40iw_ipv4_is_loopback - check if loopback
|
* i40iw_ipv4_is_loopback - check if loopback
|
||||||
|
@ -2190,13 +2186,13 @@ static struct i40iw_cm_node *i40iw_make_cm_node(
|
||||||
cm_info->loc_addr[0],
|
cm_info->loc_addr[0],
|
||||||
cm_info->rem_addr[0],
|
cm_info->rem_addr[0],
|
||||||
oldarpindex);
|
oldarpindex);
|
||||||
#if IS_ENABLED(CONFIG_IPV6)
|
else if (IS_ENABLED(CONFIG_IPV6))
|
||||||
else
|
|
||||||
arpindex = i40iw_addr_resolve_neigh_ipv6(iwdev,
|
arpindex = i40iw_addr_resolve_neigh_ipv6(iwdev,
|
||||||
cm_info->loc_addr,
|
cm_info->loc_addr,
|
||||||
cm_info->rem_addr,
|
cm_info->rem_addr,
|
||||||
oldarpindex);
|
oldarpindex);
|
||||||
#endif
|
else
|
||||||
|
arpindex = -EINVAL;
|
||||||
}
|
}
|
||||||
if (arpindex < 0) {
|
if (arpindex < 0) {
|
||||||
i40iw_pr_err("cm_node arpindex\n");
|
i40iw_pr_err("cm_node arpindex\n");
|
||||||
|
|
|
@ -776,15 +776,6 @@ void mlx5_ib_qp_disable_pagefaults(struct mlx5_ib_qp *qp);
|
||||||
void mlx5_ib_qp_enable_pagefaults(struct mlx5_ib_qp *qp);
|
void mlx5_ib_qp_enable_pagefaults(struct mlx5_ib_qp *qp);
|
||||||
void mlx5_ib_invalidate_range(struct ib_umem *umem, unsigned long start,
|
void mlx5_ib_invalidate_range(struct ib_umem *umem, unsigned long start,
|
||||||
unsigned long end);
|
unsigned long end);
|
||||||
int mlx5_ib_get_vf_config(struct ib_device *device, int vf,
|
|
||||||
u8 port, struct ifla_vf_info *info);
|
|
||||||
int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf,
|
|
||||||
u8 port, int state);
|
|
||||||
int mlx5_ib_get_vf_stats(struct ib_device *device, int vf,
|
|
||||||
u8 port, struct ifla_vf_stats *stats);
|
|
||||||
int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port,
|
|
||||||
u64 guid, int type);
|
|
||||||
|
|
||||||
#else /* CONFIG_INFINIBAND_ON_DEMAND_PAGING */
|
#else /* CONFIG_INFINIBAND_ON_DEMAND_PAGING */
|
||||||
static inline void mlx5_ib_internal_fill_odp_caps(struct mlx5_ib_dev *dev)
|
static inline void mlx5_ib_internal_fill_odp_caps(struct mlx5_ib_dev *dev)
|
||||||
{
|
{
|
||||||
|
@ -801,6 +792,15 @@ static inline void mlx5_ib_qp_enable_pagefaults(struct mlx5_ib_qp *qp) {}
|
||||||
|
|
||||||
#endif /* CONFIG_INFINIBAND_ON_DEMAND_PAGING */
|
#endif /* CONFIG_INFINIBAND_ON_DEMAND_PAGING */
|
||||||
|
|
||||||
|
int mlx5_ib_get_vf_config(struct ib_device *device, int vf,
|
||||||
|
u8 port, struct ifla_vf_info *info);
|
||||||
|
int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf,
|
||||||
|
u8 port, int state);
|
||||||
|
int mlx5_ib_get_vf_stats(struct ib_device *device, int vf,
|
||||||
|
u8 port, struct ifla_vf_stats *stats);
|
||||||
|
int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port,
|
||||||
|
u64 guid, int type);
|
||||||
|
|
||||||
__be16 mlx5_get_roce_udp_sport(struct mlx5_ib_dev *dev, u8 port_num,
|
__be16 mlx5_get_roce_udp_sport(struct mlx5_ib_dev *dev, u8 port_num,
|
||||||
int index);
|
int index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue