lkml.org 
[lkml]   [2020]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 3/5] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver
On Mon, 16 Nov 2020 16:33:26 +0100 Lukasz Stelmach wrote:
> > 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!

\
 
 \ /
  Last update: 2020-11-16 19:09    [W:0.133 / U:1.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site