Re: Compile warning with current kernel and netfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 11, 2021 at 8:03 AM David Howells <dhowells@xxxxxxxxxx> wrote:
>
> Steve French <smfrench@xxxxxxxxx> wrote:
>
> >   CC [M]  /home/smfrench/cifs-2.6/fs/cifs/fscache.o
> >   CHECK   /home/smfrench/cifs-2.6/fs/cifs/fscache.c
> > /home/smfrench/cifs-2.6/fs/cifs/fscache.c: note: in included file
> > (through include/linux/fscache.h,
> > /home/smfrench/cifs-2.6/fs/cifs/fscache.h):
> > ./include/linux/netfs.h:93:15: error: don't know how to apply mode to
> > unsigned int enum netfs_read_source
>
> Yeah - that's a bit the checker doesn't know how to support.  It's meant to
> make enum netfs_read_source-type struct members take less space.  I think gcc
> and clang are both fine with it.

Looks like sparse has been recently updated to fix this.  I pulled
from their git tree and rebuilt sparse to:

$ sparse --version
v0.6.3-341-g8af24329

and it works - no warnings  (other than the "Skipping BTF generation
one - which is unrelated, see https://lkml.org/lkml/2020/11/16/1452)

make: Entering directory '/usr/src/linux-headers-5.13.0-051300rc1-generic'
  CC [M]  /home/smfrench/cifs-2.6/fs/cifs/fscache.o
  CHECK   /home/smfrench/cifs-2.6/fs/cifs/fscache.c
  CC [M]  /home/smfrench/cifs-2.6/fs/cifs/cache.o
  CHECK   /home/smfrench/cifs-2.6/fs/cifs/cache.c
  LD [M]  /home/smfrench/cifs-2.6/fs/cifs/cifs.o
  MODPOST /home/smfrench/cifs-2.6/fs/cifs/Module.symvers
  LD [M]  /home/smfrench/cifs-2.6/fs/cifs/cifs.ko
  BTF [M] /home/smfrench/cifs-2.6/fs/cifs/cifs.ko

-- 
Thanks,

Steve



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux