* [PATCH] net/mlx4: Remove unused macro
@ 2016-01-14 15:48 Moni Shoua
[not found] ` <1452786487-30438-1-git-send-email-monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Moni Shoua @ 2016-01-14 15:48 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Moni Shoua
The macro mlx4_foreach_non_ib_transport_port() is not used anywhere. Remove it.
Fixes: aa9a2d51a3e7 ("mlx4: Activate RoCE/SRIOV")
Signed-off-by: Moni Shoua <monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
include/linux/mlx4/device.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index f70d210..6309ff1 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -982,10 +982,6 @@ struct mlx4_mad_ifc {
for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
if ((type) == (dev)->caps.port_mask[(port)])
-#define mlx4_foreach_non_ib_transport_port(port, dev) \
- for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
- if (((dev)->caps.port_mask[port] != MLX4_PORT_TYPE_IB))
-
#define mlx4_foreach_ib_transport_port(port, dev) \
for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/mlx4: Remove unused macro
[not found] ` <1452786487-30438-1-git-send-email-monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
@ 2016-01-19 20:58 ` Doug Ledford
0 siblings, 0 replies; 2+ messages in thread
From: Doug Ledford @ 2016-01-19 20:58 UTC (permalink / raw)
To: Moni Shoua; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]
On 01/14/2016 10:48 AM, Moni Shoua wrote:
> The macro mlx4_foreach_non_ib_transport_port() is not used anywhere. Remove it.
>
> Fixes: aa9a2d51a3e7 ("mlx4: Activate RoCE/SRIOV")
> Signed-off-by: Moni Shoua <monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
> include/linux/mlx4/device.h | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
> index f70d210..6309ff1 100644
> --- a/include/linux/mlx4/device.h
> +++ b/include/linux/mlx4/device.h
> @@ -982,10 +982,6 @@ struct mlx4_mad_ifc {
> for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
> if ((type) == (dev)->caps.port_mask[(port)])
>
> -#define mlx4_foreach_non_ib_transport_port(port, dev) \
> - for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
> - if (((dev)->caps.port_mask[port] != MLX4_PORT_TYPE_IB))
> -
> #define mlx4_foreach_ib_transport_port(port, dev) \
> for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
> if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \
>
Thanks, applied.
--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: 0E572FDD
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-19 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-14 15:48 [PATCH] net/mlx4: Remove unused macro Moni Shoua
[not found] ` <1452786487-30438-1-git-send-email-monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-01-19 20:58 ` Doug Ledford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).