All of lore.kernel.org
 help / color / mirror / Atom feed
* [weiny2:lm-misc3 5/8] arch/mips/include/asm/highmem.h:52:15: error: implicit declaration of function '__kmap'; did you mean 'kmap'?
@ 2020-04-16  6:58 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-16  6:58 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/weiny2/linux-kernel.git lm-misc3
head:   80c335a89ca34e82fad340c46ee8fdd6cc908f2e
commit: 98755490c4ee337ec6b3d89ec434469b56c2cf99 [5/8] arch/kmap: Remove redundant arch specific kmaps
config: mips-fuloong2e_defconfig (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 98755490c4ee337ec6b3d89ec434469b56c2cf99
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/mips/mm/cache.c:19:
   arch/mips/include/asm/highmem.h: In function 'kmap':
>> arch/mips/include/asm/highmem.h:52:15: error: implicit declaration of function '__kmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
      52 |  void *addr = __kmap(page);
         |               ^~~~~~
         |               kmap
>> arch/mips/include/asm/highmem.h:52:15: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
>> arch/mips/include/asm/highmem.h:54:2: error: implicit declaration of function 'flush_tlb_one' [-Werror=implicit-function-declaration]
      54 |  flush_tlb_one((unsigned long)addr);
         |  ^~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from arch/mips/mm/fault.c:28:
   arch/mips/include/asm/highmem.h: In function 'kmap':
>> arch/mips/include/asm/highmem.h:52:15: error: implicit declaration of function '__kmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
      52 |  void *addr = __kmap(page);
         |               ^~~~~~
         |               kmap
>> arch/mips/include/asm/highmem.h:52:15: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
   cc1: all warnings being treated as errors

vim +52 arch/mips/include/asm/highmem.h

    48	
    49	#define ARCH_HAS_KMAP
    50	static inline void *kmap(struct page *page)
    51	{
  > 52		void *addr = __kmap(page);
    53	
  > 54		flush_tlb_one((unsigned long)addr);
    55		return addr;
    56	}
    57	extern void * kmap_high(struct page *page);
    58	extern void kunmap_high(struct page *page);
    59	

---
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: 19346 bytes --]

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

only message in thread, other threads:[~2020-04-16  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16  6:58 [weiny2:lm-misc3 5/8] arch/mips/include/asm/highmem.h:52:15: error: implicit declaration of function '__kmap'; did you mean 'kmap'? kbuild 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.