From: kbuild test robot <fengguang.wu@intel.com>
To: Chen Gang <gang.chen.5i5j@gmail.com>
Cc: kbuild-all@01.org, Minchan Kim <minchan@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 4868/5109] arch/alpha/include/uapi/asm/mman.h:53:0: warning: "MADV_FREE" redefined
Date: Mon, 7 Dec 2015 21:38:41 +0800 [thread overview]
Message-ID: <201512072140.pdr2hfVk%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2720 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 47ca23615a59f1879e6a2d2fe63d130abdb5c810
commit: d53d95838c7d04a11245ad0982f72ed13d03c4db [4868/5109] arch/*/include/uapi/asm/mman.h: : let MADV_FREE have same value for all architectures
config: alpha-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d53d95838c7d04a11245ad0982f72ed13d03c4db
# save the attached .config to linux build tree
make.cross ARCH=alpha
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/mman.h:4:0,
from include/linux/mman.h:8,
from fs/proc/array.c:62:
>> arch/alpha/include/uapi/asm/mman.h:53:0: warning: "MADV_FREE" redefined
#define MADV_FREE 8 /* free pages only if memory pressure */
^
arch/alpha/include/uapi/asm/mman.h:50:0: note: this is the location of the previous definition
#define MADV_FREE 7 /* free pages only if memory pressure */
^
vim +/MADV_FREE +53 arch/alpha/include/uapi/asm/mman.h
37
38 #define MCL_CURRENT 8192 /* lock all currently mapped pages */
39 #define MCL_FUTURE 16384 /* lock all additions to address space */
40 #define MCL_ONFAULT 32768 /* lock all pages that are faulted in */
41
42 #define MLOCK_ONFAULT 0x01 /* Lock pages in range after they are faulted in, do not prefault */
43
44 #define MADV_NORMAL 0 /* no further special treatment */
45 #define MADV_RANDOM 1 /* expect random page references */
46 #define MADV_SEQUENTIAL 2 /* expect sequential page references */
47 #define MADV_WILLNEED 3 /* will need these pages */
48 #define MADV_SPACEAVAIL 5 /* ensure resources are available */
49 #define MADV_DONTNEED 6 /* don't need these pages */
50 #define MADV_FREE 7 /* free pages only if memory pressure */
51
52 /* common/generic parameters */
> 53 #define MADV_FREE 8 /* free pages only if memory pressure */
54 #define MADV_REMOVE 9 /* remove these pages & resources */
55 #define MADV_DONTFORK 10 /* don't inherit across fork */
56 #define MADV_DOFORK 11 /* do inherit across fork */
57
58 #define MADV_MERGEABLE 12 /* KSM may merge identical pages */
59 #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
60
61 #define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 11642 bytes --]
reply other threads:[~2015-12-07 13:39 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=201512072140.pdr2hfVk%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=gang.chen.5i5j@gmail.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.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