aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiao Pingfang <[email protected]>2020-08-03 19:52:24 +0800
committerMichael S. Tsirkin <[email protected]>2020-08-05 11:08:42 -0400
commit46af9adefd2fd44afa9e8a5020c520812151f849 (patch)
tree6fcaf269a85070c21a81cfbfe7d3cb5ba5b4f803
parenta979a6aa009f3c99689432e0cdb5402a4463fb88 (diff)
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: 59a5b0f7bf74 ("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]>
-rw-r--r--drivers/virtio/virtio_pci_modern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c
index db93cedd262f..9bdc6f68221f 100644
--- a/drivers/virtio/virtio_pci_modern.c
+++ b/drivers/virtio/virtio_pci_modern.c
@@ -481,6 +481,7 @@ static const struct virtio_config_ops virtio_pci_config_ops = {
* @dev: the pci device
* @cfg_type: the VIRTIO_PCI_CAP_* value we seek
* @ioresource_types: IORESOURCE_MEM and/or IORESOURCE_IO.
+ * @bars: the bitmask of BARs
*
* Returns offset of the capability, or 0.
*/