From: kernel test robot <lkp@intel.com> To: David Howells <dhowells@redhat.com> Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [dhowells-fs:fscache-iter-2 2/67] fs/fscache/io.c:164:5: warning: no previous prototype for function '__fscache_fallback_read_page' Date: Wed, 29 Sep 2021 05:17:39 +0800 [thread overview] Message-ID: <202109290532.0TMfYONE-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 3880 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-2 head: 23676c28d1a9add6ea09f19ca89b71be994a4b79 commit: b5cd0254309847abfb2eebfbcbd4415d61c5af1b [2/67] fscache: Implement a fallback I/O interface to replace the old API config: x86_64-randconfig-a002-20210928 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=b5cd0254309847abfb2eebfbcbd4415d61c5af1b git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git git fetch --no-tags dhowells-fs fscache-iter-2 git checkout b5cd0254309847abfb2eebfbcbd4415d61c5af1b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All warnings (new ones prefixed by >>): >> fs/fscache/io.c:164:5: warning: no previous prototype for function '__fscache_fallback_read_page' [-Wmissing-prototypes] int __fscache_fallback_read_page(struct fscache_cookie *cookie, struct page *page) ^ fs/fscache/io.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __fscache_fallback_read_page(struct fscache_cookie *cookie, struct page *page) ^ static >> fs/fscache/io.c:199:9: warning: variable 'start' set but not used [-Wunused-but-set-variable] loff_t start; ^ >> fs/fscache/io.c:200:9: warning: variable 'len' set but not used [-Wunused-but-set-variable] size_t len; ^ >> fs/fscache/io.c:194:5: warning: no previous prototype for function '__fscache_fallback_write_page' [-Wmissing-prototypes] int __fscache_fallback_write_page(struct fscache_cookie *cookie, struct page *page) ^ fs/fscache/io.c:194:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __fscache_fallback_write_page(struct fscache_cookie *cookie, struct page *page) ^ static 4 warnings generated. vim +/__fscache_fallback_read_page +164 fs/fscache/io.c 160 161 /* 162 * Fallback page reading interface. 163 */ > 164 int __fscache_fallback_read_page(struct fscache_cookie *cookie, struct page *page) 165 { 166 struct netfs_cache_resources cres; 167 struct iov_iter iter; 168 struct bio_vec bvec[1]; 169 int ret; 170 171 _enter("%lx", page->index); 172 173 memset(&cres, 0, sizeof(cres)); 174 bvec[0].bv_page = page; 175 bvec[0].bv_offset = 0; 176 bvec[0].bv_len = PAGE_SIZE; 177 iov_iter_bvec(&iter, READ, bvec, ARRAY_SIZE(bvec), PAGE_SIZE); 178 179 ret = fscache_begin_read_operation(&cres, cookie); 180 if (ret < 0) 181 return ret; 182 183 ret = fscache_read(&cres, page_offset(page), &iter, NETFS_READ_HOLE_FAIL, 184 NULL, NULL); 185 fscache_end_operation(&cres); 186 _leave(" = %d", ret); 187 return ret; 188 } 189 EXPORT_SYMBOL(__fscache_fallback_read_page); 190 191 /* 192 * Fallback page writing interface. 193 */ > 194 int __fscache_fallback_write_page(struct fscache_cookie *cookie, struct page *page) 195 { 196 struct netfs_cache_resources cres; 197 struct iov_iter iter; 198 struct bio_vec bvec[1]; > 199 loff_t start; > 200 size_t len; --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 34598 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [dhowells-fs:fscache-iter-2 2/67] fs/fscache/io.c:164:5: warning: no previous prototype for function '__fscache_fallback_read_page' Date: Wed, 29 Sep 2021 05:17:39 +0800 [thread overview] Message-ID: <202109290532.0TMfYONE-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 3972 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-2 head: 23676c28d1a9add6ea09f19ca89b71be994a4b79 commit: b5cd0254309847abfb2eebfbcbd4415d61c5af1b [2/67] fscache: Implement a fallback I/O interface to replace the old API config: x86_64-randconfig-a002-20210928 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=b5cd0254309847abfb2eebfbcbd4415d61c5af1b git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git git fetch --no-tags dhowells-fs fscache-iter-2 git checkout b5cd0254309847abfb2eebfbcbd4415d61c5af1b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All warnings (new ones prefixed by >>): >> fs/fscache/io.c:164:5: warning: no previous prototype for function '__fscache_fallback_read_page' [-Wmissing-prototypes] int __fscache_fallback_read_page(struct fscache_cookie *cookie, struct page *page) ^ fs/fscache/io.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __fscache_fallback_read_page(struct fscache_cookie *cookie, struct page *page) ^ static >> fs/fscache/io.c:199:9: warning: variable 'start' set but not used [-Wunused-but-set-variable] loff_t start; ^ >> fs/fscache/io.c:200:9: warning: variable 'len' set but not used [-Wunused-but-set-variable] size_t len; ^ >> fs/fscache/io.c:194:5: warning: no previous prototype for function '__fscache_fallback_write_page' [-Wmissing-prototypes] int __fscache_fallback_write_page(struct fscache_cookie *cookie, struct page *page) ^ fs/fscache/io.c:194:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __fscache_fallback_write_page(struct fscache_cookie *cookie, struct page *page) ^ static 4 warnings generated. vim +/__fscache_fallback_read_page +164 fs/fscache/io.c 160 161 /* 162 * Fallback page reading interface. 163 */ > 164 int __fscache_fallback_read_page(struct fscache_cookie *cookie, struct page *page) 165 { 166 struct netfs_cache_resources cres; 167 struct iov_iter iter; 168 struct bio_vec bvec[1]; 169 int ret; 170 171 _enter("%lx", page->index); 172 173 memset(&cres, 0, sizeof(cres)); 174 bvec[0].bv_page = page; 175 bvec[0].bv_offset = 0; 176 bvec[0].bv_len = PAGE_SIZE; 177 iov_iter_bvec(&iter, READ, bvec, ARRAY_SIZE(bvec), PAGE_SIZE); 178 179 ret = fscache_begin_read_operation(&cres, cookie); 180 if (ret < 0) 181 return ret; 182 183 ret = fscache_read(&cres, page_offset(page), &iter, NETFS_READ_HOLE_FAIL, 184 NULL, NULL); 185 fscache_end_operation(&cres); 186 _leave(" = %d", ret); 187 return ret; 188 } 189 EXPORT_SYMBOL(__fscache_fallback_read_page); 190 191 /* 192 * Fallback page writing interface. 193 */ > 194 int __fscache_fallback_write_page(struct fscache_cookie *cookie, struct page *page) 195 { 196 struct netfs_cache_resources cres; 197 struct iov_iter iter; 198 struct bio_vec bvec[1]; > 199 loff_t start; > 200 size_t len; --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 34598 bytes --]
next reply other threads:[~2021-09-28 21:18 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-28 21:17 kernel test robot [this message] 2021-09-28 21:17 ` [dhowells-fs:fscache-iter-2 2/67] fs/fscache/io.c:164:5: warning: no previous prototype for function '__fscache_fallback_read_page' kernel test robot
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=202109290532.0TMfYONE-lkp@intel.com \ --to=lkp@intel.com \ --cc=dhowells@redhat.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=llvm@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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.