All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:5.10/yocto 1/1] include/linux/highmem-internal.h:63:9: error: implicit declaration of function '__kmap_local_page_prot'
@ 2022-01-14 11:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-14 11:35 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7658 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.10/yocto
head:   172b4cf64e47fcf419335e208331e77b65578223
commit: 172b4cf64e47fcf419335e208331e77b65578223 [1/1] Merge branch 'my/v5.10.65' into lts2020/yocto
config: powerpc-randconfig-r026-20220114 (https://download.01.org/0day-ci/archive/20220114/202201141954.5HWBw38j-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82c8aca93488730ce8f66101e0f3538f14b551dd)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/intel/linux-intel-lts/commit/172b4cf64e47fcf419335e208331e77b65578223
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-lts 5.10/yocto
        git checkout 172b4cf64e47fcf419335e208331e77b65578223
        # 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=powerpc prepare

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/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:22:
   In file included from include/linux/writeback.h:14:
   In file included from include/linux/blk-cgroup.h:23:
   In file included from include/linux/blkdev.h:14:
   In file included from include/linux/pagemap.h:11:
   In file included from include/linux/highmem.h:14:
>> include/linux/highmem-internal.h:63:9: error: implicit declaration of function '__kmap_local_page_prot' [-Werror,-Wimplicit-function-declaration]
           return __kmap_local_page_prot(page, kmap_prot);
                  ^
   include/linux/highmem-internal.h:63:9: note: did you mean 'kmap_local_page'?
   include/linux/highmem-internal.h:61:21: note: 'kmap_local_page' declared here
   static inline void *kmap_local_page(struct page *page)
                       ^
   include/linux/highmem-internal.h:63:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
           return __kmap_local_page_prot(page, kmap_prot);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/highmem-internal.h:68:9: error: implicit declaration of function '__kmap_local_page_prot' [-Werror,-Wimplicit-function-declaration]
           return __kmap_local_page_prot(page, prot);
                  ^
   include/linux/highmem-internal.h:68:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
           return __kmap_local_page_prot(page, prot);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/highmem-internal.h:73:9: error: implicit declaration of function '__kmap_local_pfn_prot' [-Werror,-Wimplicit-function-declaration]
           return __kmap_local_pfn_prot(pfn, kmap_prot);
                  ^
   include/linux/highmem-internal.h:73:9: note: did you mean 'kmap_local_page_prot'?
   include/linux/highmem-internal.h:66:21: note: 'kmap_local_page_prot' declared here
   static inline void *kmap_local_page_prot(struct page *page, pgprot_t prot)
                       ^
   include/linux/highmem-internal.h:73:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
           return __kmap_local_pfn_prot(pfn, kmap_prot);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/highmem-internal.h:78:2: error: implicit declaration of function 'kunmap_local_indexed' [-Werror,-Wimplicit-function-declaration]
           kunmap_local_indexed(vaddr);
           ^
   include/linux/highmem-internal.h:85:9: error: implicit declaration of function '__kmap_local_page_prot' [-Werror,-Wimplicit-function-declaration]
           return __kmap_local_page_prot(page, prot);
                  ^
   include/linux/highmem-internal.h:85:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
           return __kmap_local_page_prot(page, prot);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/highmem-internal.h:97:9: error: implicit declaration of function '__kmap_local_pfn_prot' [-Werror,-Wimplicit-function-declaration]
           return __kmap_local_pfn_prot(pfn, kmap_prot);
                  ^
   include/linux/highmem-internal.h:97:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
           return __kmap_local_pfn_prot(pfn, kmap_prot);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/highmem-internal.h:102:2: error: implicit declaration of function 'kunmap_local_indexed' [-Werror,-Wimplicit-function-declaration]
           kunmap_local_indexed(addr);
           ^
   5 warnings and 7 errors generated.
   make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1215: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/__kmap_local_page_prot +63 include/linux/highmem-internal.h

d3dd1f7da10427 Thomas Gleixner 2020-11-03  60  
4630d896d87f9b Thomas Gleixner 2020-11-18  61  static inline void *kmap_local_page(struct page *page)
4630d896d87f9b Thomas Gleixner 2020-11-18  62  {
4630d896d87f9b Thomas Gleixner 2020-11-18 @63  	return __kmap_local_page_prot(page, kmap_prot);
4630d896d87f9b Thomas Gleixner 2020-11-18  64  }
4630d896d87f9b Thomas Gleixner 2020-11-18  65  
4630d896d87f9b Thomas Gleixner 2020-11-18  66  static inline void *kmap_local_page_prot(struct page *page, pgprot_t prot)
4630d896d87f9b Thomas Gleixner 2020-11-18  67  {
4630d896d87f9b Thomas Gleixner 2020-11-18  68  	return __kmap_local_page_prot(page, prot);
4630d896d87f9b Thomas Gleixner 2020-11-18  69  }
4630d896d87f9b Thomas Gleixner 2020-11-18  70  
4630d896d87f9b Thomas Gleixner 2020-11-18  71  static inline void *kmap_local_pfn(unsigned long pfn)
4630d896d87f9b Thomas Gleixner 2020-11-18  72  {
4630d896d87f9b Thomas Gleixner 2020-11-18 @73  	return __kmap_local_pfn_prot(pfn, kmap_prot);
4630d896d87f9b Thomas Gleixner 2020-11-18  74  }
4630d896d87f9b Thomas Gleixner 2020-11-18  75  
4630d896d87f9b Thomas Gleixner 2020-11-18  76  static inline void __kunmap_local(void *vaddr)
4630d896d87f9b Thomas Gleixner 2020-11-18  77  {
4630d896d87f9b Thomas Gleixner 2020-11-18 @78  	kunmap_local_indexed(vaddr);
4630d896d87f9b Thomas Gleixner 2020-11-18  79  }
4630d896d87f9b Thomas Gleixner 2020-11-18  80  

:::::: The code at line 63 was first introduced by commit
:::::: 4630d896d87f9baf307ea94a52b159fad69eadc4 mm/highmem: Provide kmap_local*

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Junxiao Chang <junxiao.chang@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-14 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 11:35 [intel-lts:5.10/yocto 1/1] include/linux/highmem-internal.h:63:9: error: implicit declaration of function '__kmap_local_page_prot' 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.