All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:fscache-iter-3 2/8] fs/fscache/io.c:164:5: warning: no previous prototype for '__fscache_deprecated_read_page'
@ 2021-09-14 20:31 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-14 20:31 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3364 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-3
head:   3af24cee1e80003b6c8993fa8a601cc0ab9fd6c6
commit: b5606e77b36d6218ef5367fcdbebcbfa1af091bc [2/8] fscache: Implement an alternate I/O interface to replace the old API
config: arc-randconfig-r043-20210915 (attached as .config)
compiler: arc-elf-gcc (GCC) 11.2.0
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=b5606e77b36d6218ef5367fcdbebcbfa1af091bc
        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-3
        git checkout b5606e77b36d6218ef5367fcdbebcbfa1af091bc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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 '__fscache_deprecated_read_page' [-Wmissing-prototypes]
     164 | int __fscache_deprecated_read_page(struct fscache_cookie *cookie, struct page *page)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/fscache/io.c:194:5: warning: no previous prototype for '__fscache_deprecated_write_page' [-Wmissing-prototypes]
     194 | int __fscache_deprecated_write_page(struct fscache_cookie *cookie, struct page *page)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fscache/io.c: In function '__fscache_deprecated_write_page':
   fs/fscache/io.c:200:16: warning: variable 'len' set but not used [-Wunused-but-set-variable]
     200 |         size_t len;
         |                ^~~
   fs/fscache/io.c:199:16: warning: variable 'start' set but not used [-Wunused-but-set-variable]
     199 |         loff_t start;
         |                ^~~~~


vim +/__fscache_deprecated_read_page +164 fs/fscache/io.c

   160	
   161	/*
   162	 * Deprecated page reading interface.
   163	 */
 > 164	int __fscache_deprecated_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_deprecated_read_page);
   190	
   191	/*
   192	 * Deprecated page writing interface.
   193	 */
 > 194	int __fscache_deprecated_write_page(struct fscache_cookie *cookie, struct page *page)

---
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: 32747 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dhowells-fs:fscache-iter-3 2/8] fs/fscache/io.c:164:5: warning: no previous prototype for '__fscache_deprecated_read_page'
@ 2021-09-14 20:31 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-14 20:31 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3442 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-3
head:   3af24cee1e80003b6c8993fa8a601cc0ab9fd6c6
commit: b5606e77b36d6218ef5367fcdbebcbfa1af091bc [2/8] fscache: Implement an alternate I/O interface to replace the old API
config: arc-randconfig-r043-20210915 (attached as .config)
compiler: arc-elf-gcc (GCC) 11.2.0
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=b5606e77b36d6218ef5367fcdbebcbfa1af091bc
        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-3
        git checkout b5606e77b36d6218ef5367fcdbebcbfa1af091bc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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 '__fscache_deprecated_read_page' [-Wmissing-prototypes]
     164 | int __fscache_deprecated_read_page(struct fscache_cookie *cookie, struct page *page)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/fscache/io.c:194:5: warning: no previous prototype for '__fscache_deprecated_write_page' [-Wmissing-prototypes]
     194 | int __fscache_deprecated_write_page(struct fscache_cookie *cookie, struct page *page)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fscache/io.c: In function '__fscache_deprecated_write_page':
   fs/fscache/io.c:200:16: warning: variable 'len' set but not used [-Wunused-but-set-variable]
     200 |         size_t len;
         |                ^~~
   fs/fscache/io.c:199:16: warning: variable 'start' set but not used [-Wunused-but-set-variable]
     199 |         loff_t start;
         |                ^~~~~


vim +/__fscache_deprecated_read_page +164 fs/fscache/io.c

   160	
   161	/*
   162	 * Deprecated page reading interface.
   163	 */
 > 164	int __fscache_deprecated_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_deprecated_read_page);
   190	
   191	/*
   192	 * Deprecated page writing interface.
   193	 */
 > 194	int __fscache_deprecated_write_page(struct fscache_cookie *cookie, struct page *page)

---
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: 32747 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-14 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 20:31 [dhowells-fs:fscache-iter-3 2/8] fs/fscache/io.c:164:5: warning: no previous prototype for '__fscache_deprecated_read_page' kernel test robot
2021-09-14 20:31 ` kernel test robot

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.