binder: Fix-up binder_alloc kunit tests
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
@@ -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
@@ -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
Greg Kroah-Hartman
maintainerQuoted 5 lines · Tiffany Yang
Do clean up that was requested in reviews for the
binder_allockunit 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 withseq_buffunctions, as suggested by Kees [3].
This should be broken up into "one patch per logical change" please.
thanks,
greg k-h