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

Configure Feed

Select the types of activity you want to include in your feed.

alpha: pci-sysfs: fix all kernel-doc warnings

Fix all kernel-doc warnings in arch/alpha/kernel/pci-sysfs.c:

arch/alpha/kernel/pci-sysfs.c:67: warning: No description found for return value of 'pci_mmap_resource'
arch/alpha/kernel/pci-sysfs.c:115: warning: Function parameter or member 'pdev' not described in 'pci_remove_resource_files'
arch/alpha/kernel/pci-sysfs.c:115: warning: Excess function parameter 'dev' description in 'pci_remove_resource_files'
arch/alpha/kernel/pci-sysfs.c:230: warning: Function parameter or member 'pdev' not described in 'pci_create_resource_files'
arch/alpha/kernel/pci-sysfs.c:230: warning: Excess function parameter 'dev' description in 'pci_create_resource_files'
arch/alpha/kernel/pci-sysfs.c:232: warning: No description found for return value of 'pci_create_resource_files'
arch/alpha/kernel/pci-sysfs.c:305: warning: Function parameter or member 'bus' not described in 'pci_adjust_legacy_attr'
arch/alpha/kernel/pci-sysfs.c:305: warning: Excess function parameter 'b' description in 'pci_adjust_legacy_attr'

Link: https://lkml.kernel.org/r/20210808185249.31442-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
0a9d991c 5ecae8f6

+8 -4
+8 -4
arch/alpha/kernel/pci-sysfs.c
··· 60 60 * @sparse: address space type 61 61 * 62 62 * Use the bus mapping routines to map a PCI resource into userspace. 63 + * 64 + * Return: %0 on success, negative error code otherwise 63 65 */ 64 66 static int pci_mmap_resource(struct kobject *kobj, 65 67 struct bin_attribute *attr, ··· 108 106 109 107 /** 110 108 * pci_remove_resource_files - cleanup resource files 111 - * @dev: dev to cleanup 109 + * @pdev: pci_dev to cleanup 112 110 * 113 111 * If we created resource files for @dev, remove them from sysfs and 114 112 * free their resources. ··· 223 221 } 224 222 225 223 /** 226 - * pci_create_resource_files - create resource files in sysfs for @dev 227 - * @dev: dev in question 224 + * pci_create_resource_files - create resource files in sysfs for @pdev 225 + * @pdev: pci_dev in question 228 226 * 229 227 * Walk the resources in @dev creating files for each resource available. 228 + * 229 + * Return: %0 on success, or negative error code 230 230 */ 231 231 int pci_create_resource_files(struct pci_dev *pdev) 232 232 { ··· 300 296 301 297 /** 302 298 * pci_adjust_legacy_attr - adjustment of legacy file attributes 303 - * @b: bus to create files under 299 + * @bus: bus to create files under 304 300 * @mmap_type: I/O port or memory 305 301 * 306 302 * Adjust file name and size for sparse mappings.