[PATCH] tools/x86: kvm: fix comment typo

Joseph Salisbury posted 1 patch 3 weeks ago
tools/arch/x86/include/uapi/asm/kvm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] tools/x86: kvm: fix comment typo
Posted by Joseph Salisbury 3 weeks ago
The file contains a spelling error in a source comment (compatability).

Typos in comments reduce readability and make text searches less reliable
for developers and maintainers.

Replace 'compatability' with 'compatibility' in the affected comment. This
is a comment-only cleanup and does not change behavior.

Fixes: c499d1f483a9 ("tools arch kvm: Sync kvm headers with the kernel sources")
Cc: stable@vger.kernel.org
Signed-off-by: Joseph Salisbury <joseph.salisbury@oracle.com>
---
 tools/arch/x86/include/uapi/asm/kvm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/arch/x86/include/uapi/asm/kvm.h b/tools/arch/x86/include/uapi/asm/kvm.h
index 7ceff6583652..f7d6f22ce5ef 100644
--- a/tools/arch/x86/include/uapi/asm/kvm.h
+++ b/tools/arch/x86/include/uapi/asm/kvm.h
@@ -547,7 +547,7 @@ struct kvm_nested_state {
 	} hdr;
 
 	/*
-	 * Define data region as 0 bytes to preserve backwards-compatability
+	 * Define data region as 0 bytes to preserve backwards-compatibility
 	 * to old definition of kvm_nested_state in order to avoid changing
 	 * KVM_{GET,PUT}_NESTED_STATE ioctl values.
 	 */
-- 
2.47.3
Re: [PATCH] tools/x86: kvm: fix comment typo
Posted by Sean Christopherson 6 days, 6 hours ago
On Mon, Mar 16, 2026, Joseph Salisbury wrote:
> The file contains a spelling error in a source comment (compatability).
> 
> Typos in comments reduce readability and make text searches less reliable
> for developers and maintainers.
> 
> Replace 'compatability' with 'compatibility' in the affected comment. This
> is a comment-only cleanup and does not change behavior.
> 
> Fixes: c499d1f483a9 ("tools arch kvm: Sync kvm headers with the kernel sources")
> Cc: stable@vger.kernel.org
> Signed-off-by: Joseph Salisbury <joseph.salisbury@oracle.com>
> ---
>  tools/arch/x86/include/uapi/asm/kvm.h | 2 +-

tools/ headers are copies that are periodically synced from the kernel headers
and shouldn't be updated directly.  Please send a patch to fix
arch/x86/include/uapi/asm/kvm.h.

>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/arch/x86/include/uapi/asm/kvm.h b/tools/arch/x86/include/uapi/asm/kvm.h
> index 7ceff6583652..f7d6f22ce5ef 100644
> --- a/tools/arch/x86/include/uapi/asm/kvm.h
> +++ b/tools/arch/x86/include/uapi/asm/kvm.h
> @@ -547,7 +547,7 @@ struct kvm_nested_state {
>  	} hdr;
>  
>  	/*
> -	 * Define data region as 0 bytes to preserve backwards-compatability
> +	 * Define data region as 0 bytes to preserve backwards-compatibility
>  	 * to old definition of kvm_nested_state in order to avoid changing
>  	 * KVM_{GET,PUT}_NESTED_STATE ioctl values.
>  	 */
> -- 
> 2.47.3
>
Re: [External] : [PATCH] tools/x86: kvm: fix comment typo
Posted by Joseph Salisbury 3 weeks ago

On 3/16/26 2:35 PM, Joseph Salisbury wrote:
> The file contains a spelling error in a source comment (compatability).
>
> Typos in comments reduce readability and make text searches less reliable
> for developers and maintainers.
>
> Replace 'compatability' with 'compatibility' in the affected comment. This
> is a comment-only cleanup and does not change behavior.
>
> Fixes: c499d1f483a9 ("tools arch kvm: Sync kvm headers with the kernel sources")
> Cc: stable@vger.kernel.org
> Signed-off-by: Joseph Salisbury <joseph.salisbury@oracle.com>
> ---
>   tools/arch/x86/include/uapi/asm/kvm.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/arch/x86/include/uapi/asm/kvm.h b/tools/arch/x86/include/uapi/asm/kvm.h
> index 7ceff6583652..f7d6f22ce5ef 100644
> --- a/tools/arch/x86/include/uapi/asm/kvm.h
> +++ b/tools/arch/x86/include/uapi/asm/kvm.h
> @@ -547,7 +547,7 @@ struct kvm_nested_state {
>   	} hdr;
>   
>   	/*
> -	 * Define data region as 0 bytes to preserve backwards-compatability
> +	 * Define data region as 0 bytes to preserve backwards-compatibility
>   	 * to old definition of kvm_nested_state in order to avoid changing
>   	 * KVM_{GET,PUT}_NESTED_STATE ioctl values.
>   	 */
I inadvertently added Fixes: and Cc: stable tags.  If possible, please 
remove them as they are not appropriate for fixes to misspellings in 
code comments.  If it's not possible to remove them, I can send a v2.