Messages in this thread | | | Date | Thu, 17 Mar 2022 14:39:41 +0800 | From | kernel test robot <> | Subject | [mingo-tip:master 221/2335] drivers/xen/grant-table.c:411:22: error: implicit declaration of function 'xen_gfn_to_pfn' |
| |
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master head: 85293bf3fca6d85608cff1447ce3097583f15fab commit: dbfd8a446611c67366513c5798b018f9d1b6123b [221/2335] headers/prep: Rename API: gfn_to_pfn() => xen_gfn_to_pfn() config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220317/202203171426.IezxkFRk-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6ec1e3d798f8eab43fb3a91028c6ab04e115fcb) 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=dbfd8a446611c67366513c5798b018f9d1b6123b 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 dbfd8a446611c67366513c5798b018f9d1b6123b # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/
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/xen/grant-table.c:411:22: error: implicit declaration of function 'xen_gfn_to_pfn' [-Werror,-Wimplicit-function-declaration] page = pfn_to_page(xen_gfn_to_pfn(gfn)); ^ include/asm-generic/memory_model.h:53:21: note: expanded from macro 'pfn_to_page' #define pfn_to_page __pfn_to_page ^ drivers/xen/grant-table.c:411:22: note: did you mean 'gfn_to_pfn'? include/asm-generic/memory_model.h:53:21: note: expanded from macro 'pfn_to_page' #define pfn_to_page __pfn_to_page ^ arch/x86/include/asm/xen/page.h:251:29: note: 'gfn_to_pfn' declared here static inline unsigned long gfn_to_pfn(unsigned long gfn) ^ 1 error generated.
vim +/xen_gfn_to_pfn +411 drivers/xen/grant-table.c
399 400 static void gnttab_add_deferred(grant_ref_t ref, bool readonly, 401 struct page *page) 402 { 403 struct deferred_entry *entry; 404 gfp_t gfp = (in_atomic() || irqs_disabled()) ? GFP_ATOMIC : GFP_KERNEL; 405 const char *what = KERN_WARNING "leaking"; 406 407 entry = kmalloc(sizeof(*entry), gfp); 408 if (!page) { 409 unsigned long gfn = gnttab_interface->read_frame(ref); 410 > 411 page = pfn_to_page(xen_gfn_to_pfn(gfn)); 412 get_page(page); 413 } 414 415 if (entry) { 416 unsigned long flags; 417 418 entry->ref = ref; 419 entry->ro = readonly; 420 entry->page = page; 421 entry->warn_delay = 60; 422 spin_lock_irqsave(&gnttab_list_lock, flags); 423 list_add_tail(&entry->list, &deferred_list); 424 if (!timer_pending(&deferred_timer)) { 425 deferred_timer.expires = jiffies + HZ; 426 add_timer(&deferred_timer); 427 } 428 spin_unlock_irqrestore(&gnttab_list_lock, flags); 429 what = KERN_DEBUG "deferring"; 430 } 431 printk("%s g.e. %#x (pfn %#lx)\n", 432 what, ref, page ? page_to_pfn(page) : -1); 433 } 434
--- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |