Skip to contentSkip to conversation

android: binder: fix a kernel-doc enum warning

PATCH In review Randy Dunlap 2 participants 2 messages Dec 5, 2023 Android drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android: binder: fix a kernel-doc enum warning

Add kernel-doc notation for @LOOP_END to prevent a kernel-doc warning.

binder_alloc_selftest.c:76: warning: Enum value 'LOOP_END' not described in enum 'buf_end_align_type'

Cc Greg Kroah-Hartman <[email protected]>
Cc Arve Hjønnevåg <[email protected]>
Cc Todd Kjos <[email protected]>
Cc Martijn Coenen <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Carlos Llamas <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
---
 drivers/android/binder_alloc_selftest.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/android/binder_alloc_selftest.c +4 -0
diff -- a/drivers/android/binder_alloc_selftest.c b/drivers/android/binder_alloc_selftest.c
@@ -72,6 +72,10 @@ enum buf_end_align_type {
 	 * buf1 ]|[ buf2 | buf2 | buf2 ][ ...
 	 */
 	NEXT_NEXT_UNALIGNED,
+	/**
+	 * @LOOP_END: The number of enum values in &buf_end_align_type.
+	 * It is used for controlling loop termination.
+	 */
 	LOOP_END,
 };
 
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 22 lines · Randy Dunlap

Add kernel-doc notation for @LOOP_END to prevent a kernel-doc warning.

binder_alloc_selftest.c:76: warning: Enum value 'LOOP_END' not described in enum 'buf_end_align_type'

Cc Greg Kroah-Hartman <[email protected]>
Cc Arve Hjønnevåg <[email protected]>
Cc Todd Kjos <[email protected]>
Cc Martijn Coenen <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Carlos Llamas <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
---
 drivers/android/binder_alloc_selftest.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -- a/drivers/android/binder_alloc_selftest.c b/drivers/android/binder_alloc_selftest.c

drivers/android/binder_alloc_selftest.c enum buf_end_align_type { · line 81

Quoted 10 lines
drivers/android/binder_alloc_selftest.c +4 -0
@@ -72,6 +72,10 @@ enum buf_end_align_type {
 	 * buf1 ]|[ buf2 | buf2 | buf2 ][ ...
 	 */
 	NEXT_NEXT_UNALIGNED,
+	/**
+	 * @LOOP_END: The number of enum values in &buf_end_align_type.
+	 * It is used for controlling loop termination.
+	 */
 	LOOP_END,
 };
 

'LOOP_END' seems self explanatory to me but if this helps to clear the warning then why not. Thanks Randy!