All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: fix double definition of MADV_FREE
@ 2016-01-23  9:33 Manuel Lauss
  2016-01-24  0:21 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Lauss @ 2016-01-23  9:33 UTC (permalink / raw)
  To: Linux-MIPS, Ralf Baechle; +Cc: Chen Gang, Minchan Kim, Manuel Lauss

Commit ef58978f1eaab140081ec1808d96ee06e933e760
("mm: define MADV_FREE for some arches") introduced MADV_FREE to MIPS,
commit 21f55b018ba57897f4d3590ecbe11516bdc540af
("arch/*/include/uapi/asm/mman.h: : let MADV_FREE have same value for all architectures")
added another instance, which resulted in this build error:

In file included from include/uapi/linux/mman.h:4:0,
                 from include/linux/mman.h:8,
                 from kernel/fork.c:28:
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 */


This patch removes the "MADV_FREE 5" introduced by the first commit
("mm: define MADV_FREE for some arches").

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
---
 arch/mips/include/uapi/asm/mman.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/mips/include/uapi/asm/mman.h b/arch/mips/include/uapi/asm/mman.h
index b0ebe59..ccdcfcb 100644
--- a/arch/mips/include/uapi/asm/mman.h
+++ b/arch/mips/include/uapi/asm/mman.h
@@ -73,7 +73,6 @@
 #define MADV_SEQUENTIAL 2		/* expect sequential page references */
 #define MADV_WILLNEED	3		/* will need these pages */
 #define MADV_DONTNEED	4		/* don't need these pages */
-#define MADV_FREE	5		/* free pages only if memory pressure */
 
 /* common parameters: try to keep these consistent across architectures */
 #define MADV_FREE	8		/* free pages only if memory pressure */
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-24  0:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-23  9:33 [PATCH] MIPS: fix double definition of MADV_FREE Manuel Lauss
2016-01-24  0:21 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.