]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: merge swap_constants.h into swapon.c
authorKarel Zak <kzak@redhat.com>
Wed, 11 Jan 2012 10:43:42 +0000 (11:43 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jan 2012 10:43:42 +0000 (11:43 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/swap_constants.h [deleted file]
mount/swapon.c

diff --git a/mount/swap_constants.h b/mount/swap_constants.h
deleted file mode 100644 (file)
index c7e8b4c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * It is too painful to get these out of <linux/swap.h>
- * (which again requires <asm/page.h> etc).
- * These exist since Linux 1.3.2.
- */
-
-#ifndef SWAP_FLAG_PREFER
-#define SWAP_FLAG_PREFER       0x8000  /* set if swap priority specified */
-#endif
-#ifndef SWAP_FLAG_PRIO_MASK
-#define SWAP_FLAG_PRIO_MASK    0x7fff
-#endif
-#ifndef SWAP_FLAG_PRIO_SHIFT
-#define SWAP_FLAG_PRIO_SHIFT   0
-#endif
index d70c37922a3d63c1cd84fa8726a2440a681979b2..e37d8a251165830aece032dd8d291ec4240ec7aa 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "bitops.h"
 #include "blkdev.h"
-#include "swap_constants.h"
 #include "nls.h"
 #include "fsprobe.h"
 #include "pathnames.h"
 # define SWAP_FLAG_DISCARD     0x10000 /* discard swap cluster after use */
 #endif
 
+#ifndef SWAP_FLAG_PREFER
+# define SWAP_FLAG_PREFER      0x8000  /* set if swap priority specified */
+#endif
+
+#ifndef SWAP_FLAG_PRIO_MASK
+# define SWAP_FLAG_PRIO_MASK   0x7fff
+#endif
+
+#ifndef SWAP_FLAG_PRIO_SHIFT
+# define SWAP_FLAG_PRIO_SHIFT  0
+#endif
+
 #ifndef SWAPON_HAS_TWO_ARGS
 /* libc is insane, let's call the kernel */
 # include <sys/syscall.h>