Skip to content

Commit 68532b0

Browse files
diandersgregkh
authored andcommitted
driver core: Add kernel-doc for DEV_FLAG_COUNT enum value
commit 5b48431 upstream. Even though nobody should use this value (except when declaring the "flags" bitmap), kernel-doc still gets upset that it's not documented. It reports: WARNING: ../include/linux/device.h:519 Enum value 'DEV_FLAG_COUNT' not described in enum 'struct_device_flags' Add the description of DEV_FLAG_COUNT. Fixes: a2225b6 ("driver core: Don't let a device probe until it's ready") Reported-by: Randy Dunlap <rdunlap@infradead.org> Closes: https://lore.kernel.org/f318cd43-81fd-48b9-abf7-92af85f12f91@infradead.org Signed-off-by: Douglas Anderson <dianders@chromium.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Link: https://patch.msgid.link/20260413195910.1.I23aca74fe2d3636a47df196a80920fecb2643220@changeid Signed-off-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b69933e commit 68532b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/linux/device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ struct device_physical_location {
610610
*
611611
* @DEV_FLAG_READY_TO_PROBE: If set then device_add() has finished enough
612612
* initialization that probe could be called.
613+
* @DEV_FLAG_COUNT: Number of defined struct_device_flags.
613614
*/
614615
enum struct_device_flags {
615616
DEV_FLAG_READY_TO_PROBE = 0,

0 commit comments

Comments
 (0)