[PATCH v6 08/19] perf map: Use bool for return type instead of int

From: Alejandro Colomar

Date: Sat Nov 14 2026 - 10:23:09 EST


This is not strictly necessary, but is more robust and readable.
We already use bool in that file, so this improves consistency too.

Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx>
---
tools/perf/util/map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 41cdddc987ee..944f10d32796 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -16,7 +16,7 @@
#include "thread.h"
#include "vdso.h"

-static inline int is_android_lib(const char *filename)
+static inline bool is_android_lib(const char *filename)
{
return strstarts(filename, "/data/app-lib/") ||
strstarts(filename, "/system/lib/");
--
2.55.0

Attachment: signature.asc
Description: PGP signature