[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205091929.FnbrVrc0-lkp@intel.com>
Date: Mon, 9 May 2022 19:36:50 +0800
From: kernel test robot <lkp@...el.com>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [willy-pagecache:for-next 34/106] kernel/events/uprobes.c:793:22:
error: 'struct address_space' has no member named 'ops'; did you mean
'a_ops'?
tree: git://git.infradead.org/users/willy/pagecache for-next
head: aa4aa19cc518a24bec4de5ff7caaf212d0091805
commit: 0e03bd90d662c215ce99813a175df0e4fd074f5c [34/106] fs: Introduce aops->read_folio
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220509/202205091929.FnbrVrc0-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.3.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
git remote add willy-pagecache git://git.infradead.org/users/willy/pagecache
git fetch --no-tags willy-pagecache for-next
git checkout 0e03bd90d662c215ce99813a175df0e4fd074f5c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
Note: the willy-pagecache/for-next HEAD aa4aa19cc518a24bec4de5ff7caaf212d0091805 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
kernel/events/uprobes.c: In function '__copy_insn':
>> kernel/events/uprobes.c:793:22: error: 'struct address_space' has no member named 'ops'; did you mean 'a_ops'?
793 | if (mapping->ops->read_folio || mapping->a_ops->readpage)
| ^~~
| a_ops
vim +793 kernel/events/uprobes.c
783
784 static int __copy_insn(struct address_space *mapping, struct file *filp,
785 void *insn, int nbytes, loff_t offset)
786 {
787 struct page *page;
788 /*
789 * Ensure that the page that has the original instruction is populated
790 * and in page-cache. If ->readpage == NULL it must be shmem_mapping(),
791 * see uprobe_register().
792 */
> 793 if (mapping->ops->read_folio || mapping->a_ops->readpage)
794 page = read_mapping_page(mapping, offset >> PAGE_SHIFT, filp);
795 else
796 page = shmem_read_mapping_page(mapping, offset >> PAGE_SHIFT);
797 if (IS_ERR(page))
798 return PTR_ERR(page);
799
800 copy_from_page(page, offset, insn, nbytes);
801 put_page(page);
802
803 return 0;
804 }
805
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists