summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Jeon <kevinjeon@google.com>2024-03-05 17:42:57 -0500
committerKevin Jeon <kevinjeon@google.com>2024-03-05 17:42:57 -0500
commitcdef3127dc5deb31c42943fd336ff29fed7a2e84 (patch)
treeaf68dee2f1729595248b4a7697985109ca5fc3b5
parent9a0a4df0a78d3ffe7b6b4f08b0090b3bb35d4687 (diff)
downloadcamera-cdef3127dc5deb31c42943fd336ff29fed7a2e84.tar.gz
Update VmaCallbacks to return bool
A change to libmeminfo now requires that VmaCallbacks return a bool value. This updates the existing usage in camera_device.cc with a no-op 'return true'. Test: n/a Bug: 320480542 Change-Id: I1f3756a3729c90a8cef2f6159109c649e7c19b52
-rw-r--r--common/hal/google_camera_hal/camera_device.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hal/google_camera_hal/camera_device.cc b/common/hal/google_camera_hal/camera_device.cc
index 55c3a41..0520626 100644
--- a/common/hal/google_camera_hal/camera_device.cc
+++ b/common/hal/google_camera_hal/camera_device.cc
@@ -103,6 +103,7 @@ static void LoadLibraries(const std::vector<std::string>* libs) {
})) {
ReadAheadVma(vma, kMadviseSizeLimitBytes);
}
+ return true;
};
ProcMemInfo meminfo(getpid());
meminfo.ForEachVmaFromMaps(vmaCollectorCb);