Skip to contentSkip to conversation

binder: Fix-up binder_alloc kunit tests

PATCH In review Tiffany Yang 2 participants 2 messages Jul 21, 2025 – Jul 22, 2025 Android drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binder: Fix-up binder_alloc kunit tests

Do clean up that was requested in reviews for the binder_alloc kunit test series [1] after it had been accepted. Add a copyright notice to each of the newly created test files, as suggested by Carlos [2]. Replace instances of snprintf with seq_buf functions, as suggested by Kees [3].

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/CAFuZdDLD=3CBOLSWw3VxCf7Nkf884SSNmt1wresQgxgBwED=eQ@mail.gmail.com/
[3] https://lore.kernel.org/all/202507160743.15E8044@keescook/

---
This patch is based on top of char-misc-next.
---

---
 drivers/android/tests/.kunitconfig         |  4 ++
 drivers/android/tests/Makefile             |  3 ++
 drivers/android/tests/binder_alloc_kunit.c | 51 +++++++++++-----------
 3 files changed, 32 insertions(+), 26 deletions(-)
drivers/android/tests/.kunitconfig +4 -0
index a73601231049..39b76bab9d9a 100644
@@ -1,3 +1,7 @@
+#
+# Copyright 2025 Google LLC.
+#
+
 CONFIG_KUNIT=y
 CONFIG_ANDROID_BINDER_IPC=y
 CONFIG_ANDROID_BINDER_ALLOC_KUNIT_TEST=y
drivers/android/tests/Makefile +3 -0
index 6780967e573b..27268418eb03 100644
@@ -1,3 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright 2025 Google LLC.
+#
 
 obj-$(CONFIG_ANDROID_BINDER_ALLOC_KUNIT_TEST)	+= binder_alloc_kunit.o
drivers/android/tests/binder_alloc_kunit.c +25 -26

104 lines not on this page · raw message

Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog
#1 lore raw
Quoted 5 lines · Tiffany Yang

Do clean up that was requested in reviews for the binder_alloc kunit test series [1] after it had been accepted. Add a copyright notice to each of the newly created test files, as suggested by Carlos [2]. Replace instances of snprintf with seq_buf functions, as suggested by Kees [3].

This should be broken up into "one patch per logical change" please.

thanks,

greg k-h