From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gnuweeb.org (Postfix) with ESMTPS id 7503B830F1 for ; Fri, 17 Feb 2023 00:08:55 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=l2lC1pPP; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676592535; x=1708128535; h=date:from:to:cc:subject:message-id:mime-version; bh=oX3UJJxczaJaa3AQZFrMbc+5ZKaBOnqSwKh8UCXEAKQ=; b=l2lC1pPP7ZIxBdJuVWfKs6MiQEs0qHDqhxP1Da55xNfeus76kRPz2Fou KVK1n9Q25n3LvexeTSzPz2pjnbFeKt7XiMJcm9lKQTZ+H/QvZdhQNdg6p /wZoO8W55izG7aziSln9EIOmMksumEJR4WZ38LW2WSYu2nREli6bTUE4Z n+1+ihEmTTksexZxvwAu2IL+iGF+e3flp/YT2GeYRT34gpDN6DPWu97cE XTBwaQBzre8YNOztadaNYU0Brp8YN3B645yVlW+UhD2o4y2x3ZS89nOnC AaUnyACdQCc7FfjllefbtnsqWfthjF/NWE5nzn3e5NlOTmgwPTID42lM8 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="394346072" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="394346072" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 16:08:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="999258179" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="999258179" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 16 Feb 2023 16:08:51 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pSoJ1-000AyL-1C; Fri, 17 Feb 2023 00:08:51 +0000 Date: Fri, 17 Feb 2023 08:07:54 +0800 From: kernel test robot To: David Howells Cc: oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List Subject: [ammarfaizi2-block:dhowells/linux-fs/iov-extract-3 2/5] mm/filemap.c:2862:43: error: implicit declaration of function 'pipe_head_buf' Message-ID: <202302170756.V4OVVYDf-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: 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/202302170756.V4OVVYDf-lkp@intel.com/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 | Link: https://lore.kernel.org/oe-kbuild-all/202302170756.V4OVVYDf-lkp@intel.com/ 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