diff mbox series

arm64/ptrace: Fix typoes in sve_set() comment

Message ID 20190807103445.32257-1-julien.grall@arm.com
State Accepted
Commit 08f103b9a9502974109fab47ea35ca8542c4e57a
Headers show
Series arm64/ptrace: Fix typoes in sve_set() comment | expand

Commit Message

Julien Grall Aug. 7, 2019, 10:34 a.m. UTC
The ptrace trace SVE flags are prefixed with SVE_PT_*. Update the
comment accordingly.

Signed-off-by: Julien Grall <julien.grall@arm.com>

---
 arch/arm64/kernel/ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.11.0

Comments

Dave Martin Aug. 7, 2019, 10:38 a.m. UTC | #1
On Wed, Aug 07, 2019 at 11:34:45AM +0100, Julien Grall wrote:
> The ptrace trace SVE flags are prefixed with SVE_PT_*. Update the

> comment accordingly.

> 

> Signed-off-by: Julien Grall <julien.grall@arm.com>

> ---

>  arch/arm64/kernel/ptrace.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c

> index 17525da8d5c8..0de3eae09d36 100644

> --- a/arch/arm64/kernel/ptrace.c

> +++ b/arch/arm64/kernel/ptrace.c

> @@ -870,7 +870,7 @@ static int sve_set(struct task_struct *target,

>  		goto out;

>  

>  	/*

> -	 * Apart from PT_SVE_REGS_MASK, all PT_SVE_* flags are consumed by

> +	 * Apart from SVE_PT_REGS_MASK, all SVE_PT_* flags are consumed by

>  	 * sve_set_vector_length(), which will also validate them for us:

>  	 */


Thanks for spotting that.

Reviewed-by: Dave Martin <Dave.Martin@arm.com>


Cheers
---Dave
diff mbox series

Patch

diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
index 17525da8d5c8..0de3eae09d36 100644
--- a/arch/arm64/kernel/ptrace.c
+++ b/arch/arm64/kernel/ptrace.c
@@ -870,7 +870,7 @@  static int sve_set(struct task_struct *target,
 		goto out;
 
 	/*
-	 * Apart from PT_SVE_REGS_MASK, all PT_SVE_* flags are consumed by
+	 * Apart from SVE_PT_REGS_MASK, all SVE_PT_* flags are consumed by
 	 * sve_set_vector_length(), which will also validate them for us:
 	 */
 	ret = sve_set_vector_length(target, header.vl,