Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: pata_amd: Remove superfluous, add missing and fix broken params

Fixes the following W=1 kernel build warning(s):

drivers/ata/pata_amd.c:179: warning: Excess function parameter 'adev' description in 'amd_fifo_setup'
drivers/ata/pata_amd.c:331: warning: Function parameter or member 'link' not described in 'nv_pre_reset'
drivers/ata/pata_amd.c:331: warning: Function parameter or member 'deadline' not described in 'nv_pre_reset'
drivers/ata/pata_amd.c:331: warning: expecting prototype for nv_probe_init(). Prototype was for nv_pre_reset() instead

Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Lee Jones and committed by
Jens Axboe
73b90681 5c16c0ce

+2 -2
+2 -2
drivers/ata/pata_amd.c
··· 167 167 /** 168 168 * amd_fifo_setup - set the PIO FIFO for ATA/ATAPI 169 169 * @ap: ATA interface 170 - * @adev: ATA device 171 170 * 172 171 * Set the PCI fifo for this device according to the devices present 173 172 * on the bus at this point in time. We need to turn the post write buffer ··· 320 321 321 322 /** 322 323 * nv_probe_init - cable detection 323 - * @lin: ATA link 324 + * @link: ATA link 325 + * @deadline: deadline jiffies for the operation 324 326 * 325 327 * Perform cable detection. The BIOS stores this in PCI config 326 328 * space for us.