From: haver <haver@linux.vnet.ibm.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: arnd@arndb.de, gregkh@linuxfoundation.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Michael Jung <mijung@gmx.net>,
Michael Ruettger <michael@ibmra.de>,
Frank Haverkamp <haver@linux.ibm.com>,
Joerg-Stephan Vogt <jsvogt@de.ibm.com>
Subject: Re: [PATCH 18/20] misc: genwqe: card_base: Whole host of kerneldoc fixes
Date: Tue, 30 Jun 2020 09:24:03 +0200 [thread overview]
Message-ID: <ecadaa11d1c45974a31efa2c6b25e1ba@linux.vnet.ibm.com> (raw)
In-Reply-To: <20200629140442.1043957-19-lee.jones@linaro.org>
On 2020-06-29 16:04, Lee Jones wrote:
> From missing documentation for function arguments, to promotion
> obvious kerneldoc headers and incorrectly named arguments.
>
> Fixes the following W=1 warnings:
>
> drivers/misc/genwqe/card_base.c:175: warning: Function parameter or
> member 'cd' not described in 'genwqe_bus_reset'
> drivers/misc/genwqe/card_base.c:272: warning: Function parameter or
> member 'cd' not described in 'genwqe_recovery_on_fatal_gfir_required'
> drivers/misc/genwqe/card_base.c:293: warning: Function parameter or
> member 'cd' not described in 'genwqe_T_psec'
> drivers/misc/genwqe/card_base.c:314: warning: Function parameter or
> member 'cd' not described in 'genwqe_setup_pf_jtimer'
> drivers/misc/genwqe/card_base.c:334: warning: Function parameter or
> member 'cd' not described in 'genwqe_setup_vf_jtimer'
> drivers/misc/genwqe/card_base.c:557: warning: Function parameter or
> member 'cd' not described in 'genwqe_stop'
> drivers/misc/genwqe/card_base.c:617: warning: Function parameter or
> member 'cd' not described in 'genwqe_fir_checking'
> drivers/misc/genwqe/card_base.c:760: warning: Function parameter or
> member 'pci_dev' not described in 'genwqe_pci_fundamental_reset'
> drivers/misc/genwqe/card_base.c:889: warning: Function parameter or
> member 'data' not described in 'genwqe_health_thread'
> drivers/misc/genwqe/card_base.c:1046: warning: Function parameter or
> member 'cd' not described in 'genwqe_pci_setup'
> drivers/misc/genwqe/card_base.c:1131: warning: Function parameter or
> member 'cd' not described in 'genwqe_pci_remove'
> drivers/misc/genwqe/card_base.c:1151: warning: Function parameter or
> member 'pci_dev' not described in 'genwqe_probe'
> drivers/misc/genwqe/card_base.c:1151: warning: Function parameter or
> member 'id' not described in 'genwqe_probe'
> drivers/misc/genwqe/card_base.c:1151: warning: Excess function
> parameter 'pdev' description in 'genwqe_probe'
> drivers/misc/genwqe/card_base.c:1207: warning: Function parameter or
> member 'pci_dev' not described in 'genwqe_remove'
> drivers/misc/genwqe/card_base.c:1336: warning: Function parameter or
> member 'dev' not described in 'genwqe_devnode'
> drivers/misc/genwqe/card_base.c:1336: warning: Function parameter or
> member 'mode' not described in 'genwqe_devnode'
>
> Cc: Michael Jung <mijung@gmx.net>
> Cc: Michael Ruettger <michael@ibmra.de>
> Cc: Frank Haverkamp <haver@linux.ibm.com>
> Cc: Joerg-Stephan Vogt <jsvogt@de.ibm.com>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
> drivers/misc/genwqe/card_base.c | 24 +++++++++++++++++++++---
> 1 file changed, 21 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/misc/genwqe/card_base.c
> b/drivers/misc/genwqe/card_base.c
> index 809a6f46f6de3..93d2ed91c85b2 100644
> --- a/drivers/misc/genwqe/card_base.c
> +++ b/drivers/misc/genwqe/card_base.c
> @@ -165,6 +165,7 @@ static void genwqe_dev_free(struct genwqe_dev *cd)
>
> /**
> * genwqe_bus_reset() - Card recovery
> + * @cd: GenWQE device information
> *
> * pci_reset_function() will recover the device and ensure that the
> * registers are accessible again when it completes with success. If
> @@ -262,6 +263,7 @@ static void genwqe_tweak_hardware(struct genwqe_dev
> *cd)
>
> /**
> * genwqe_recovery_on_fatal_gfir_required() - Version depended actions
> + * @cd: GenWQE device information
> *
> * Bitstreams older than 2013-02-17 have a bug where fatal GFIRs must
> * be ignored. This is e.g. true for the bitstream we gave to the card
> @@ -280,6 +282,7 @@ int genwqe_flash_readback_fails(struct genwqe_dev
> *cd)
>
> /**
> * genwqe_T_psec() - Calculate PF/VF timeout register content
> + * @cd: GenWQE device information
> *
> * Note: From a design perspective it turned out to be a bad idea to
> * use codes here to specifiy the frequency/speed values. An old
> @@ -303,6 +306,7 @@ static int genwqe_T_psec(struct genwqe_dev *cd)
>
> /**
> * genwqe_setup_pf_jtimer() - Setup PF hardware timeouts for DDCB
> execution
> + * @cd: GenWQE device information
> *
> * Do this _after_ card_reset() is called. Otherwise the values will
> * vanish. The settings need to be done when the queues are inactive.
> @@ -329,6 +333,7 @@ static bool genwqe_setup_pf_jtimer(struct
> genwqe_dev *cd)
>
> /**
> * genwqe_setup_vf_jtimer() - Setup VF hardware timeouts for DDCB
> execution
> + * @cd: GenWQE device information
> */
> static bool genwqe_setup_vf_jtimer(struct genwqe_dev *cd)
> {
> @@ -543,6 +548,7 @@ static int genwqe_start(struct genwqe_dev *cd)
>
> /**
> * genwqe_stop() - Stop card operation
> + * @cd: GenWQE device information
> *
> * Recovery notes:
> * As long as genwqe_thread runs we might access registers during
> @@ -606,6 +612,7 @@ static int genwqe_health_check_cond(struct
> genwqe_dev *cd, u64 *gfir)
>
> /**
> * genwqe_fir_checking() - Check the fault isolation registers of the
> card
> + * @cd: GenWQE device information
> *
> * If this code works ok, can be tried out with help of the
> genwqe_poke tool:
> * sudo ./tools/genwqe_poke 0x8 0xfefefefefef
> @@ -750,6 +757,7 @@ static u64 genwqe_fir_checking(struct genwqe_dev
> *cd)
>
> /**
> * genwqe_pci_fundamental_reset() - trigger a PCIe fundamental reset
> on the slot
> + * @pci_dev: PCI device information struct
> *
> * Note: pci_set_pcie_reset_state() is not implemented on all archs,
> so this
> * reset method will not work in all cases.
> @@ -814,8 +822,9 @@ static int genwqe_platform_recovery(struct
> genwqe_dev *cd)
> return rc;
> }
>
> -/*
> +/**
> * genwqe_reload_bistream() - reload card bitstream
> + * @cd: GenWQE device information
> *
> * Set the appropriate register and call fundamental reset to reaload
> the card
> * bitstream.
> @@ -868,6 +877,7 @@ static int genwqe_reload_bistream(struct genwqe_dev
> *cd)
>
> /**
> * genwqe_health_thread() - Health checking thread
> + * @data: GenWQE device information
> *
> * This thread is only started for the PF of the card.
> *
> @@ -1041,6 +1051,7 @@ static int genwqe_health_check_stop(struct
> genwqe_dev *cd)
>
> /**
> * genwqe_pci_setup() - Allocate PCIe related resources for our card
> + * @cd: GenWQE device information
> */
> static int genwqe_pci_setup(struct genwqe_dev *cd)
> {
> @@ -1126,6 +1137,7 @@ static int genwqe_pci_setup(struct genwqe_dev
> *cd)
>
> /**
> * genwqe_pci_remove() - Free PCIe related resources for our card
> + * @cd: GenWQE device information
> */
> static void genwqe_pci_remove(struct genwqe_dev *cd)
> {
> @@ -1140,7 +1152,8 @@ static void genwqe_pci_remove(struct genwqe_dev
> *cd)
>
> /**
> * genwqe_probe() - Device initialization
> - * @pdev: PCI device information struct
> + * @pci_dev: PCI device information struct
> + * @id: PCI device ID
> *
> * Callable for multiple cards. This function is called on bind.
> *
> @@ -1200,6 +1213,7 @@ static int genwqe_probe(struct pci_dev *pci_dev,
>
> /**
> * genwqe_remove() - Called when device is removed (hot-plugable)
> + * @pci_dev: PCI device information struct
> *
> * Or when driver is unloaded respecitively when unbind is done.
> */
> @@ -1219,8 +1233,10 @@ static void genwqe_remove(struct pci_dev
> *pci_dev)
> genwqe_dev_free(cd);
> }
>
> -/*
> +/**
> * genwqe_err_error_detected() - Error detection callback
> + * @pci_dev: PCI device information struct
> + * @state: PCI channel state
> *
> * This callback is called by the PCI subsystem whenever a PCI bus
> * error is detected.
> @@ -1328,6 +1344,8 @@ static struct pci_driver genwqe_driver = {
>
> /**
> * genwqe_devnode() - Set default access mode for genwqe devices.
> + * @dev: Pointer to device (unused)
> + * @mode: Carrier to pass-back given mode (permissions)
> *
> * Default mode should be rw for everybody. Do not change default
> * device name.
Thanks for adding the documentation.
Signed-off-by: Frank Haverkamp <haver@linux.ibm.com>
next prev parent reply other threads:[~2020-06-30 7:24 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-29 14:04 [PATCH 00/20] Fix a bunch more W=1 warnings in Misc Lee Jones
2020-06-29 14:04 ` [PATCH 01/20] misc: pti: Repair kerneldoc formatting issues Lee Jones
2020-06-29 14:04 ` [PATCH 02/20] misc: pti: Remove unparsable empty line in function header Lee Jones
2020-06-29 14:04 ` [PATCH 03/20] misc: habanalabs: firmware_if: Add missing 'fw_name' and 'dst' entries to " Lee Jones
2020-06-29 14:57 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 04/20] misc: habanalabs: pci: Fix a variety of kerneldoc issues Lee Jones
2020-06-29 14:58 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 05/20] misc: habanalabs: irq: Repair kerneldoc formatting issues Lee Jones
2020-06-29 14:59 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 06/20] misc: habanalabs: goya: Omit pointless check ensuring addr is >=0 Lee Jones
2020-06-29 15:00 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 07/20] misc: habanalabs: pci: Scrub documentation for non-present function argument Lee Jones
2020-06-29 15:00 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 08/20] misc: habanalabs: goya: goya_coresight: Remove set but unused variable 'val' Lee Jones
2020-06-29 15:01 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 09/20] misc: habanalabs: gaudi: Remove ill placed asterisk from kerneldoc header Lee Jones
2020-06-29 15:01 ` Oded Gabbay
2020-06-29 14:04 ` [PATCH 10/20] misc: habanalabs: gaudi: gaudi_security: Repair incorrectly named function arg Lee Jones
2020-06-29 15:02 ` Oded Gabbay
2020-06-29 16:23 ` [PATCH v2 " Lee Jones
2020-06-29 14:04 ` [PATCH 11/20] misc: enclosure: Fix some kerneldoc anomalies Lee Jones
2020-06-29 14:04 ` [PATCH 12/20] misc: lattice-ecp3-config: Remove set but clearly unused variable 'ret' Lee Jones
2020-06-29 14:04 ` [PATCH 13/20] misc: pch_phub: Provide descriptions for 'chip' argument Lee Jones
2020-06-29 14:04 ` [PATCH 14/20] misc: pch_phub: Remove superfluous descriptions to non-existent args 'offset_address' Lee Jones
2020-06-29 14:04 ` [PATCH 15/20] misc: enclosure: Update enclosure_remove_device() documentation to match reality Lee Jones
2020-06-29 14:04 ` [PATCH 16/20] misc: genwqe: card_base: Remove set but unused variable 'rc' Lee Jones
2020-06-30 7:17 ` haver
2020-06-30 7:42 ` Lee Jones
2020-06-30 8:03 ` haver
2020-06-30 8:12 ` Lee Jones
2020-06-29 14:04 ` [PATCH 17/20] misc: genwqe: card_base: Do not pass unused argument 'fatal_err' Lee Jones
2020-06-30 7:35 ` haver
2020-06-30 9:10 ` Lee Jones
2020-06-30 9:54 ` haver
2020-06-30 14:00 ` Lee Jones
2020-06-29 14:04 ` [PATCH 18/20] misc: genwqe: card_base: Whole host of kerneldoc fixes Lee Jones
2020-06-30 7:24 ` haver [this message]
2020-06-29 14:04 ` [PATCH 19/20] misc: genwqe: card_dev: " Lee Jones
2020-06-30 7:25 ` haver
2020-06-29 14:04 ` [PATCH 20/20] misc: genwqe: card_utils: Whole a plethora of documentation issues Lee Jones
2020-06-30 7:26 ` haver
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=ecadaa11d1c45974a31efa2c6b25e1ba@linux.vnet.ibm.com \
--to=haver@linux.vnet.ibm.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=haver@linux.ibm.com \
--cc=jsvogt@de.ibm.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@ibmra.de \
--cc=mijung@gmx.net \
/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