Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473061

Re: [PATCH, net-next] qede: hide 32-bit compile warning

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH, net-next] qede: hide 32-bit compile warning
Date 2016-08-31 08:40 +0200
Message-ID <sc7lL-7js-13@gated-at.bofh.it> (permalink)
References <saryj-xK-49@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Arnd Bergmann <arnd@arndb.de>
Date: Fri, 26 Aug 2016 17:37:53 +0200

> The addition of the per-queue statistics introduced a harmless warning
> on all 32-bit architectures:
> 
> drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function 'qede_get_ethtool_stats':
> drivers/net/ethernet/qlogic/qede/qede_ethtool.c:244:31: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>       buf[cnt++] = QEDE_TQSTATS_DATA(edev,
>                                ^
> drivers/net/ethernet/qlogic/qede/qede_ethtool.c:244:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>       buf[cnt++] = QEDE_TQSTATS_DATA(edev,
>                       ^
> This changes the cast to 'void *' to shut up the warning, which
> avoids the assumptions on the size of the pointer type.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 68db9ec2df07 ("qede: Add support for per-queue stats.")

Applied, thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH, net-next] qede: hide 32-bit compile warning Arnd Bergmann <arnd@arndb.de> - 2016-08-26 17:50 +0200
  Re: [PATCH, net-next] qede: hide 32-bit compile warning Joe Perches <joe@perches.com> - 2016-08-26 19:00 +0200
  Re: [PATCH, net-next] qede: hide 32-bit compile warning David Miller <davem@davemloft.net> - 2016-08-31 08:40 +0200

csiph-web