Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1602656
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | kbuild test robot <fengguang.wu@intel.com> |
| Newsgroups | linux.kernel |
| Subject | [tip:x86/mm 1/3] fs/proc/kcore.c:626:2: note: in expansion of macro 'if' |
| Date | Thu, 16 Mar 2017 17:50:03 +0100 |
| Message-ID | <tlGL9-14c-29@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489682483; x=1521218483; h=date:from:to:cc:subject:message-id:mime-version; bh=Di+bFxAtTyinlPnqsNE+6kKoHuqfT0f3ufGd1O0Ztr4=; b=MJIIMsWvwHuWsNgzonauLQAbYOmWFC4XxIEo++nHlXQSGDFh+zwFnzhE QeQUXAG2HLExnDZmvfdAY8E4p3Jw6Q==; |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.36,173,1486454400"; d="gz'50?scan'50,208,50";a="77270847" |
| MIME-Version | 1.0 |
| Content-Type | multipart/mixed; boundary="k+w/mQv8wyuph6w0" |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| X-Sa-Exim-Connect-IP | <locally generated> |
| X-Sa-Exim-Mail-From | fengguang.wu@intel.com |
| X-Sa-Exim-Scanned | No (on bee); SAEximRunCond expanded to false |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 563 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com, Ingo Molnar <mingo@kernel.org> |
| X-Original-Date | Fri, 17 Mar 2017 00:41:00 +0800 |
| X-Original-Message-ID | <201703170054.WwKJvRmW%fengguang.wu@intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1602656 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/mm
head: 45fc8757d1d2128e342b4e7ef39adedf7752faac
commit: f06bdd4001c257792c54dce9427399f2896470af [1/3] x86/mm: Adapt MODULES_END based on fixmap section size
config: x86_64-randconfig-s0-03162331 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout f06bdd4001c257792c54dce9427399f2896470af
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:4:0,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from include/linux/mm.h:8,
from fs/proc/kcore.c:12:
fs/proc/kcore.c: In function 'add_modules_range':
arch/x86/include/asm/pgtable_64_types.h:72:23: error: implicit declaration of function '__fix_to_virt' [-Werror=implicit-function-declaration]
#define MODULES_END __fix_to_virt(__end_of_fixed_addresses + 1)
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> fs/proc/kcore.c:626:2: note: in expansion of macro 'if'
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
^~
fs/proc/kcore.c:626:40: note: in expansion of macro 'MODULES_END'
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
^~~~~~~~~~~
arch/x86/include/asm/pgtable_64_types.h:72:37: error: '__end_of_fixed_addresses' undeclared (first use in this function)
#define MODULES_END __fix_to_virt(__end_of_fixed_addresses + 1)
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> fs/proc/kcore.c:626:2: note: in expansion of macro 'if'
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
^~
fs/proc/kcore.c:626:40: note: in expansion of macro 'MODULES_END'
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
^~~~~~~~~~~
arch/x86/include/asm/pgtable_64_types.h:72:37: note: each undeclared identifier is reported only once for each function it appears in
#define MODULES_END __fix_to_virt(__end_of_fixed_addresses + 1)
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> fs/proc/kcore.c:626:2: note: in expansion of macro 'if'
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
^~
fs/proc/kcore.c:626:40: note: in expansion of macro 'MODULES_END'
if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/if +626 fs/proc/kcore.c
9492587c KAMEZAWA Hiroyuki 2009-09-22 610 {
36e15263 Wu Fengguang 2010-05-26 611 kclist_add(&kcore_text, _text, _end - _text, KCORE_TEXT);
9492587c KAMEZAWA Hiroyuki 2009-09-22 612 }
9492587c KAMEZAWA Hiroyuki 2009-09-22 613 #else
9492587c KAMEZAWA Hiroyuki 2009-09-22 614 static void __init proc_kcore_text_init(void)
9492587c KAMEZAWA Hiroyuki 2009-09-22 615 {
9492587c KAMEZAWA Hiroyuki 2009-09-22 616 }
9492587c KAMEZAWA Hiroyuki 2009-09-22 617 #endif
9492587c KAMEZAWA Hiroyuki 2009-09-22 618
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 619 #if defined(CONFIG_MODULES) && defined(MODULES_VADDR)
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 620 /*
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 621 * MODULES_VADDR has no intersection with VMALLOC_ADDR.
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 622 */
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 623 struct kcore_list kcore_modules;
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 624 static void __init add_modules_range(void)
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 625 {
bf3e2692 Baoquan He 2014-10-09 @626 if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 627 kclist_add(&kcore_modules, (void *)MODULES_VADDR,
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 628 MODULES_END - MODULES_VADDR, KCORE_VMALLOC);
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 629 }
bf3e2692 Baoquan He 2014-10-09 630 }
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 631 #else
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 632 static void __init add_modules_range(void)
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 633 {
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22 634 }
:::::: The code at line 626 was first introduced by commit
:::::: bf3e2692468fe46eed57d18b3dd1af5b30049122 fs/proc/kcore.c: don't add modules range to kcore if it's equal to vmcore range
:::::: TO: Baoquan He <bhe@redhat.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[tip:x86/mm 1/3] fs/proc/kcore.c:626:2: note: in expansion of macro 'if' kbuild test robot <fengguang.wu@intel.com> - 2017-03-16 17:50 +0100 Re: [tip:x86/mm 1/3] fs/proc/kcore.c:626:2: note: in expansion of macro 'if' Thomas Garnier <thgarnie@google.com> - 2017-03-16 18:30 +0100
csiph-web