linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4868/5109] arch/mips/include/uapi/asm/mman.h:79:0: warning: "MADV_FREE" redefined
@ 2015-12-07 14:03 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-12-07 14:03 UTC (permalink / raw)
  To: Chen Gang
  Cc: kbuild-all, Minchan Kim, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 2647 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: mips-jz4740 (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=mips 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/mman.h:4:0,
                    from include/linux/mman.h:8,
                    from drivers/video/fbdev/core/fbmem.c:23:
>> arch/mips/include/uapi/asm/mman.h:79:0: warning: "MADV_FREE" redefined
    #define MADV_FREE 8  /* free pages only if memory pressure */
    ^
   arch/mips/include/uapi/asm/mman.h:76:0: note: this is the location of the previous definition
    #define MADV_FREE 5  /* free pages only if memory pressure */
    ^

vim +/MADV_FREE +79 arch/mips/include/uapi/asm/mman.h

    63	#define MCL_FUTURE	2		/* lock all future mappings */
    64	#define MCL_ONFAULT	4		/* lock all pages that are faulted in */
    65	
    66	/*
    67	 * Flags for mlock
    68	 */
    69	#define MLOCK_ONFAULT	0x01		/* Lock pages in range after they are faulted in, do not prefault */
    70	
    71	#define MADV_NORMAL	0		/* no further special treatment */
    72	#define MADV_RANDOM	1		/* expect random page references */
    73	#define MADV_SEQUENTIAL 2		/* expect sequential page references */
    74	#define MADV_WILLNEED	3		/* will need these pages */
    75	#define MADV_DONTNEED	4		/* don't need these pages */
    76	#define MADV_FREE	5		/* free pages only if memory pressure */
    77	
    78	/* common parameters: try to keep these consistent across architectures */
  > 79	#define MADV_FREE	8		/* free pages only if memory pressure */
    80	#define MADV_REMOVE	9		/* remove these pages & resources */
    81	#define MADV_DONTFORK	10		/* don't inherit across fork */
    82	#define MADV_DOFORK	11		/* do inherit across fork */
    83	
    84	#define MADV_MERGEABLE	 12		/* KSM may merge identical pages */
    85	#define MADV_UNMERGEABLE 13		/* KSM may not merge identical pages */
    86	#define MADV_HWPOISON	 100		/* poison a page for testing */
    87	

---
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: 17840 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-07 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 14:03 [linux-next:master 4868/5109] arch/mips/include/uapi/asm/mman.h:79:0: warning: "MADV_FREE" redefined kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).