[hnaz-linux-mm:master 231/464] arch/x86/include/asm/highmem.h:71:21: error: static declaration of 'kmap_atomic_high' follows non-static declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/hnaz/linux-mm master
head:   6a76dec06156195d9c1d6eb75b87b37d40479fc8
commit: 61df64ad3bc454db50814473ffd5d9ae10838ed8 [231/464] arch/kmap_atomic: consolidate duplicate code
config: i386-randconfig-a001-20200509 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout 61df64ad3bc454db50814473ffd5d9ae10838ed8
        # save the attached .config to linux build tree
        make ARCH=i386 

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

Note: the hnaz-linux-mm/master HEAD 6a76dec06156195d9c1d6eb75b87b37d40479fc8 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from include/linux/highmem.h:36:0,
                    from include/linux/pagemap.h:11,
                    from include/linux/blkdev.h:16,
                    from include/linux/blk-cgroup.h:23,
                    from include/linux/writeback.h:14,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from arch/x86/kernel/asm-offsets.c:13:
>> arch/x86/include/asm/highmem.h:71:21: error: static declaration of 'kmap_atomic_high' follows non-static declaration
    static inline void *kmap_atomic_high(struct page *page)
                        ^~~~~~~~~~~~~~~~
   In file included from include/linux/pagemap.h:11:0,
                    from include/linux/blkdev.h:16,
                    from include/linux/blk-cgroup.h:23,
                    from include/linux/writeback.h:14,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from arch/x86/kernel/asm-offsets.c:13:
   include/linux/highmem.h:35:14: note: previous declaration of 'kmap_atomic_high' was here
    extern void *kmap_atomic_high(struct page *page);
                 ^~~~~~~~~~~~~~~~
   make[2]: *** [scripts/Makefile.build:100: arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1141: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:180: sub-make] Error 2

vim +/kmap_atomic_high +71 arch/x86/include/asm/highmem.h

    60	
    61	extern void *kmap_atomic_high_prot(struct page *page, pgprot_t prot);
    62	static inline void *kmap_atomic_prot(struct page *page, pgprot_t prot)
    63	{
    64		preempt_disable();
    65		pagefault_disable();
    66		if (!PageHighMem(page))
    67			return page_address(page);
    68	
    69		return kmap_atomic_high_prot(page, prot);
    70	}
  > 71	static inline void *kmap_atomic_high(struct page *page)
    72	{
    73		return kmap_atomic_high_prot(page, kmap_prot);
    74	}
    75	void __kunmap_atomic(void *kvaddr);
    76	void *kmap_atomic_pfn(unsigned long pfn);
    77	void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot);
    78	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux