Skip to content

Commit 0c59e61

Browse files
rddunlapjwrdegoede
authored andcommitted
platform/mellanox: mlxbf-pmc: fix kernel-doc notation
Fix kernel-doc warnings reported by the kernel test robot: drivers/platform/mellanox/mlxbf-pmc.c:82: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Structure to hold attribute and block info for each sysfs entry drivers/platform/mellanox/mlxbf-pmc.c:94: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Structure to hold info for each HW block drivers/platform/mellanox/mlxbf-pmc.c:121: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Structure to hold PMC context info drivers/platform/mellanox/mlxbf-pmc.c:148: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Structure to hold supported events for each block Also fix typos in a few struct member names. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: kernel test robot <lkp@intel.com> Cc: Aditya Srivastava <yashsri421@gmail.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Mark Gross <mgross@linux.intel.com> Cc: Vadim Pasternak <vadimp@nvidia.com> Cc: platform-driver-x86@vger.kernel.org Link: https://lore.kernel.org/r/20210822171742.26921-1-rdunlap@infradead.org Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 66a91c0 commit 0c59e61

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

drivers/platform/mellanox/mlxbf-pmc.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
#define MLXBF_PMC_L3C_PERF_CNT_HIGH_VAL GENMASK(24, 0)
8080

8181
/**
82-
* Structure to hold attribute and block info for each sysfs entry
82+
* struct mlxbf_pmc_attribute - Structure to hold attribute and block info
83+
* for each sysfs entry
8384
* @dev_attr: Device attribute struct
8485
* @index: index to identify counter number within a block
8586
* @nr: block number to which the sysfs belongs
@@ -91,7 +92,7 @@ struct mlxbf_pmc_attribute {
9192
};
9293

9394
/**
94-
* Structure to hold info for each HW block
95+
* struct mlxbf_pmc_block_info - Structure to hold info for each HW block
9596
*
9697
* @mmio_base: The VA at which the PMC block is mapped
9798
* @blk_size: Size of each mapped region
@@ -102,7 +103,7 @@ struct mlxbf_pmc_attribute {
102103
* @attr_event_list: Attributes for "event_list" sysfs files
103104
* @attr_enable: Attributes for "enable" sysfs files
104105
* @block_attr: All attributes needed for the block
105-
* @blcok_attr_grp: Attribute group for the block
106+
* @block_attr_grp: Attribute group for the block
106107
*/
107108
struct mlxbf_pmc_block_info {
108109
void __iomem *mmio_base;
@@ -118,7 +119,7 @@ struct mlxbf_pmc_block_info {
118119
};
119120

120121
/**
121-
* Structure to hold PMC context info
122+
* struct mlxbf_pmc_context - Structure to hold PMC context info
122123
*
123124
* @pdev: The kernel structure representing the device
124125
* @total_blocks: Total number of blocks
@@ -127,7 +128,7 @@ struct mlxbf_pmc_block_info {
127128
* @block_name: Block name
128129
* @block: Block info
129130
* @groups: Attribute groups from each block
130-
* @sv_sreg_support: Whether SMCs are used to access performance registers
131+
* @svc_sreg_support: Whether SMCs are used to access performance registers
131132
* @sreg_tbl_perf: Secure register access table number
132133
* @event_set: Event set to use
133134
*/
@@ -145,7 +146,7 @@ struct mlxbf_pmc_context {
145146
};
146147

147148
/**
148-
* Structure to hold supported events for each block
149+
* struct mlxbf_pmc_events - Structure to hold supported events for each block
149150
* @evt_num: Event number used to program counters
150151
* @evt_name: Name of the event
151152
*/

0 commit comments

Comments
 (0)