From: Randy Dunlap <rdunlap@infradead.org>
To: linux-kernel@vger.kernel.org
Cc: Randy Dunlap <rdunlap@infradead.org>,
Frank Haverkamp <haver@linux.ibm.com>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [PATCH] misc: genwqe: fix various kernel-doc warnings
Date: Mon, 23 Nov 2026 16:44:46 -0800 [thread overview]
Message-ID: <20261124004446.2629376-1-rdunlap@infradead.org> (raw)
Fix a variety of kernel-doc warnings in genwqe source files:
- don't use "/**" to begin non-kernel-doc comments
- repair mismatched struct & function prototypes so that the comments
match the struct or function name
- add some function parameter comments that were missing
- add some struct member comments that were missing or were misnamed
- don't introduce macros between a struct's kernel-doc and the
struct declaration
- use "enum" for enum kernel-doc instead of "struct"
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Frank Haverkamp <haver@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/genwqe/card_base.h | 31 ++++++++++++++--------
drivers/misc/genwqe/card_ddcb.h | 14 ++++-----
drivers/misc/genwqe/genwqe_driver.h | 4 +-
include/uapi/linux/genwqe/genwqe_card.h | 5 ++-
4 files changed, 33 insertions(+), 21 deletions(-)
--- linux-next-20261123.orig/drivers/misc/genwqe/card_ddcb.h
+++ linux-next-20261123/drivers/misc/genwqe/card_ddcb.h
@@ -2,7 +2,7 @@
#ifndef __CARD_DDCB_H__
#define __CARD_DDCB_H__
-/**
+/*
* IBM Accelerator Family 'GenWQE'
*
* (C) Copyright IBM Corp. 2013
@@ -19,6 +19,10 @@
#include "genwqe_driver.h"
#include "card_base.h"
+#define ASIV_LENGTH 104 /* Old specification without ATS field */
+#define ASIV_LENGTH_ATS 96 /* New specification with ATS field */
+#define ASV_LENGTH 64
+
/**
* struct ddcb - Device Driver Control Block DDCB
* @hsi: Hardware software interlock
@@ -30,16 +34,12 @@
* @acfunc: Accelerator function addresses a unit within the chip
* @cmd: Command to work on
* @cmdopts_16: Options for the command
- * @asiv: Input data
+ * @n.asiv: Input data
* @asv: Output data
*
* The DDCB data format is big endian. Multiple consequtive DDBCs form
* a DDCB queue.
*/
-#define ASIV_LENGTH 104 /* Old specification without ATS field */
-#define ASIV_LENGTH_ATS 96 /* New specification with ATS field */
-#define ASV_LENGTH 64
-
struct ddcb {
union {
__be32 icrc_hsi_shi_32; /* iCRC, Hardware/SW interlock */
@@ -160,7 +160,7 @@ struct ddcb {
#define SG_END_LIST (0x0)
/**
- * struct sglist - Scatter gather list
+ * struct sg_entry - Scatter gather list
* @target_addr: Either a dma addr of memory to work on or a
* dma addr or a subsequent sglist block.
* @len: Length of the data block.
--- linux-next-20261123.orig/drivers/misc/genwqe/genwqe_driver.h
+++ linux-next-20261123/drivers/misc/genwqe/genwqe_driver.h
@@ -2,7 +2,7 @@
#ifndef __GENWQE_DRIVER_H__
#define __GENWQE_DRIVER_H__
-/**
+/*
* IBM Accelerator Family 'GenWQE'
*
* (C) Copyright IBM Corp. 2013
@@ -37,7 +37,7 @@
#define GENWQE_MAX_MINOR 128 /* up to 128 possible genwqe devices */
/**
- * genwqe_requ_alloc() - Allocate a new DDCB execution request
+ * ddcb_requ_alloc() - Allocate a new DDCB execution request
*
* This data structure contains the user visiable fields of the DDCB
* to be executed.
--- linux-next-20261123.orig/drivers/misc/genwqe/card_base.h
+++ linux-next-20261123/drivers/misc/genwqe/card_base.h
@@ -2,7 +2,7 @@
#ifndef __CARD_BASE_H__
#define __CARD_BASE_H__
-/**
+/*
* IBM Accelerator Family 'GenWQE'
*
* (C) Copyright IBM Corp. 2013
@@ -145,16 +145,19 @@ enum genwqe_dbg_type {
/**
- * struct dma_mapping_type - Mapping type definition
+ * enum dma_mapping_type - Mapping type definition
*
* To avoid memcpying data arround we use user memory directly. To do
* this we need to pin/swap-in the memory and request a DMA address
* for it.
*/
enum dma_mapping_type {
- GENWQE_MAPPING_RAW = 0, /* contignous memory buffer */
- GENWQE_MAPPING_SGL_TEMP, /* sglist dynamically used */
- GENWQE_MAPPING_SGL_PINNED, /* sglist used with pinning */
+ /** @GENWQE_MAPPING_RAW: contiguous memory buffer */
+ GENWQE_MAPPING_RAW = 0,
+ /** @GENWQE_MAPPING_SGL_TEMP: sglist dynamically used */
+ GENWQE_MAPPING_SGL_TEMP,
+ /** @GENWQE_MAPPING_SGL_PINNED: sglist used with pinning */
+ GENWQE_MAPPING_SGL_PINNED,
};
/**
@@ -200,7 +203,7 @@ static inline void genwqe_mapping_init(s
* @ddcb_req: Associated requests (one per DDCB)
* @ddcb_waitqs: Associated wait queues (one per DDCB)
* @ddcb_lock: Lock to protect queuing operations
- * @ddcb_waitq: Wait on next DDCB finishing
+ * @busy_waitq: Wait on next DDCB finishing
*/
struct ddcb_queue {
@@ -250,7 +253,7 @@ struct genwqe_ffdc {
* @card_state: Card operation state, see above
* @ffdc: First Failure Data Capture buffers for each unit
* @card_thread: Working thread to operate the DDCB queue
- * @card_waitq: Wait queue used in card_thread
+ * @queue_waitq: Wait queue used in card_thread
* @queue: DDCB queue
* @health_thread: Card monitoring thread (only for PFs)
* @health_waitq: Wait queue used in health_thread
@@ -334,14 +337,20 @@ enum genwqe_requ_state {
/**
* struct genwqe_sgl - Scatter gather list describing user-space memory
- * @sgl: scatter gather list needs to be 128 byte aligned
* @sgl_dma_addr: dma address of sgl
+ * @sgl: scatter gather list needs to be 128 byte aligned
* @sgl_size: size of area used for sgl
* @user_addr: user-space address of memory area
* @user_size: size of user-space memory area
- * @page: buffer for partial pages if needed
- * @page_dma_addr: dma address partial pages
* @write: should we write it back to userspace?
+ * @nr_pages: number of pages needed
+ * @fpage_offs: offset in first page
+ * @fpage_size: size of first page
+ * @lpage_size: size of last page
+ * @fpage: buffer for partial first page if needed
+ * @fpage_dma_addr: dma address partial first page
+ * @lpage: buffer for partial last page if needed
+ * @lpage_dma_addr: dma address partial last page
*/
struct genwqe_sgl {
dma_addr_t sgl_dma_addr;
@@ -416,6 +425,7 @@ int genwqe_release_service_layer(struct
/**
* genwqe_get_slu_id() - Read Service Layer Unit Id
+ * @cd: genwqe device
* Return: 0x00: Development code
* 0x01: SLC1 (old)
* 0x02: SLC2 (sept2012)
@@ -547,6 +557,7 @@ bool genwqe_need_err_masking(struct genw
/**
* genwqe_is_privileged() - Determine operation mode for PCI function
+ * @cd: genwqe device
*
* On Intel with SRIOV support we see:
* PF: is_physfn = 1 is_virtfn = 0
--- linux-next-20261123.orig/include/uapi/linux/genwqe/genwqe_card.h
+++ linux-next-20261123/include/uapi/linux/genwqe/genwqe_card.h
@@ -2,7 +2,7 @@
#ifndef __GENWQE_CARD_H__
#define __GENWQE_CARD_H__
-/**
+/*
* IBM Accelerator Family 'GenWQE'
*
* (C) Copyright IBM Corp. 2013
@@ -455,7 +455,8 @@ struct genwqe_ddcb_cmd {
* struct genwqe_mem - Memory pinning/unpinning information
* @addr: virtual user space address
* @size: size of the area pin/dma-map/unmap
- * direction: 0: read/1: read and write
+ * @direction: 0: read/1: read and write
+ * @flags: reserved
*
* Avoid pinning and unpinning of memory pages dynamically. Instead
* the idea is to pin the whole buffer space required for DDCB
reply other threads:[~2026-11-24 0:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124004446.2629376-1-rdunlap@infradead.org \
--to=rdunlap@infradead.org \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=haver@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®