Thread (6 messages) 6 messages, 3 authors, 2021-05-11

Re: Compile warning with current kernel and netfs

From: Steve French <smfrench@gmail.com>
Date: 2021-05-11 03:28:25
Also in: linux-fsdevel

$ gcc --version
gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0

$ sparse --version
v0.6.1-393-ge140005c

On Mon, May 10, 2021 at 9:09 PM Matthew Wilcox [off-list ref] wrote:
On Mon, May 10, 2021 at 09:01:06PM -0500, Steve French wrote:
quoted
Noticed the following netfs related new warning when compiling cifs.ko
with the current 5.13-rc1
I don't see that ... what compiler & version are you using?
quoted
  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
  CC [M]  /home/smfrench/cifs-2.6/fs/cifs/cache.o
  CHECK   /home/smfrench/cifs-2.6/fs/cifs/cache.c
/home/smfrench/cifs-2.6/fs/cifs/cache.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

It doesn't like this enum in include/linux/netfs.h:

enum netfs_read_source {
        NETFS_FILL_WITH_ZEROES,
        NETFS_DOWNLOAD_FROM_SERVER,
        NETFS_READ_FROM_CACHE,
        NETFS_INVALID_READ,
} __mode(byte);

--
Thanks,

Steve


-- 
Thanks,

Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help