From: kbuild test robot <lkp@intel.com>
To: Ira Weiny <ira.weiny@intel.com>
Cc: kbuild-all@lists.01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [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: Sat, 9 May 2020 17:24:24 +0800 [thread overview]
Message-ID: <202005091721.tAJ7tqBu%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3198 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33629 bytes --]
reply other threads:[~2020-05-09 9:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202005091721.tAJ7tqBu%lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=ira.weiny@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox