Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfa7d082 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

SWAP_FLAG_* constants are now in <sys/swap.h>.

Bug: 9336527
Change-Id: I77e2b05cefbfb4eebda39b4079107833f4160563
parent e21d03ce
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -28,11 +28,6 @@
#include <libgen.h>
#include <libgen.h>
#include <time.h>
#include <time.h>
#include <sys/swap.h>
#include <sys/swap.h>
/* XXX These need to be obtained from kernel headers. See b/9336527 */
#define SWAP_FLAG_PREFER        0x8000
#define SWAP_FLAG_PRIO_MASK     0x7fff
#define SWAP_FLAG_PRIO_SHIFT    0
#define SWAP_FLAG_DISCARD       0x10000


#include <linux/loop.h>
#include <linux/loop.h>
#include <private/android_filesystem_config.h>
#include <private/android_filesystem_config.h>
+0 −6
Original line number Original line Diff line number Diff line
@@ -5,12 +5,6 @@
#include <asm/page.h>
#include <asm/page.h>
#include <sys/swap.h>
#include <sys/swap.h>


/* XXX These need to be obtained from kernel headers. See b/9336527 */
#define SWAP_FLAG_PREFER        0x8000
#define SWAP_FLAG_PRIO_MASK     0x7fff
#define SWAP_FLAG_PRIO_SHIFT    0
#define SWAP_FLAG_DISCARD       0x10000

void usage(char *name)
void usage(char *name)
{
{
    fprintf(stderr, "Usage: %s [-p prio] <filename>\n"
    fprintf(stderr, "Usage: %s [-p prio] <filename>\n"