OSDN Git Service

Have single macro for taking care of goldfish_dma_context alignment.
authorLingfeng Yang <lfy@google.com>
Mon, 27 Feb 2017 20:39:51 +0000 (12:39 -0800)
committerLingfeng Yang <lfy@google.com>
Mon, 27 Feb 2017 22:11:39 +0000 (22:11 +0000)
Previously,

!defined(__aarch64__) || !defined(__x86_64__) is always true,

instead of the intended "add this field if not 64 bit."

OOPS

bug: 35711775
Change-Id: I46043c4402325845524d56d8d4f910f16add25cb

system/OpenglSystemCommon/goldfish_dma.h

index f6a2874..8a09c0e 100644 (file)
@@ -43,7 +43,7 @@ struct goldfish_dma_ioctl_info {
 // userspace interface
 struct goldfish_dma_context {
     void* mapped;
-#if !defined(__x86_64__) || !defined(__aarch64__) || !defined(__mips64__)
+#if !defined(__LP64__)
     int mapped_padding;
 #endif
     uint64_t sz; // size of reservation