From: TAKANO Mitsuhiro via B4 Relay <devnull+takano32.gmail.com@kernel.org>
To: Bryan O'Donoghue <pure.logic@nexus-software.ie>,
Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org,
TAKANO Mitsuhiro <takano32@gmail.com>
Subject: [PATCH] staging: greybus: loopback: change async field type from int to u32
Date: Sat, 28 Nov 2026 22:29:21 +0000 [thread overview]
Message-ID: <20261128-b4-greybus-loopback-async-type-v1-1-62d4f672376b@gmail.com> (raw)
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>
next reply other threads:[~2026-11-28 22:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 22:29 TAKANO Mitsuhiro via B4 Relay [this message]
2026-11-29 12:36 ` [PATCH] staging: greybus: loopback: change async field type from int to u32 Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128-b4-greybus-loopback-async-type-v1-1-62d4f672376b@gmail.com \
--to=devnull+takano32.gmail.com@kernel.org \
--cc=elder@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=pure.logic@nexus-software.ie \
--cc=takano32@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox