[tip: sched/core] sched/debug: Use char * instead of char (*)[]

tip-bot2 for Peter Zijlstra posted 1 patch 1 week, 4 days ago
kernel/sched/debug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[tip: sched/core] sched/debug: Use char * instead of char (*)[]
Posted by tip-bot2 for Peter Zijlstra 1 week, 4 days ago
The following commit has been merged into the sched/core branch of tip:

Commit-ID:     333f6f0e11acc20d036f94f94709874f76d0b430
Gitweb:        https://git.kernel.org/tip/333f6f0e11acc20d036f94f94709874f76d0b430
Author:        Peter Zijlstra <peterz@infradead.org>
AuthorDate:    Mon, 11 May 2026 13:31:05 +02:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Tue, 26 May 2026 13:53:12 +02:00

sched/debug: Use char * instead of char (*)[]

Some of the fancy AI robots are getting 'upset'.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260511120627.065013766@infradead.org
---
 kernel/sched/debug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index ed3a0d6..af13a89 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -136,7 +136,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf,
 	if (cnt > 63)
 		cnt = 63;
 
-	if (copy_from_user(&buf, ubuf, cnt))
+	if (copy_from_user(buf, ubuf, cnt))
 		return -EFAULT;
 
 	buf[cnt] = 0;
@@ -263,7 +263,7 @@ static ssize_t sched_dynamic_write(struct file *filp, const char __user *ubuf,
 	if (cnt > 15)
 		cnt = 15;
 
-	if (copy_from_user(&buf, ubuf, cnt))
+	if (copy_from_user(buf, ubuf, cnt))
 		return -EFAULT;
 
 	buf[cnt] = 0;