From 3369fe9cbb0cce75ff61fbfaac5aaa83dff0b6a7 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 22 Sep 2023 14:51:26 +0000 Subject: [PATCH] Don't duplicate uapi ioprio constants. This code is only used in init and vold, so I suspect all the conditional compilation could be moved into the .bp file instead, but I'm just trying to clean up duplication today... Test: treehugger Change-Id: I97013f5de41e109a0cc377400c396145aed569db --- libcutils/iosched_policy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libcutils/iosched_policy.cpp b/libcutils/iosched_policy.cpp index 012c537ac..f7c724da9 100644 --- a/libcutils/iosched_policy.cpp +++ b/libcutils/iosched_policy.cpp @@ -24,8 +24,7 @@ #include #if defined(__ANDROID__) -#define IOPRIO_WHO_PROCESS (1) -#define IOPRIO_CLASS_SHIFT (13) +#include #include #define __android_unused #else