lkml.org 
[lkml]   [2022]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:master 2219/2335] arch/sparc/include/asm/page_64.h:177:33: error: implicit declaration of function 'pfn_valid'; did you mean 'gid_valid'?
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 85293bf3fca6d85608cff1447ce3097583f15fab
commit: 96fe05cecfceff760842012750f6955637aa928d [2219/2335] headers/deps: mm: Optimize <linux/mm_api.h> dependencies, remove <linux/mmzone_api.h> dependency
config: sparc64-buildonly-randconfig-r002-20220314 (https://download.01.org/0day-ci/archive/20220316/202203161013.ol6kb6T6-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=96fe05cecfceff760842012750f6955637aa928d
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout 96fe05cecfceff760842012750f6955637aa928d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/mtd/nand/raw/

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 >>):

In file included from arch/sparc/include/asm/page.h:8,
from arch/sparc/include/asm/thread_info_64.h:27,
from arch/sparc/include/asm/thread_info.h:5,
from include/linux/thread_info.h:63,
from arch/sparc/include/asm/current.h:15,
from arch/sparc/include/asm/smp_64.h:33,
from arch/sparc/include/asm/smp.h:5,
from include/linux/smp_api.h:15,
from include/linux/lockdep_api.h:27,
from include/linux/timer.h:5,
from include/linux/workqueue_types.h:9,
from include/linux/workqueue.h:5,
from include/linux/kobject_api.h:30,
from include/linux/of_api.h:26,
from drivers/mtd/nand/raw/nand_base.c:28:
drivers/mtd/nand/raw/nand_base.c: In function 'nand_do_read_ops':
>> arch/sparc/include/asm/page_64.h:177:33: error: implicit declaration of function 'pfn_valid'; did you mean 'gid_valid'? [-Werror=implicit-function-declaration]
177 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
drivers/mtd/nand/raw/nand_base.c:3448:43: note: in expansion of macro 'virt_addr_valid'
3448 | use_bounce_buf = !virt_addr_valid(buf) ||
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +177 arch/sparc/include/asm/page_64.h

f5e706ad886b6a include/asm-sparc/page_64.h Sam Ravnborg 2008-07-17 176
f5e706ad886b6a include/asm-sparc/page_64.h Sam Ravnborg 2008-07-17 @177 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
f5e706ad886b6a include/asm-sparc/page_64.h Sam Ravnborg 2008-07-17 178

:::::: The code at line 177 was first introduced by commit
:::::: f5e706ad886b6a5eb59637830110b09ccebf01c5 sparc: join the remaining header files

:::::: TO: Sam Ravnborg <sam@ravnborg.org>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2022-03-16 04:05    [W:0.022 / U:1.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site