summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-12-13 21:39:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-12-13 21:39:54 +0000
commit2f9e75b87d01ef32ed2b54e06da57efd484f137e (patch)
tree68656ce788190427928d66248518935f96fd1da4
parent065201c28d2c19148b940a6e884d911638a04a07 (diff)
parentfba921467f45c97a8e4c5ebea27b73e8fd3e174f (diff)
downloadlibhwbinder-2f9e75b87d01ef32ed2b54e06da57efd484f137e.tar.gz
Merge "Update for v5.4 kernel headers."
-rw-r--r--Parcel.cpp2
-rw-r--r--binder_kernel.h18
2 files changed, 5 insertions, 15 deletions
diff --git a/Parcel.cpp b/Parcel.cpp
index 076fa56..3599f1a 100644
--- a/Parcel.cpp
+++ b/Parcel.cpp
@@ -203,7 +203,7 @@ status_t flatten_binder(const sp<ProcessState>& /*proc*/,
obj.flags = priority & FLAT_BINDER_FLAG_PRIORITY_MASK;
obj.flags |= FLAT_BINDER_FLAG_ACCEPTS_FDS | FLAT_BINDER_FLAG_INHERIT_RT;
- obj.flags |= (policy & 3) << FLAT_BINDER_FLAG_SCHEDPOLICY_SHIFT;
+ obj.flags |= (policy & 3) << FLAT_BINDER_FLAG_SCHED_POLICY_SHIFT;
if (local->isRequestingSid()) {
obj.flags |= FLAT_BINDER_FLAG_TXN_SECURITY_CTX;
}
diff --git a/binder_kernel.h b/binder_kernel.h
index 085c9cc..fdf5b1e 100644
--- a/binder_kernel.h
+++ b/binder_kernel.h
@@ -17,6 +17,10 @@
#ifndef ANDROID_HARDWARE_BINDER_KERNEL_H
#define ANDROID_HARDWARE_BINDER_KERNEL_H
+/**
+ * Only need this file to fix the __packed__ keyword.
+ */
+
// TODO(b/31559095): bionic on host
#ifndef __ANDROID__
#define __packed __attribute__((__packed__))
@@ -24,18 +28,4 @@
#include <linux/android/binder.h>
-/**
- * This file exists because the uapi kernel headers in bionic are built
- * from upstream kernel headers only, and not all of the hwbinder kernel changes
- * have made it upstream yet. Therefore, the modifications to the
- * binder header are added locally in this file.
- */
-
-enum {
- FLAT_BINDER_FLAG_SCHEDPOLICY_MASK = 0x600,
- FLAT_BINDER_FLAG_SCHEDPOLICY_SHIFT = 9,
- FLAT_BINDER_FLAG_INHERIT_RT = 0x800,
-};
-
-
#endif // ANDROID_HARDWARE_BINDER_KERNEL_H