coresight: coresight.h: add '*' to kernel-doc lines
PATCH v3 1/1 coresight: coresight.h: add '*' to kernel-doc lines
kernel-doc reports 2 (kernel-doc) lines in coresight.h that don't have a beginning '*' in them, so fix these lines.
Also convert struct coresight_trace_id_map to kernel-doc format to remove another warning.
Warning: include/linux/coresight.h:173 bad line:
connected to @src_port. NULL until the device is created
Warning: include/linux/coresight.h:177 bad line:
needs to be filtered.
Warning: include/linux/coresight.h:236 This comment starts with '/**',
but isn't a kernel-doc comment.
---
v2: rebase & resend
v3: rebase & resend
--- include/linux/coresight.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/coresight.h +3 -3
@@ -177,11 +177,11 @@ struct coresight_desc {* @dest_port: destination's input port number @src_port is connected to. * @dest_fwnode: destination component's fwnode handle. * @dest_dev: a @coresight_device representation of the component -connected to @src_port. NULL until the device is created +* connected to @src_port. NULL until the device is created * @link: Representation of the connection as a sysfs link. * @filter_src_fwnode: filter source component's fwnode handle. * @filter_src_dev: a @coresight_device representation of the component that -needs to be filtered. +* needs to be filtered. * * The full connection structure looks like this, where in_conns store * references to same connection as the source device's out_conns.
@@ -234,7 +234,7 @@ struct coresight_sysfs_link {#define CORESIGHT_TRACE_IDS_MAX 128/** -* Trace ID map. +* struct coresight_trace_id_map - Trace ID map. * * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs. * Initialised so that the reserved IDs are permanently marked as
ping?
Quoted 57 lines · Randy Dunlap
kernel-doc reports 2 (kernel-doc) lines in
coresight.hthat don't have a beginning '*' in them, so fix these lines.Also convert struct
coresight_trace_id_mapto kernel-doc format to remove another warning.Warning:
include/linux/coresight.h:173bad line:
connected to @src_port. NULL until the device is created
Warning:include/linux/coresight.h:177bad line:
needs to be filtered.
Warning:include/linux/coresight.h:236This comment starts with '/**',
but isn't a kernel-doc comment.Fixes ec9903d6cc34 ("coresight: Add support for trace filtering by source")Fixes d49c9cf15f89 ("coresight: Rename connection members to make the direction explicit")Signed-off-by Randy Dunlap <[email protected]>---
v2: rebase & resend
v3: rebase & resendCc James Clark <[email protected]>Cc Tao Zhang <[email protected]>Cc Suzuki K Poulose <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Mike Leach <[email protected]>Cc Leo Yan <[email protected]>--- include/linux/coresight.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/linux/coresight.h +3
-3@@ -177,11 +177,11 @@ struct coresight_desc {* @dest_port: destination's input port number @src_port is connected to. * @dest_fwnode: destination component's fwnode handle. * @dest_dev: a @coresight_device representation of the component -connected to @src_port. NULL until the device is created +* connected to @src_port. NULL until the device is created * @link: Representation of the connection as a sysfs link. * @filter_src_fwnode: filter source component's fwnode handle. * @filter_src_dev: a @coresight_device representation of the component that -needs to be filtered. +* needs to be filtered. * * The full connection structure looks like this, where in_conns store * references to same connection as the source device's out_conns. @@ -234,7 +234,7 @@ struct coresight_sysfs_link {#define CORESIGHT_TRACE_IDS_MAX 128/** -* Trace ID map. +* struct coresight_trace_id_map - Trace ID map. * * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs. * Initialised so that the reserved IDs are permanently marked as
Signature · 1 line
~Randy
Quoted 50 lines · Randy Dunlap
kernel-doc reports 2 (kernel-doc) lines in
coresight.hthat don't have a beginning '*' in them, so fix these lines.Also convert struct
coresight_trace_id_mapto kernel-doc format to remove another warning.Warning:
include/linux/coresight.h:173bad line:
connected to @src_port. NULL until the device is created
Warning:include/linux/coresight.h:177bad line:
needs to be filtered.
Warning:include/linux/coresight.h:236This comment starts with '/**',
but isn't a kernel-doc comment.Fixes ec9903d6cc34 ("coresight: Add support for trace filtering by source")Fixes d49c9cf15f89 ("coresight: Rename connection members to make the direction explicit")Signed-off-by Randy Dunlap <[email protected]>---
v2: rebase & resend
v3: rebase & resendCc James Clark <[email protected]>Cc Tao Zhang <[email protected]>Cc Suzuki K Poulose <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Mike Leach <[email protected]>Cc Leo Yan <[email protected]>--- include/linux/coresight.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/linux/coresight.h +2
-2@@ -177,11 +177,11 @@ struct coresight_desc {* @dest_port: destination's input port number @src_port is connected to. * @dest_fwnode: destination component's fwnode handle. * @dest_dev: a @coresight_device representation of the component -connected to @src_port. NULL until the device is created +* connected to @src_port. NULL until the device is created * @link: Representation of the connection as a sysfs link. * @filter_src_fwnode: filter source component's fwnode handle. * @filter_src_dev: a @coresight_device representation of the component that -needs to be filtered. +* needs to be filtered. * * The full connection structure looks like this, where in_conns store * references to same connection as the source device's out_conns.
include/linux/coresight.h struct coresight_sysfs_link { · line 240
Quoted 8 lines
include/linux/coresight.h +1
-1@@ -234,7 +234,7 @@ struct coresight_sysfs_link {#define CORESIGHT_TRACE_IDS_MAX 128/** -* Trace ID map. +* struct coresight_trace_id_map - Trace ID map. * * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs. * Initialised so that the reserved IDs are permanently marked as
But still there are more warnings left in the documentation file even after the patch applied. Should they be fixed as well ?
./scripts/kernel-doc -none include/linux/coresight.h
Warning: include/linux/coresight.h:216 struct member 'src_dev' not described in 'coresight_connection'
Warning: include/linux/coresight.h:216 struct member 'src_refcnt' not described in 'coresight_connection'
Warning: include/linux/coresight.h:216 struct member 'dest_refcnt' not described in 'coresight_connection'
Warning: include/linux/coresight.h:248 struct member 'cpu_map' not described in 'coresight_trace_id_map'
Warning: include/linux/coresight.h:248 struct member 'lock' not described in 'coresight_trace_id_map'
Warning: include/linux/coresight.h:312 struct member 'perf_sink_id_map' not described in 'coresight_device'
Warning: include/linux/coresight.h:216 struct member 'src_dev' not described in 'coresight_connection'
Warning: include/linux/coresight.h:216 struct member 'src_refcnt' not described in 'coresight_connection'
Warning: include/linux/coresight.h:216 struct member 'dest_refcnt' not described in 'coresight_connection'
Warning: include/linux/coresight.h:248 struct member 'cpu_map' not described in 'coresight_trace_id_map'
Warning: include/linux/coresight.h:248 struct member 'lock' not described in 'coresight_trace_id_map'
Warning: include/linux/coresight.h:312 struct member 'perf_sink_id_map' not described in 'coresight_device'
Quoted 54 lines · Anshuman Khandual
Quoted 51 lines · Randy Dunlap
kernel-doc reports 2 (kernel-doc) lines in
coresight.hthat don't have a beginning '*' in them, so fix these lines.Also convert struct
coresight_trace_id_mapto kernel-doc format to remove another warning.Warning:
include/linux/coresight.h:173bad line:
connected to @src_port. NULL until the device is created
Warning:include/linux/coresight.h:177bad line:
needs to be filtered.
Warning:include/linux/coresight.h:236This comment starts with '/**',
but isn't a kernel-doc comment.Fixes ec9903d6cc34 ("coresight: Add support for trace filtering by source")Fixes d49c9cf15f89 ("coresight: Rename connection members to make the direction explicit")Signed-off-by Randy Dunlap <[email protected]>---
v2: rebase & resend
v3: rebase & resendCc James Clark <[email protected]>Cc Tao Zhang <[email protected]>Cc Suzuki K Poulose <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Mike Leach <[email protected]>Cc Leo Yan <[email protected]>--- include/linux/coresight.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/linux/coresight.h +2
-2@@ -177,11 +177,11 @@ struct coresight_desc {* @dest_port: destination's input port number @src_port is connected to. * @dest_fwnode: destination component's fwnode handle. * @dest_dev: a @coresight_device representation of the component -connected to @src_port. NULL until the device is created +* connected to @src_port. NULL until the device is created * @link: Representation of the connection as a sysfs link. * @filter_src_fwnode: filter source component's fwnode handle. * @filter_src_dev: a @coresight_device representation of the component that -needs to be filtered. +* needs to be filtered. * * The full connection structure looks like this, where in_conns store * references to same connection as the source device's out_conns. @@ -234,7 +234,7 @@ struct coresight_sysfs_link {#define CORESIGHT_TRACE_IDS_MAX 128
Quoted 10 lines
include/linux/coresight.h struct coresight_sysfs_link { · line 240
Quoted 7 lines
include/linux/coresight.h +1
-1/** -* Trace ID map. +* struct coresight_trace_id_map - Trace ID map. * * @used_ids: Bitmap to register available (bit = 0) and in use (bit = 1) IDs. * Initialised so that the reserved IDs are permanently marked as But still there are more warnings left in the documentation file even after the patch applied. Should they be fixed as well ?
Yes, I know that. Hopefully someone with expertise in this area can add a few comments there.
Quoted 7 lines
./scripts/kernel-doc-noneinclude/linux/coresight.h
Warning:include/linux/coresight.h:216struct member 'src_dev' not described in 'coresight_connection'
Warning:include/linux/coresight.h:216struct member 'src_refcnt' not described in 'coresight_connection'
Warning:include/linux/coresight.h:216struct member 'dest_refcnt' not described in 'coresight_connection'
Warning:include/linux/coresight.h:248struct member 'cpu_map' not described in 'coresight_trace_id_map'
Warning:include/linux/coresight.h:248struct member 'lock' not described in 'coresight_trace_id_map'
Warning:include/linux/coresight.h:312struct member 'perf_sink_id_map' not described in 'coresight_device'
Note that half of these are just duplicates of the lines above.
Quoted 6 lines
Warning:
include/linux/coresight.h:216struct member 'src_dev' not described in 'coresight_connection'
Warning:include/linux/coresight.h:216struct member 'src_refcnt' not described in 'coresight_connection'
Warning:include/linux/coresight.h:216struct member 'dest_refcnt' not described in 'coresight_connection'
Warning:include/linux/coresight.h:248struct member 'cpu_map' not described in 'coresight_trace_id_map'
Warning:include/linux/coresight.h:248struct member 'lock' not described in 'coresight_trace_id_map'
Warning:include/linux/coresight.h:312struct member 'perf_sink_id_map' not described in 'coresight_device'
thanks.
Signature · 1 line
~Randy