Yi Wang
2020-Aug-03 11:52 UTC
[PATCH] virtio_pci_modern: Fix the comment of virtio_pci_find_capability()
From: Liao Pingfang <liao.pingfang at zte.com.cn> 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 <liao.pingfang at zte.com.cn> Signed-off-by: Yi Wang <wang.yi59 at zte.com.cn> --- drivers/virtio/virtio_pci_modern.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.26.1
Jason Wang
2020-Aug-04 02:13 UTC
[PATCH] virtio_pci_modern: Fix the comment of virtio_pci_find_capability()
On 2020/8/3 ??7:52, Yi Wang wrote:> From: Liao Pingfang <liao.pingfang at zte.com.cn> > > 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 <liao.pingfang at zte.com.cn> > Signed-off-by: Yi Wang <wang.yi59 at zte.com.cn>Acked-by: Jason Wang <jasowang at redhat.com>> --- > drivers/virtio/virtio_pci_modern.c | 1 + > 1 file changed, 1 insertion(+) > > 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. > */
Seemingly Similar Threads
- Re: [Qemu-devel] [PATCH v2] hmp: allow cpu index for "info lapic"
- [PATCH] x86: fix -Wmissing-prototypes warning
- [PATCH] virtio-pci: alloc only resources actually used.
- [PATCH] virtio-pci: alloc only resources actually used.
- [PATCH] virtio-pci: alloc only resources actually used.