From: kbuild test robot <fengguang.wu@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Mike Kravetz <mike.kravetz@oracle.com>,
Johannes Weiner <hannes@cmpxchg.org>
Subject: [mmotm:master 9/285] include/linux/mmdebug.h:52:34: note: in expansion of macro 'BUILD_BUG_ON_INVALID'
Date: Wed, 14 Mar 2018 11:42:07 +0800 [thread overview]
Message-ID: <201803141102.XoVvhkc0%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4869 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: ead058c4ec49752a4e0323368f1d695385c66020
commit: 0fde5444264108c91dfea4c0b756f2470a4a4a3b [9/285] hugetlbfs-check-for-pgoff-value-overflow-v3-fix
config: i386-randconfig-x014-201810 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 0fde5444264108c91dfea4c0b756f2470a4a4a3b
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from mm/hugetlb.c:5:
mm/hugetlb.c: In function 'hugetlb_reserve_pages':
>> include/linux/build_bug.h:36:33: error: void value not ignored as it ought to be
#define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
^
>> include/linux/mmdebug.h:52:34: note: in expansion of macro 'BUILD_BUG_ON_INVALID'
#define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
^~~~~~~~~~~~~~~~~~~~
>> mm/hugetlb.c:4378:6: note: in expansion of macro 'VM_WARN'
if (VM_WARN(from > to, "%s called with a negative range\n", __func__))
^~~~~~~
vim +/BUILD_BUG_ON_INVALID +52 include/linux/mmdebug.h
309381feae Sasha Levin 2014-01-23 16
59ea746337 Jiri Slaby 2008-06-12 17 #ifdef CONFIG_DEBUG_VM
59ea746337 Jiri Slaby 2008-06-12 18 #define VM_BUG_ON(cond) BUG_ON(cond)
309381feae Sasha Levin 2014-01-23 19 #define VM_BUG_ON_PAGE(cond, page) \
e4f674229c Dave Hansen 2014-06-04 20 do { \
e4f674229c Dave Hansen 2014-06-04 21 if (unlikely(cond)) { \
e4f674229c Dave Hansen 2014-06-04 22 dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\
e4f674229c Dave Hansen 2014-06-04 23 BUG(); \
e4f674229c Dave Hansen 2014-06-04 24 } \
e4f674229c Dave Hansen 2014-06-04 25 } while (0)
fa3759ccd5 Sasha Levin 2014-10-09 26 #define VM_BUG_ON_VMA(cond, vma) \
fa3759ccd5 Sasha Levin 2014-10-09 27 do { \
fa3759ccd5 Sasha Levin 2014-10-09 28 if (unlikely(cond)) { \
fa3759ccd5 Sasha Levin 2014-10-09 29 dump_vma(vma); \
fa3759ccd5 Sasha Levin 2014-10-09 30 BUG(); \
fa3759ccd5 Sasha Levin 2014-10-09 31 } \
fa3759ccd5 Sasha Levin 2014-10-09 32 } while (0)
31c9afa6db Sasha Levin 2014-10-09 33 #define VM_BUG_ON_MM(cond, mm) \
31c9afa6db Sasha Levin 2014-10-09 34 do { \
31c9afa6db Sasha Levin 2014-10-09 35 if (unlikely(cond)) { \
31c9afa6db Sasha Levin 2014-10-09 36 dump_mm(mm); \
31c9afa6db Sasha Levin 2014-10-09 37 BUG(); \
31c9afa6db Sasha Levin 2014-10-09 38 } \
31c9afa6db Sasha Levin 2014-10-09 39 } while (0)
02a8efeda8 Andrew Morton 2014-06-04 40 #define VM_WARN_ON(cond) WARN_ON(cond)
02a8efeda8 Andrew Morton 2014-06-04 41 #define VM_WARN_ON_ONCE(cond) WARN_ON_ONCE(cond)
ef6b571fb8 Andrew Morton 2014-08-06 42 #define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format)
a54f9aebaa Aneesh Kumar K.V 2016-07-26 43 #define VM_WARN(cond, format...) WARN(cond, format)
59ea746337 Jiri Slaby 2008-06-12 44 #else
02602a18c3 Konstantin Khlebnikov 2012-05-29 45 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond)
309381feae Sasha Levin 2014-01-23 46 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
fa3759ccd5 Sasha Levin 2014-10-09 47 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond)
31c9afa6db Sasha Levin 2014-10-09 48 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
02a8efeda8 Andrew Morton 2014-06-04 49 #define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond)
02a8efeda8 Andrew Morton 2014-06-04 50 #define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond)
ef6b571fb8 Andrew Morton 2014-08-06 51 #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
a54f9aebaa Aneesh Kumar K.V 2016-07-26 @52 #define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
59ea746337 Jiri Slaby 2008-06-12 53 #endif
59ea746337 Jiri Slaby 2008-06-12 54
:::::: The code at line 52 was first introduced by commit
:::::: a54f9aebaa9f0ea2ce6b01f12b65062fb2e74e6c include/linux/mmdebug.h: add VM_WARN which maps to WARN()
:::::: TO: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33053 bytes --]
reply other threads:[~2018-03-14 3:42 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=201803141102.XoVvhkc0%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=mike.kravetz@oracle.com \
/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