Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [snitzer:nfs-localio-for-next 15/16] fs/nfs/fscache.c:178:19: error: no member named 'fh' in 'struct nfs_inode'
@ 2024-10-28 11:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-28 11:18 UTC (permalink / raw)
  To: Mike Snitzer; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git nfs-localio-for-next
head:   3cbc13ea704a0dfdaf3fc7e26eb251b50c416e5a
commit: a35a309f28531455cb28a7df34885fb9bf0cd815 [15/16] nfs: cache open nfsd_file(s) in client
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20241028/202410281921.j35HTKHl-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 5886454669c3c9026f7f27eab13509dd0241f2d6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241028/202410281921.j35HTKHl-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410281921.j35HTKHl-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/nfs/fscache.c:11:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     504 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     505 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     511 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     512 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     524 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     525 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   In file included from fs/nfs/fscache.c:12:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:13:
   In file included from include/linux/sunrpc/sched.h:19:
   In file included from include/linux/sunrpc/xdr.h:17:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:95:
   include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     548 |         val = __raw_readb(PCI_IOBASE + addr);
         |                           ~~~~~~~~~~ ^
   include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     561 |         val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu'
      37 | #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
         |                                                           ^
   include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
     102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
         |                                                      ^
   In file included from fs/nfs/fscache.c:12:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:13:
   In file included from include/linux/sunrpc/sched.h:19:
   In file included from include/linux/sunrpc/xdr.h:17:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:95:
   include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     574 |         val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
      35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
         |                                                           ^
   include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   In file included from fs/nfs/fscache.c:12:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:13:
   In file included from include/linux/sunrpc/sched.h:19:
   In file included from include/linux/sunrpc/xdr.h:17:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:95:
   include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     585 |         __raw_writeb(value, PCI_IOBASE + addr);
         |                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     595 |         __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     605 |         __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     693 |         readsb(PCI_IOBASE + addr, buffer, count);
         |                ~~~~~~~~~~ ^
   include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     701 |         readsw(PCI_IOBASE + addr, buffer, count);
         |                ~~~~~~~~~~ ^
   include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     709 |         readsl(PCI_IOBASE + addr, buffer, count);
         |                ~~~~~~~~~~ ^
   include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     718 |         writesb(PCI_IOBASE + addr, buffer, count);
         |                 ~~~~~~~~~~ ^
   include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     727 |         writesw(PCI_IOBASE + addr, buffer, count);
         |                 ~~~~~~~~~~ ^
   include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     736 |         writesl(PCI_IOBASE + addr, buffer, count);
         |                 ~~~~~~~~~~ ^
>> fs/nfs/fscache.c:178:19: error: no member named 'fh' in 'struct nfs_inode'
     178 |                                                nfsi->fh.data, /* index_key */
         |                                                ~~~~  ^
   fs/nfs/fscache.c:179:19: error: no member named 'fh' in 'struct nfs_inode'
     179 |                                                nfsi->fh.size,
         |                                                ~~~~  ^
   16 warnings and 2 errors generated.


vim +178 fs/nfs/fscache.c

50eaa652b54df1 Dave Wysochanski 2020-04-16  159  
ef79c097bbe972 David Howells    2009-04-03  160  /*
ef79c097bbe972 David Howells    2009-04-03  161   * Initialise the per-inode cache cookie pointer for an NFS inode.
ef79c097bbe972 David Howells    2009-04-03  162   */
f1fe29b4a02d08 David Howells    2013-09-27  163  void nfs_fscache_init_inode(struct inode *inode)
ef79c097bbe972 David Howells    2009-04-03  164  {
402cb8dda949d9 David Howells    2018-04-04  165  	struct nfs_fscache_inode_auxdata auxdata;
dea1bb35c5f35e Trond Myklebust  2019-08-03  166  	struct nfs_server *nfss = NFS_SERVER(inode);
ef79c097bbe972 David Howells    2009-04-03  167  	struct nfs_inode *nfsi = NFS_I(inode);
ef79c097bbe972 David Howells    2009-04-03  168  
88a4d7bdeec978 Dave Wysochanski 2023-02-20  169  	netfs_inode(inode)->cache = NULL;
dea1bb35c5f35e Trond Myklebust  2019-08-03  170  	if (!(nfss->fscache && S_ISREG(inode->i_mode)))
ef79c097bbe972 David Howells    2009-04-03  171  		return;
402cb8dda949d9 David Howells    2018-04-04  172  
45f3a70ba68e1f Dave Wysochanski 2022-03-01  173  	nfs_fscache_update_auxdata(&auxdata, inode);
402cb8dda949d9 David Howells    2018-04-04  174  
88a4d7bdeec978 Dave Wysochanski 2023-02-20  175  	netfs_inode(inode)->cache = fscache_acquire_cookie(
88a4d7bdeec978 Dave Wysochanski 2023-02-20  176  					       nfss->fscache,
a6b5a28eb56c3f Dave Wysochanski 2020-11-14  177  					       0,
a6b5a28eb56c3f Dave Wysochanski 2020-11-14 @178  					       nfsi->fh.data, /* index_key */
a6b5a28eb56c3f Dave Wysochanski 2020-11-14  179  					       nfsi->fh.size,
a6b5a28eb56c3f Dave Wysochanski 2020-11-14  180  					       &auxdata,      /* aux_data */
a6b5a28eb56c3f Dave Wysochanski 2020-11-14  181  					       sizeof(auxdata),
45f3a70ba68e1f Dave Wysochanski 2022-03-01  182  					       i_size_read(inode));
b4fa966f03b740 David Howells    2023-06-28  183  
b4fa966f03b740 David Howells    2023-06-28  184  	if (netfs_inode(inode)->cache)
b4fa966f03b740 David Howells    2023-06-28  185  		mapping_set_release_always(inode->i_mapping);
ef79c097bbe972 David Howells    2009-04-03  186  }
ef79c097bbe972 David Howells    2009-04-03  187  

:::::: The code at line 178 was first introduced by commit
:::::: a6b5a28eb56c3f4988f7ff5290b954ba296e309a nfs: Convert to new fscache volume/cookie API

:::::: TO: Dave Wysochanski <dwysocha@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-28 11:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 11:18 [snitzer:nfs-localio-for-next 15/16] fs/nfs/fscache.c:178:19: error: no member named 'fh' in 'struct nfs_inode' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox