From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [dhowells-fs:ceph-iter 105/105] fs/ceph/addr.c:901:37: error: no member named 'head_snapc' in 'struct ceph_inode_info'; did you mean 'i_head_snapc'?
Date: Wed, 17 Jan 2024 13:53:11 +0800 [thread overview]
Message-ID: <202401171301.BfWU6V0h-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git ceph-iter
head: 2cf82c6e7baf6d3a2adc0692707028da395f1553
commit: 2cf82c6e7baf6d3a2adc0692707028da395f1553 [105/105] ceph: Use netfslib
config: i386-buildonly-randconfig-002-20240116 (https://download.01.org/0day-ci/archive/20240117/202401171301.BfWU6V0h-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240117/202401171301.BfWU6V0h-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/202401171301.BfWU6V0h-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> net/ceph/snapshot.c:40:22: warning: cast from 'void (*)(const void *)' to 'void (*)(struct netfs_group *)' converts to incompatible function type [-Wcast-function-type-strict]
40 | snapc->group.free = (void (*)(struct netfs_group *))kfree;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
--
>> fs/ceph/addr.c:547:1: warning: unused label 'out' [-Wunused-label]
547 | out:
| ^~~~
>> fs/ceph/addr.c:901:37: error: no member named 'head_snapc' in 'struct ceph_inode_info'; did you mean 'i_head_snapc'?
901 | return netfs_page_mkwrite(vmf, ci->head_snapc);
| ^~~~~~~~~~
| i_head_snapc
fs/ceph/super.h:415:28: note: 'i_head_snapc' declared here
415 | struct ceph_snap_context *i_head_snapc; /* set if wr_buffer_head > 0 or
| ^
1 warning and 1 error generated.
--
fs/ceph/crypto.c:545:5: warning: no previous prototype for function 'ceph_fscrypt_decrypt_pages' [-Wmissing-prototypes]
545 | int ceph_fscrypt_decrypt_pages(struct inode *inode, struct ceph_databuf *dbuf,
| ^
fs/ceph/crypto.c:545:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
545 | int ceph_fscrypt_decrypt_pages(struct inode *inode, struct ceph_databuf *dbuf,
| ^
| static
fs/ceph/crypto.c:591:5: error: conflicting types for 'ceph_fscrypt_decrypt_extents'
591 | int ceph_fscrypt_decrypt_extents(struct inode *inode, struct page **page,
| ^
fs/ceph/crypto.h:160:5: note: previous declaration is here
160 | int ceph_fscrypt_decrypt_extents(struct inode *inode, struct ceph_databuf *dbuf, u64 off,
| ^
fs/ceph/crypto.c:625:44: error: incompatible pointer types passing 'struct page **' to parameter of type 'struct ceph_databuf *' [-Werror,-Wincompatible-pointer-types]
625 | fret = ceph_fscrypt_decrypt_pages(inode, &page[pgidx],
| ^~~~~~~~~~~~
fs/ceph/crypto.c:545:74: note: passing argument to parameter 'dbuf' here
545 | int ceph_fscrypt_decrypt_pages(struct inode *inode, struct ceph_databuf *dbuf,
| ^
>> fs/ceph/crypto.c:644:35: error: use of undeclared identifier 'op'
644 | struct ceph_sparse_extent *map = op->extent.sparse_ext;
| ^
>> fs/ceph/crypto.c:645:42: error: use of undeclared identifier 'inode'
645 | struct ceph_inode_info *ci = ceph_inode(inode);
| ^
fs/ceph/crypto.c:647:16: error: use of undeclared identifier 'op'
647 | u32 ext_cnt = op->extent.sparse_ext_cnt;
| ^
>> fs/ceph/crypto.c:671:45: error: use of undeclared identifier 'page'
671 | fret = ceph_fscrypt_decrypt_pages(inode, &page[pgidx],
| ^
fs/ceph/crypto.c:671:37: error: use of undeclared identifier 'inode'
671 | fret = ceph_fscrypt_decrypt_pages(inode, &page[pgidx],
| ^
>> fs/ceph/crypto.c:672:8: error: use of undeclared identifier 'off'
672 | off + pgsoff, ext->len);
| ^
>> fs/ceph/crypto.c:640:5: warning: no previous prototype for function 'ceph_decrypt_block' [-Wmissing-prototypes]
640 | int ceph_decrypt_block(struct netfs_io_request *rreq, loff_t pos, size_t len,
| ^
fs/ceph/crypto.c:640:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
640 | int ceph_decrypt_block(struct netfs_io_request *rreq, loff_t pos, size_t len,
| ^
| static
>> fs/ceph/crypto.c:686:5: warning: no previous prototype for function 'ceph_encrypt_block' [-Wmissing-prototypes]
686 | int ceph_encrypt_block(struct netfs_io_request *wreq, loff_t pos, size_t len,
| ^
fs/ceph/crypto.c:686:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
686 | int ceph_encrypt_block(struct netfs_io_request *wreq, loff_t pos, size_t len,
| ^
| static
3 warnings and 8 errors generated.
--
fs/ceph/file.c:1129:44: warning: variable 'pages' is uninitialized when used here [-Wuninitialized]
1129 | ceph_zero_page_vector_range(zoff, zlen, pages);
| ^~~~~
fs/ceph/file.c:1021:22: note: initialize the variable 'pages' to silence this warning
1021 | struct page **pages;
| ^
| = NULL
>> fs/ceph/file.c:1664:34: error: use of undeclared identifier 'len'
1664 | netfs_subreq_terminated(subreq, len, err);
| ^
>> fs/ceph/file.c:1761:25: error: incompatible pointer types passing 'struct ceph_osd_request *' to parameter of type 'struct netfs_io_subrequest *' [-Werror,-Wincompatible-pointer-types]
1761 | ceph_upload_to_server(req);
| ^~~
fs/ceph/file.c:1667:63: note: passing argument to parameter 'subreq' here
1667 | static void ceph_upload_to_server(struct netfs_io_subrequest *subreq)
| ^
1 warning and 2 errors generated.
vim +901 fs/ceph/addr.c
890
891 /*
892 * Notification that a previously read-only page is about to become writable.
893 * Note that the caller indicates a single page of a multipage folio.
894 */
895 static vm_fault_t ceph_page_mkwrite(struct vm_fault *vmf)
896 {
897 struct ceph_snap_context *snapc;
898 struct inode *inode = file_inode(vmf->vma->vm_file);
899 struct ceph_inode_info *ci = ceph_inode(inode);
900
> 901 return netfs_page_mkwrite(vmf, ci->head_snapc);
902 }
903
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-01-17 5:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202401171301.BfWU6V0h-lkp@intel.com \
--to=lkp@intel.com \
--cc=dhowells@redhat.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox