mm: arch: remove duplicate definitions of MADV_FREE
authorGuenter Roeck <[email protected]>
Wed, 20 Jan 2016 22:58:15 +0000 (14:58 -0800)
committerLinus Torvalds <[email protected]>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commitdcd6c87cc59af1b4fe7664b35c6344bbe1c9928f
tree60cdc076fc7195a2153e8fec01b507575ca7dbd5
parentf4be6153cca6c88eaf1e52931d9a010ad4ad940e
mm: arch: remove duplicate definitions of MADV_FREE

Commits 21f55b018ba5 ("arch/*/include/uapi/asm/mman.h: : let MADV_FREE
have same value for all architectures") and ef58978f1eaa ("mm: define
MADV_FREE for some arches") both defined MADV_FREE, but did not use the
same values.  This results in build errors such as

  ./arch/alpha/include/uapi/asm/mman.h:53:0: error: "MADV_FREE" redefined
  ./arch/alpha/include/uapi/asm/mman.h:50:0: note: this is the location of the previous definition

for the affected architectures.

Fixes: 21f55b018ba5 ("arch/*/include/uapi/asm/mman.h: : let MADV_FREE have same value for all architectures")
Fixes: ef58978f1eaa ("mm: define MADV_FREE for some arches")
Signed-off-by: Guenter Roeck <[email protected]>
Cc: Chen Gang <[email protected]>
Cc: Minchan Kim <[email protected]>
Acked-by: Helge Deller <[email protected]> [parisc]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/alpha/include/uapi/asm/mman.h
arch/mips/include/uapi/asm/mman.h
arch/parisc/include/uapi/asm/mman.h
arch/xtensa/include/uapi/asm/mman.h