linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vfio/pci: Fix typos in comments
@ 2016-08-17  6:37 Wei Jiangang
  2016-08-24 10:09 ` Wei, Jiangang
  2016-08-29 18:43 ` Alex Williamson
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Jiangang @ 2016-08-17  6:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: alex.williamson, dan.carpenter, mark.d.rustad, aik, Wei Jiangang

Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
---
 drivers/vfio/pci/vfio_pci_config.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
index 688691d9058d..c4f235452d81 100644
--- a/drivers/vfio/pci/vfio_pci_config.c
+++ b/drivers/vfio/pci/vfio_pci_config.c
@@ -70,7 +70,7 @@ static const u8 pci_cap_length[PCI_CAP_ID_MAX + 1] = {
 
 /*
  * Lengths of PCIe/PCI-X Extended Config Capabilities
- *   0: Removed or masked from the user visible capabilty list
+ *   0: Removed or masked from the user visible capability list
  *   FF: Variable length
  */
 static const u16 pci_ext_cap_length[PCI_EXT_CAP_ID_MAX + 1] = {
@@ -355,7 +355,7 @@ static int alloc_perm_bits(struct perm_bits *perm, int size)
 	 * ignore whether a read/write exceeds the defined capability
 	 * structure.  We can do this because:
 	 *  - Standard config space is already dword aligned
-	 *  - Capabilities are all dword alinged (bits 0:1 of next reserved)
+	 *  - Capabilities are all dword aligned (bits 0:1 of next reserved)
 	 *  - Express capabilities defined as dword aligned
 	 */
 	size = round_up(size, 4);
@@ -1516,10 +1516,10 @@ static int vfio_ecap_init(struct vfio_pci_device *vdev)
  * space which tracks reads and writes to bits that we emulate for
  * the user.  Initial values filled from device.
  *
- * Using shared stuct perm_bits between all vfio-pci devices saves
+ * Using shared struct perm_bits between all vfio-pci devices saves
  * us from allocating cfg_size buffers for virt and write for every
  * device.  We could remove vconfig and allocate individual buffers
- * for each area requring emulated bits, but the array of pointers
+ * for each area requiring emulated bits, but the array of pointers
  * would be comparable in size (at least for standard config space).
  */
 int vfio_config_init(struct vfio_pci_device *vdev)
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] vfio/pci: Fix typos in comments
  2016-08-17  6:37 [PATCH] vfio/pci: Fix typos in comments Wei Jiangang
@ 2016-08-24 10:09 ` Wei, Jiangang
  2016-08-29 18:43 ` Alex Williamson
  1 sibling, 0 replies; 3+ messages in thread
From: Wei, Jiangang @ 2016-08-24 10:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: dan.carpenter, alex.williamson, mark.d.rustad, aik

ping...
On Wed, 2016-08-17 at 14:37 +0800, Wei Jiangang wrote:
> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
> ---
>  drivers/vfio/pci/vfio_pci_config.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> index 688691d9058d..c4f235452d81 100644
> --- a/drivers/vfio/pci/vfio_pci_config.c
> +++ b/drivers/vfio/pci/vfio_pci_config.c
> @@ -70,7 +70,7 @@ static const u8 pci_cap_length[PCI_CAP_ID_MAX + 1] = {
>  
>  /*
>   * Lengths of PCIe/PCI-X Extended Config Capabilities
> - *   0: Removed or masked from the user visible capabilty list
> + *   0: Removed or masked from the user visible capability list
>   *   FF: Variable length
>   */
>  static const u16 pci_ext_cap_length[PCI_EXT_CAP_ID_MAX + 1] = {
> @@ -355,7 +355,7 @@ static int alloc_perm_bits(struct perm_bits *perm, int size)
>  	 * ignore whether a read/write exceeds the defined capability
>  	 * structure.  We can do this because:
>  	 *  - Standard config space is already dword aligned
> -	 *  - Capabilities are all dword alinged (bits 0:1 of next reserved)
> +	 *  - Capabilities are all dword aligned (bits 0:1 of next reserved)
>  	 *  - Express capabilities defined as dword aligned
>  	 */
>  	size = round_up(size, 4);
> @@ -1516,10 +1516,10 @@ static int vfio_ecap_init(struct vfio_pci_device *vdev)
>   * space which tracks reads and writes to bits that we emulate for
>   * the user.  Initial values filled from device.
>   *
> - * Using shared stuct perm_bits between all vfio-pci devices saves
> + * Using shared struct perm_bits between all vfio-pci devices saves
>   * us from allocating cfg_size buffers for virt and write for every
>   * device.  We could remove vconfig and allocate individual buffers
> - * for each area requring emulated bits, but the array of pointers
> + * for each area requiring emulated bits, but the array of pointers
>   * would be comparable in size (at least for standard config space).
>   */
>  int vfio_config_init(struct vfio_pci_device *vdev)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] vfio/pci: Fix typos in comments
  2016-08-17  6:37 [PATCH] vfio/pci: Fix typos in comments Wei Jiangang
  2016-08-24 10:09 ` Wei, Jiangang
@ 2016-08-29 18:43 ` Alex Williamson
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Williamson @ 2016-08-29 18:43 UTC (permalink / raw)
  To: Wei Jiangang; +Cc: linux-kernel, dan.carpenter, mark.d.rustad, aik

On Wed, 17 Aug 2016 14:37:05 +0800
Wei Jiangang <weijg.fnst@cn.fujitsu.com> wrote:

> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
> ---
>  drivers/vfio/pci/vfio_pci_config.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> index 688691d9058d..c4f235452d81 100644
> --- a/drivers/vfio/pci/vfio_pci_config.c
> +++ b/drivers/vfio/pci/vfio_pci_config.c
> @@ -70,7 +70,7 @@ static const u8 pci_cap_length[PCI_CAP_ID_MAX + 1] = {
>  
>  /*
>   * Lengths of PCIe/PCI-X Extended Config Capabilities
> - *   0: Removed or masked from the user visible capabilty list
> + *   0: Removed or masked from the user visible capability list
>   *   FF: Variable length
>   */
>  static const u16 pci_ext_cap_length[PCI_EXT_CAP_ID_MAX + 1] = {
> @@ -355,7 +355,7 @@ static int alloc_perm_bits(struct perm_bits *perm, int size)
>  	 * ignore whether a read/write exceeds the defined capability
>  	 * structure.  We can do this because:
>  	 *  - Standard config space is already dword aligned
> -	 *  - Capabilities are all dword alinged (bits 0:1 of next reserved)
> +	 *  - Capabilities are all dword aligned (bits 0:1 of next reserved)
>  	 *  - Express capabilities defined as dword aligned
>  	 */
>  	size = round_up(size, 4);
> @@ -1516,10 +1516,10 @@ static int vfio_ecap_init(struct vfio_pci_device *vdev)
>   * space which tracks reads and writes to bits that we emulate for
>   * the user.  Initial values filled from device.
>   *
> - * Using shared stuct perm_bits between all vfio-pci devices saves
> + * Using shared struct perm_bits between all vfio-pci devices saves
>   * us from allocating cfg_size buffers for virt and write for every
>   * device.  We could remove vconfig and allocate individual buffers
> - * for each area requring emulated bits, but the array of pointers
> + * for each area requiring emulated bits, but the array of pointers
>   * would be comparable in size (at least for standard config space).
>   */
>  int vfio_config_init(struct vfio_pci_device *vdev)

Applied to next branch for v4.9.  Thanks,

Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-29 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-17  6:37 [PATCH] vfio/pci: Fix typos in comments Wei Jiangang
2016-08-24 10:09 ` Wei, Jiangang
2016-08-29 18:43 ` Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).