GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:dhowells/linux-fs/iov-extract-3 2/5] mm/filemap.c:2862:43: error: implicit declaration of function 'pipe_head_buf'
@ 2023-02-17  0:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-17  0:07 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List

tree:   https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/iov-extract-3
head:   c750b59474eb9ca0a3bfc963efd6fadb2ace467a
commit: 2ca06cb9c7f2926fba1008439283685c1f9dc0a4 [2/5] splice: Add a func to do a splice from a buffered file without ITER_PIPE
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20230217/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 12.1.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://github.com/ammarfaizi2/linux-block/commit/2ca06cb9c7f2926fba1008439283685c1f9dc0a4
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/iov-extract-3
        git checkout 2ca06cb9c7f2926fba1008439283685c1f9dc0a4
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

Note: the ammarfaizi2-block/dhowells/linux-fs/iov-extract-3 HEAD c750b59474eb9ca0a3bfc963efd6fadb2ace467a builds fine.
      It only hurts bisectability.

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

   mm/filemap.c: In function 'splice_folio_into_pipe':
>> mm/filemap.c:2862:43: error: implicit declaration of function 'pipe_head_buf' [-Werror=implicit-function-declaration]
    2862 |                 struct pipe_buffer *buf = pipe_head_buf(pipe);
         |                                           ^~~~~~~~~~~~~
>> mm/filemap.c:2862:43: warning: initialization of 'struct pipe_buffer *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   cc1: some warnings being treated as errors


vim +/pipe_head_buf +2862 mm/filemap.c

  2846	
  2847	/*
  2848	 * Splice subpages from a folio into a pipe.
  2849	 */
  2850	size_t splice_folio_into_pipe(struct pipe_inode_info *pipe,
  2851				      struct folio *folio, loff_t fpos, size_t size)
  2852	{
  2853		struct page *page;
  2854		size_t spliced = 0, offset = offset_in_folio(folio, fpos);
  2855	
  2856		page = folio_page(folio, offset / PAGE_SIZE);
  2857		size = min(size, folio_size(folio) - offset);
  2858		offset %= PAGE_SIZE;
  2859	
  2860		while (spliced < size &&
  2861		       !pipe_full(pipe->head, pipe->tail, pipe->max_usage)) {
> 2862			struct pipe_buffer *buf = pipe_head_buf(pipe);
  2863			size_t part = min_t(size_t, PAGE_SIZE - offset, size - spliced);
  2864	
  2865			*buf = (struct pipe_buffer) {
  2866				.ops	= &page_cache_pipe_buf_ops,
  2867				.page	= page,
  2868				.offset	= offset,
  2869				.len	= part,
  2870			};
  2871			folio_get(folio);
  2872			pipe->head++;
  2873			page++;
  2874			spliced += part;
  2875			offset = 0;
  2876		}
  2877	
  2878		return spliced;
  2879	}
  2880	

-- 
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-02-17  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17  0:07 [ammarfaizi2-block:dhowells/linux-fs/iov-extract-3 2/5] mm/filemap.c:2862:43: error: implicit declaration of function 'pipe_head_buf' 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