git: 44b73821d1c0 - main - thunderbolt: Change len from int to size_t in router_prepare_{read,write}()

From: Aymeric Wibo <obiwac_at_FreeBSD.org>
Date: Mon, 14 Sep 2026 15:48:48 UTC
The branch main has been updated by obiwac:

URL: https://cgit.FreeBSD.org/src/commit/?id=44b73821d1c077bf899298cbebbb2f625598c8e9

commit 44b73821d1c077bf899298cbebbb2f625598c8e9
Author:     Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-09-14 14:21:52 +0000
Commit:     Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-09-14 15:45:17 +0000

    thunderbolt: Change len from int to size_t in router_prepare_{read,write}()
    
    Suggested by:   ngie
    Reviewed by:    ngie
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D59668
---
 sys/dev/thunderbolt/router.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/dev/thunderbolt/router.c b/sys/dev/thunderbolt/router.c
index 22377533dcc6..a92f008e21eb 100644
--- a/sys/dev/thunderbolt/router.c
+++ b/sys/dev/thunderbolt/router.c
@@ -64,9 +64,9 @@ static int _tb_router_attach(struct router_softc *);
 static void router_prepare_cmd(struct router_softc *, struct router_command *,
     size_t, uint16_t);
 static void router_prepare_read(struct router_softc *, struct router_command *,
-    int);
+    size_t);
 static void router_prepare_write(struct router_softc *, struct router_command *,
-    int);
+    size_t);
 static int _tb_config_read(struct router_softc *, u_int, u_int, u_int, u_int,
     uint32_t *, void *, struct router_command **);
 static int _tb_config_write(struct router_softc *, u_int, u_int, u_int, u_int,
@@ -639,7 +639,7 @@ router_prepare_cmd(struct router_softc *sc, struct router_command *cmd,
 
 static void
 router_prepare_read(struct router_softc *sc, struct router_command *cmd,
-    int len)
+    size_t len)
 {
 	router_prepare_cmd(sc, cmd, len, PDF_READ);
 
@@ -649,7 +649,7 @@ router_prepare_read(struct router_softc *sc, struct router_command *cmd,
 
 static void
 router_prepare_write(struct router_softc *sc, struct router_command *cmd,
-    int len)
+    size_t len)
 {
 	router_prepare_cmd(sc, cmd, len, PDF_WRITE);