* [rgushchin:kmemcg_id 107/199] drivers/mtd/devices/mtdram.c:77:11: error: implicit declaration of function '__pfn_to_phys'
@ 2020-11-11 1:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-11 1:11 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3957 bytes --]
tree: https://github.com/rgushchin/linux.git kmemcg_id
head: 2da7aac20bf18ad6bfd59b256f9295263a11310e
commit: 5517b8a8293b9e01205cf58dc884191a110aff29 [107/199] m68k/mm: enable use of generic memory_model.h for !DISCONTIGMEM
config: m68k-randconfig-r033-20201110 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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
# https://github.com/rgushchin/linux/commit/5517b8a8293b9e01205cf58dc884191a110aff29
git remote add rgushchin https://github.com/rgushchin/linux.git
git fetch --no-tags rgushchin kmemcg_id
git checkout 5517b8a8293b9e01205cf58dc884191a110aff29
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/mtd/devices/mtdram.c: In function 'ram_point':
>> drivers/mtd/devices/mtdram.c:77:11: error: implicit declaration of function '__pfn_to_phys' [-Werror=implicit-function-declaration]
77 | *phys = __pfn_to_phys(pfn0) + page_ofs;
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/__pfn_to_phys +77 drivers/mtd/devices/mtdram.c
^1da177e4c3f415 Linus Torvalds 2005-04-16 64
c13cbf3b5086d4e Joern Engel 2005-04-21 65 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len,
a98889f3d888299 Jared Hulbert 2008-04-29 66 size_t *retlen, void **virt, resource_size_t *phys)
^1da177e4c3f415 Linus Torvalds 2005-04-16 67 {
a98889f3d888299 Jared Hulbert 2008-04-29 68 *virt = mtd->priv + from;
^1da177e4c3f415 Linus Torvalds 2005-04-16 69 *retlen = len;
877b58ebc038f5e Nicolas Pitre 2017-10-30 70
877b58ebc038f5e Nicolas Pitre 2017-10-30 71 if (phys) {
877b58ebc038f5e Nicolas Pitre 2017-10-30 72 /* limit retlen to the number of contiguous physical pages */
877b58ebc038f5e Nicolas Pitre 2017-10-30 73 unsigned long page_ofs = offset_in_page(*virt);
877b58ebc038f5e Nicolas Pitre 2017-10-30 74 void *addr = *virt - page_ofs;
877b58ebc038f5e Nicolas Pitre 2017-10-30 75 unsigned long pfn1, pfn0 = vmalloc_to_pfn(addr);
877b58ebc038f5e Nicolas Pitre 2017-10-30 76
877b58ebc038f5e Nicolas Pitre 2017-10-30 @77 *phys = __pfn_to_phys(pfn0) + page_ofs;
877b58ebc038f5e Nicolas Pitre 2017-10-30 78 len += page_ofs;
877b58ebc038f5e Nicolas Pitre 2017-10-30 79 while (len > PAGE_SIZE) {
877b58ebc038f5e Nicolas Pitre 2017-10-30 80 len -= PAGE_SIZE;
877b58ebc038f5e Nicolas Pitre 2017-10-30 81 addr += PAGE_SIZE;
877b58ebc038f5e Nicolas Pitre 2017-10-30 82 pfn0++;
877b58ebc038f5e Nicolas Pitre 2017-10-30 83 pfn1 = vmalloc_to_pfn(addr);
877b58ebc038f5e Nicolas Pitre 2017-10-30 84 if (pfn1 != pfn0) {
877b58ebc038f5e Nicolas Pitre 2017-10-30 85 *retlen = addr - *virt;
877b58ebc038f5e Nicolas Pitre 2017-10-30 86 break;
877b58ebc038f5e Nicolas Pitre 2017-10-30 87 }
877b58ebc038f5e Nicolas Pitre 2017-10-30 88 }
877b58ebc038f5e Nicolas Pitre 2017-10-30 89 }
877b58ebc038f5e Nicolas Pitre 2017-10-30 90
^1da177e4c3f415 Linus Torvalds 2005-04-16 91 return 0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 92 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 93
:::::: The code at line 77 was first introduced by commit
:::::: 877b58ebc038f5e3f0afc5674fc35db75eaaa117 mtd: mtdram: properly handle the phys argument in the point method
:::::: TO: Nicolas Pitre <nicolas.pitre@linaro.org>
:::::: CC: Richard Weinberger <richard@nod.at>
---
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: 22425 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-11 1:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 1:11 [rgushchin:kmemcg_id 107/199] drivers/mtd/devices/mtdram.c:77:11: error: implicit declaration of function '__pfn_to_phys' 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.