[PATCH v2 02/10] platform/x86: dell: dcdbas: Add missing kernel-doc descriptions
From: Brian Mak
Date: Mon Nov 23 2026 - 18:10:20 EST
Several kernel-doc comments in dcdbas are missing descriptions for
their function parameters, which causes kernel-doc warnings in W=1
builds:
function parameter 'size' not described in 'smi_data_buf_realloc'
function parameter 'smi_cmd' not described in 'dcdbas_smi_request'
function parameter 'dev' not described in 'smi_request_store'
...
function parameter 'nb' not described in 'dcdbas_reboot_notify'
Add the missing parameter descriptions and a short description for
smi_request_store(), which had none.
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202611211817.BLHa92e0-lkp@xxxxxxxxx/
Signed-off-by: Brian Mak <bmak@xxxxxxxxxx>
---
drivers/platform/x86/dell/dcdbas.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/dell/dcdbas.c b/drivers/platform/x86/dell/dcdbas.c
index 678f44252a45..62bff0aaba11 100644
--- a/drivers/platform/x86/dell/dcdbas.c
+++ b/drivers/platform/x86/dell/dcdbas.c
@@ -99,6 +99,7 @@ static void smi_data_buf_free(void)
/**
* smi_data_buf_realloc: grow SMI data buffer if needed
+ * @size: minimum required buffer size in bytes
*/
static int smi_data_buf_realloc(unsigned long size)
{
@@ -278,6 +279,7 @@ static int raise_smi(void *par)
}
/**
* dcdbas_smi_request: generate SMI request
+ * @smi_cmd: SMI command to issue
*
* Called with smi_data_lock.
*/
@@ -301,7 +303,11 @@ int dcdbas_smi_request(struct smi_cmd *smi_cmd)
EXPORT_SYMBOL(dcdbas_smi_request);
/**
- * smi_request_store:
+ * smi_request_store: handle a write to the smi_request sysfs attribute
+ * @dev: device the attribute belongs to
+ * @attr: device attribute being written
+ * @buf: value written by userspace
+ * @count: number of bytes in @buf
*
* The valid values are:
* 0: zero SMI data buffer
@@ -610,6 +616,9 @@ static int dcdbas_check_wsmt(void)
/**
* dcdbas_reboot_notify: handle reboot notification for host control
+ * @nb: notifier block
+ * @code: reboot event (SYS_DOWN, SYS_HALT or SYS_POWER_OFF)
+ * @unused: unused
*/
static int dcdbas_reboot_notify(struct notifier_block *nb, unsigned long code,
void *unused)
--
2.53.0