Skip to content

Commit 46af9ad

Browse files
Liao Pingfangmstsirkin
authored andcommitted
virtio_pci_modern: Fix the comment of virtio_pci_find_capability()
Fix the comment of virtio_pci_find_capability() by adding missing comment for the last parameter: bars. Fixes: 59a5b0f ("virtio-pci: alloc only resources actually used.") Signed-off-by: Liao Pingfang <[email protected]> Signed-off-by: Yi Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
1 parent a979a6a commit 46af9ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/virtio/virtio_pci_modern.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ static const struct virtio_config_ops virtio_pci_config_ops = {
481481
* @dev: the pci device
482482
* @cfg_type: the VIRTIO_PCI_CAP_* value we seek
483483
* @ioresource_types: IORESOURCE_MEM and/or IORESOURCE_IO.
484+
* @bars: the bitmask of BARs
484485
*
485486
* Returns offset of the capability, or 0.
486487
*/

0 commit comments

Comments
 (0)