[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150113.170835.117518742562457914.davem@davemloft.net>
Date: Tue, 13 Jan 2015 17:08:35 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: netdev@...r.kernel.org, eli@...lanox.com,
linux-rdma@...r.kernel.org
Subject: Re: [PATCH] mlx5: avoid build warnings on 32-bit
From: Arnd Bergmann <arnd@...db.de>
Date: Tue, 13 Jan 2015 17:08:06 +0100
> The mlx5 driver passes a string pointer in through a 'u64' variable,
> which on 32-bit machines causes a build warning:
>
> drivers/net/ethernet/mellanox/mlx5/core/debugfs.c: In function 'qp_read_field':
> drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>
> The code is in fact safe, so we can shut up the warning by adding
> extra type casts.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists