summaryrefslogtreecommitdiffstats
path: root/fastbootd
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-09-20 10:18:21 -0700
committerColin Cross <ccross@android.com>2013-12-04 15:00:51 -0800
commitae2e69b9c0e57192401eb4f971be6b0d5a687c0d (patch)
tree6140f27dd327fae04916684f96452f582430491b /fastbootd
parentc50dfd178ebd159d82f5577a96d743b0e831dba6 (diff)
downloadsystem_core-ae2e69b9c0e57192401eb4f971be6b0d5a687c0d.tar.gz
system_core-ae2e69b9c0e57192401eb4f971be6b0d5a687c0d.tar.bz2
system_core-ae2e69b9c0e57192401eb4f971be6b0d5a687c0d.zip
Remove a homebrew mmap64.
This should have been fixed in bionic, and now has been. Change-Id: Ib9b21771ed7fbb6b4082b52d0b590f2867f344d4
Diffstat (limited to 'fastbootd')
-rw-r--r--fastbootd/commands/partitions.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fastbootd/commands/partitions.c b/fastbootd/commands/partitions.c
index 3bfc2988f..dffad00b2 100644
--- a/fastbootd/commands/partitions.c
+++ b/fastbootd/commands/partitions.c
@@ -48,8 +48,6 @@
#include "utils.h"
#include "protocol.h"
-#define MMAP2_SHIFT 12
-
#define BLKRRPART _IO(0x12,95) /* re-read partition table */
#define BLKSSZGET _IO(0x12,104)
@@ -70,13 +68,6 @@ static void GPT_entry_clear(struct GPT_entry_raw *entry)
memset(entry, 0, sizeof(*entry));
}
-extern void* __mmap2(void *, size_t, int, int, int, off_t);
-
-static inline void *mmap64(void *addr, size_t length, int prot,
- int flags, int fd, uint64_t offset) {
- return __mmap2(addr, length, prot, flags, fd, offset >> MMAP2_SHIFT);
-}
-
/*
* returns mapped location to choosen area
* mapped_ptr is pointer to whole area mapped (it can be bigger then requested)