Skip to contentSkip to conversation

device property: mark internal data as private for kernel-doc

PATCH Applied Randy Dunlap 3 participants 3 messages Jul 21 – Jul 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 device property: mark internal data as private for kernel-doc

Mark the @value union members as private since they are an internal representation of @value. This prevents kernel-doc warnings:

Warning: include/linux/property.h:406 struct member 'u8_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'u16_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'u32_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'u64_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'str' not described
in 'property_entry'

---
v2: use private: for the internal representation of @value (Andy S.).
drop Sakari's Ack since the patch changed.

Cc Andy Shevchenko <[email protected]>
Cc Daniel Scally <[email protected]>
Cc Heikki Krogerus <[email protected]>
Cc Sakari Ailus <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Danilo Krummrich <[email protected]>
 include/linux/property.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/property.h +2 -0
@@ -397,11 +397,13 @@ struct property_entry {
 	union {
 		const void *pointer;
 		union {
+			/* private: internal representation of @value */
 			u8 u8_data[sizeof(u64) / sizeof(u8)];
 			u16 u16_data[sizeof(u64) / sizeof(u16)];
 			u32 u32_data[sizeof(u64) / sizeof(u32)];
 			u64 u64_data[sizeof(u64) / sizeof(u64)];
 			const char *str[sizeof(u64) / sizeof(char *)];
+			/* public: */
 		} value;
 	};
 };
reviewer Reviewed-by on v2 1/1
#1 lore raw
Quoted 13 lines · Randy Dunlap

Mark the @value union members as private since they are an internal representation of @value. This prevents kernel-doc warnings:

Warning: include/linux/property.h:406 struct member 'u8_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'u16_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'u32_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'u64_data' not
described in 'property_entry'
Warning: include/linux/property.h:406 struct member 'str' not described
in 'property_entry'

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer Applied
#2 lore raw
In reply to Randy Dunlap
Quoted 1 line · Randy Dunlap

[PATCH v2] device property: mark internal data as private for kernel-doc

Applied, thanks!

Branch: driver-core-testing
Tree: git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git

[1/1] device property: mark internal data as private for kernel-doc

      commit: 503735347320

The patch will appear in the next linux-next integration (typically within 24 hours on weekdays).

The patch is in the driver-core-testing branch and will be promoted to driver-core-next after validation.