* [PATCH] staging: greybus: loopback: change async field type from int to u32
@ 2026-11-28 22:29 TAKANO Mitsuhiro via B4 Relay
2026-11-29 12:36 ` Greg Kroah-Hartman
2026-11-29 19:10 ` TAKANO Mitsuhiro
0 siblings, 2 replies; 3+ messages in thread
From: TAKANO Mitsuhiro via B4 Relay @ 2026-11-28 22:29 UTC (permalink / raw)
To: Bryan O'Donoghue, Johan Hovold, Alex Elder, Greg Kroah-Hartman
Cc: greybus-dev, linux-staging, linux-kernel, TAKANO Mitsuhiro
From: TAKANO Mitsuhiro <takano32@gmail.com>
The sysfs attribute for async is defined with
gb_dev_loopback_rw_attr(async, u), which uses "%u" in both
sysfs_emit() and sscanf(..., &gb->async). However, struct gb_loopback
declares async as int rather than an unsigned type.
Change async to u32 to match the "%u" format specifier and the other
unsigned attributes in struct gb_loopback.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
Verification: compile-tested on x86_64 with CONFIG_GREYBUS_LOOPBACK=m
(make W=1 drivers/staging/greybus/loopback.o; 0 warnings) and checked
with scripts/checkpatch.pl --strict. Checked against linux-next
(next-20261127) and lore.kernel.org for duplicates. Not runtime-tested on
Greybus hardware.
The change and the changelog text were produced with an AI coding
assistant (Gemini) working from the tree; I reviewed the diff and the
reasoning, and I am responsible for the submission.
---
drivers/staging/greybus/loopback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index efc69c10c..02bd8261b 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -77,7 +77,7 @@ struct gb_loopback {
struct gb_loopback_stats gbphy_firmware_latency;
int type;
- int async;
+ u32 async;
int id;
u32 size;
u32 iteration_max;
---
base-commit: f93eb7cfc4bfa5d46340f360873726e3e77f2365
change-id: 20261128-b4-greybus-loopback-async-type-3881628ae7e4
Best regards,
--
TAKANO Mitsuhiro <takano32@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: greybus: loopback: change async field type from int to u32
2026-11-28 22:29 [PATCH] staging: greybus: loopback: change async field type from int to u32 TAKANO Mitsuhiro via B4 Relay
@ 2026-11-29 12:36 ` Greg Kroah-Hartman
2026-11-29 19:10 ` TAKANO Mitsuhiro
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2026-11-29 12:36 UTC (permalink / raw)
To: takano32
Cc: Bryan O'Donoghue, Johan Hovold, Alex Elder, greybus-dev,
linux-staging, linux-kernel
On Sat, Nov 28, 2026 at 10:29:21PM +0000, TAKANO Mitsuhiro via B4 Relay wrote:
> From: TAKANO Mitsuhiro <takano32@gmail.com>
>
> The sysfs attribute for async is defined with
> gb_dev_loopback_rw_attr(async, u), which uses "%u" in both
> sysfs_emit() and sscanf(..., &gb->async). However, struct gb_loopback
> declares async as int rather than an unsigned type.
>
> Change async to u32 to match the "%u" format specifier and the other
> unsigned attributes in struct gb_loopback.
>
> Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
> ---
> Verification: compile-tested on x86_64 with CONFIG_GREYBUS_LOOPBACK=m
> (make W=1 drivers/staging/greybus/loopback.o; 0 warnings) and checked
> with scripts/checkpatch.pl --strict. Checked against linux-next
> (next-20261127) and lore.kernel.org for duplicates. Not runtime-tested on
> Greybus hardware.
>
> The change and the changelog text were produced with an AI coding
> assistant (Gemini) working from the tree; I reviewed the diff and the
> reasoning, and I am responsible for the submission.
Odd your LLM didn't read:
https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh
:(
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: greybus: loopback: change async field type from int to u32
2026-11-28 22:29 [PATCH] staging: greybus: loopback: change async field type from int to u32 TAKANO Mitsuhiro via B4 Relay
2026-11-29 12:36 ` Greg Kroah-Hartman
@ 2026-11-29 19:10 ` TAKANO Mitsuhiro
1 sibling, 0 replies; 3+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-29 19:10 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Johan Hovold, Alex Elder, greybus-dev, linux-staging,
linux-kernel, TAKANO Mitsuhiro
Hi Greg,
Sorry for the noise (and for the earlier HTML reply that bounced from the
lists). I missed that policy on AI-assisted patches in drivers/staging/,
and I am withdrawing both this patch and the greybus audio patch I sent
alongside it. I will keep AI-assisted changes out of drivers/staging/
going forward.
Mitsuhiro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-29 19:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 22:29 [PATCH] staging: greybus: loopback: change async field type from int to u32 TAKANO Mitsuhiro via B4 Relay
2026-11-29 12:36 ` Greg Kroah-Hartman
2026-11-29 19:10 ` TAKANO Mitsuhiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®