From: Jeremy Kerr Date: Fri, 3 Apr 2026 02:21:04 +0000 (+0800) Subject: net: mctp: tests: use actual address when creating dev with addr X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70e32aadb5cab9ef706962e1293582ec03f89625;p=thirdparty%2Fkernel%2Flinux.git net: mctp: tests: use actual address when creating dev with addr Sashiko reports: > This isn't a bug in the core networking code, but the addr parameter > appears to be ignored here. In mctp_test_create_dev_with_addr(), we are ignoring the addr argument and just using `8`. Use the passed address instead. All invocations use 8 anyway, so no effective change at present. Signed-off-by: Jeremy Kerr Reviewed-by: Simon Horman Link: https://patch.msgid.link/20260403-dev-mctp-fix-test-addr-v1-1-b7fa789cdd9b@codeconstruct.com.au Signed-off-by: Jakub Kicinski --- diff --git a/net/mctp/test/utils.c b/net/mctp/test/utils.c index 2f79f8c1a2b44..c3987d5ade7ad 100644 --- a/net/mctp/test/utils.c +++ b/net/mctp/test/utils.c @@ -95,7 +95,7 @@ struct mctp_test_dev *mctp_test_create_dev_with_addr(mctp_eid_t addr) } dev->mdev->num_addrs = 1; - dev->mdev->addrs[0] = 8; + dev->mdev->addrs[0] = addr; return dev; }