All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android-4.19-stable 2/2] fs/verity/enable.c:26:9: error: implicit declaration of function 'find_get_page_flags'
@ 2023-04-04  4:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-04  4:26 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android-4.19-stable
head:   e8676808abe2a4dd79bd76700719c360d84b343d
commit: e8676808abe2a4dd79bd76700719c360d84b343d [2/2] UPSTREAM: fsverity: don't drop pagecache at end of FS_IOC_ENABLE_VERITY
config: x86_64-randconfig-a003-20230403 (https://download.01.org/0day-ci/archive/20230404/202304041242.uxe5ITCa-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android-4.19-stable
        git checkout e8676808abe2a4dd79bd76700719c360d84b343d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/verity/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304041242.uxe5ITCa-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> fs/verity/enable.c:26:9: error: implicit declaration of function 'find_get_page_flags' [-Werror,-Wimplicit-function-declaration]
           page = find_get_page_flags(filp->f_mapping, index, FGP_ACCESSED);
                  ^
>> fs/verity/enable.c:26:53: error: use of undeclared identifier 'FGP_ACCESSED'
           page = find_get_page_flags(filp->f_mapping, index, FGP_ACCESSED);
                                                              ^
>> fs/verity/enable.c:27:16: error: implicit declaration of function 'PageUptodate' [-Werror,-Wimplicit-function-declaration]
           if (!page || !PageUptodate(page)) {
                         ^
>> fs/verity/enable.c:29:4: error: implicit declaration of function 'put_page' [-Werror,-Wimplicit-function-declaration]
                           put_page(page);
                           ^
>> fs/verity/enable.c:31:4: error: implicit declaration of function 'page_cache_sync_readahead' [-Werror,-Wimplicit-function-declaration]
                           page_cache_sync_readahead(filp->f_mapping, ra, filp,
                           ^
>> fs/verity/enable.c:33:10: error: implicit declaration of function 'read_mapping_page' [-Werror,-Wimplicit-function-declaration]
                   page = read_mapping_page(filp->f_mapping, index, NULL);
                          ^
>> fs/verity/enable.c:33:8: warning: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion]
                   page = read_mapping_page(filp->f_mapping, index, NULL);
                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/verity/enable.c:37:6: error: implicit declaration of function 'PageReadahead' [-Werror,-Wimplicit-function-declaration]
           if (PageReadahead(page))
               ^
>> fs/verity/enable.c:38:3: error: implicit declaration of function 'page_cache_async_readahead' [-Werror,-Wimplicit-function-declaration]
                   page_cache_async_readahead(filp->f_mapping, ra, filp, page,
                   ^
   fs/verity/enable.c:108:3: error: implicit declaration of function 'put_page' [-Werror,-Wimplicit-function-declaration]
                   put_page(src_page);
                   ^
   1 warning and 9 errors generated.


vim +/find_get_page_flags +26 fs/verity/enable.c

43005f9bdbe63b4 Eric Biggers 2019-07-22  15  
9630eacb1ee5723 Eric Biggers 2020-01-06  16  /*
9630eacb1ee5723 Eric Biggers 2020-01-06  17   * Read a file data page for Merkle tree construction.  Do aggressive readahead,
9630eacb1ee5723 Eric Biggers 2020-01-06  18   * since we're sequentially reading the entire file.
9630eacb1ee5723 Eric Biggers 2020-01-06  19   */
9630eacb1ee5723 Eric Biggers 2020-01-06  20  static struct page *read_file_data_page(struct file *filp, pgoff_t index,
9630eacb1ee5723 Eric Biggers 2020-01-06  21  					struct file_ra_state *ra,
9630eacb1ee5723 Eric Biggers 2020-01-06  22  					unsigned long remaining_pages)
9630eacb1ee5723 Eric Biggers 2020-01-06  23  {
9630eacb1ee5723 Eric Biggers 2020-01-06  24  	struct page *page;
9630eacb1ee5723 Eric Biggers 2020-01-06  25  
9630eacb1ee5723 Eric Biggers 2020-01-06 @26  	page = find_get_page_flags(filp->f_mapping, index, FGP_ACCESSED);
9630eacb1ee5723 Eric Biggers 2020-01-06 @27  	if (!page || !PageUptodate(page)) {
9630eacb1ee5723 Eric Biggers 2020-01-06  28  		if (page)
9630eacb1ee5723 Eric Biggers 2020-01-06 @29  			put_page(page);
9630eacb1ee5723 Eric Biggers 2020-01-06  30  		else
9630eacb1ee5723 Eric Biggers 2020-01-06 @31  			page_cache_sync_readahead(filp->f_mapping, ra, filp,
9630eacb1ee5723 Eric Biggers 2020-01-06  32  						  index, remaining_pages);
9630eacb1ee5723 Eric Biggers 2020-01-06 @33  		page = read_mapping_page(filp->f_mapping, index, NULL);
9630eacb1ee5723 Eric Biggers 2020-01-06  34  		if (IS_ERR(page))
9630eacb1ee5723 Eric Biggers 2020-01-06  35  			return page;
9630eacb1ee5723 Eric Biggers 2020-01-06  36  	}
9630eacb1ee5723 Eric Biggers 2020-01-06 @37  	if (PageReadahead(page))
9630eacb1ee5723 Eric Biggers 2020-01-06 @38  		page_cache_async_readahead(filp->f_mapping, ra, filp, page,
9630eacb1ee5723 Eric Biggers 2020-01-06  39  					   index, remaining_pages);
9630eacb1ee5723 Eric Biggers 2020-01-06  40  	return page;
9630eacb1ee5723 Eric Biggers 2020-01-06  41  }
9630eacb1ee5723 Eric Biggers 2020-01-06  42  

:::::: The code at line 26 was first introduced by commit
:::::: 9630eacb1ee572392628c4b96daa8031e84af56e fs-verity: implement readahead for FS_IOC_ENABLE_VERITY

:::::: TO: Eric Biggers <ebiggers@google.com>
:::::: CC: Jaegeuk Kim <jaegeuk@google.com>

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

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

only message in thread, other threads:[~2023-04-04  4:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04  4:26 [android-common:android-4.19-stable 2/2] fs/verity/enable.c:26:9: error: implicit declaration of function 'find_get_page_flags' 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.