misc: genwqe: fix various kernel-doc warnings
Subsystems (2)
PATCH 1/1 misc: genwqe: fix various kernel-doc warnings
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 <[email protected]>
---
Cc: Frank Haverkamp <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
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(-)
drivers/misc/genwqe/card_ddcb.h +7 -7
@@ -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.
drivers/misc/genwqe/genwqe_driver.h +2 -2
@@ -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.
drivers/misc/genwqe/card_base.h +21 -10
@@ -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
include/uapi/linux/genwqe/genwqe_card.h +3 -2
@@ -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