Thread (2 messages) 2 messages, 2 authors, 2020-11-16

Re: [PATCH v6 3/5] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-11-16 17:47:02
Also in: linux-arm-kernel, linux-devicetree, linux-samsung-soc, lkml

On Mon, 16 Nov 2020 16:33:26 +0100 Lukasz Stelmach wrote:
quoted
Please make sure the new code builds cleanly with W=1 C=1

../drivers/net/ethernet/asix/ax88796c_ioctl.c:221:19: warning: initialized field overwritten [-Woverride-init]
  221 |  .get_msglevel  = ax88796c_ethtool_getmsglevel,
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/ethernet/asix/ax88796c_ioctl.c:221:19: note: (near initialization for ‘ax88796c_ethtool_ops.get_msglevel’)
../drivers/net/ethernet/asix/ax88796c_ioctl.c:222:19: warning: initialized field overwritten [-Woverride-init]
  222 |  .set_msglevel  = ax88796c_ethtool_setmsglevel,
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/ethernet/asix/ax88796c_ioctl.c:222:19: note: (near initialization for ‘ax88796c_ethtool_ops.set_msglevel’)
In file included from ../drivers/net/ethernet/asix/ax88796c_main.h:15,
                 from ../drivers/net/ethernet/asix/ax88796c_ioctl.c:16:
../drivers/net/ethernet/asix/ax88796c_spi.h:25:17: warning: ‘tx_cmd_buf’ defined but not used [-Wunused-const-variable=]
   25 | static const u8 tx_cmd_buf[4] = {AX_SPICMD_WRITE_TXQ, 0xFF, 0xFF, 0xFF};
      |                 ^~~~~~~~~~  
I fixed the problems reported by W=1, but I am afraid I can't do
anything about C=1. sparse is is reporting

[...]
./include/linux/atomic-fallback.h:266:16: error: Expected ; at end ofdeclaration
./include/linux/atomic-fallback.h:266:16: error: got ret
./include/linux/atomic-fallback.h:267:1: error: Expected ; at the end of type declaration
./include/linux/atomic-fallback.h:267:1: error: too many errors
Segmentation fault

in the headers and gets killed.
That's fine, sparse is wobbly at times, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help