From nobody Mon Feb 9 01:21:13 2026 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B8B32EA48F; Fri, 23 Jan 2026 12:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769170721; cv=none; b=bpovezRK+fswVH8e6a45qdejFkzUTqq4fjRY6wm6Urci7n3KAF6cusmWuWICXl0f4R/Dwn+Pa5UCzgU8O3E9qfYzRO4yk0s3Yx9B6Lwvhif+wS3Ma1kmGElec8BRJ/kqEqVcmDI4w2tWMNRqlsDl7IIca6UIMzrWT2F5yT3vwZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769170721; c=relaxed/simple; bh=dvHwqxrLBLwCTlBxNIo+6k7Ecmhf7CkQ7kkK2Nih2fs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DahSp7kcabqremmVyGnPIttpwvfeVmk/Y4mJsHpeEg4fcPgygUCAh+NiUZVmCoWd21h4CGzifOxhq24zmRS0hIARc+Xd1+1dQ+pX3vr+4xrrYJ87AB55npqx9mbSQsByM5MYNg28F2Ge+y1LV/ueLQvSZIuKT0fULe+eiK1A82s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=none smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=Gk/+q+sx; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="Gk/+q+sx" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description; bh=XOMQs7uBcrIY8f02bUmgzj9wshp3hn8MD7+FpRXarZQ=; b=Gk/+q+sxp8BS2Ac9nq89sptlkD 00QSVstIPT3rSMUgWq/bYVjLdP47AuLoDSv+RolyM0tP/vX3xBpl7thHnvQb1ZXVrJzTvUro0GLsa rz+I2N8lRCWrIwu1CkWiFgniRjPefFwkE0YhN9G/PjZDGkCOILFBwg0qCX1Ep61j3Z9eOwYT5xjbT S4WH8mjY8olhO6g+8Qfw3pFlEVtZB8oNlY9LoEcTiSGkJRA10f8FeKB0Sep+a1uSTKb5i5iD/dvt+ 4ORoeRDnMrjetz9iyLmyix06gBXNmzSLi38lg0oPXFVY5e6fuCtz2m9J33Zuv1XUsBiQl1PVO9Kc5 My9Kh6Ag==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1vjG7G-00DpfN-Np; Fri, 23 Jan 2026 12:18:18 +0000 From: Breno Leitao Date: Fri, 23 Jan 2026 04:17:28 -0800 Subject: [PATCH net-next v4 5/5] netconsole: pass wctxt to send_msg_udp() for consistency Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260123-nbcon-v4-5-46a5cf567926@debian.org> References: <20260123-nbcon-v4-0-46a5cf567926@debian.org> In-Reply-To: <20260123-nbcon-v4-0-46a5cf567926@debian.org> To: Breno Leitao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , pmladek@suse.com, john.ogness@linutronix.de Cc: Greg Kroah-Hartman , Steven Rostedt , Sergey Senozhatsky , Andrew Morton , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, asantostc@gmail.com, efault@gmx.de, gustavold@gmail.com, calvin@wbinvd.org, jv@jvosburgh.net, mpdesouza@suse.com, kernel-team@meta.com X-Mailer: b4 0.15-dev-47773 X-Developer-Signature: v=1; a=openpgp-sha256; l=1528; i=leitao@debian.org; h=from:subject:message-id; bh=dvHwqxrLBLwCTlBxNIo+6k7Ecmhf7CkQ7kkK2Nih2fs=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBpc2bqXrY/3mib53itDkUm5uPhwNKOQR3cLoIad SG5B+9jtJOJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCaXNm6gAKCRA1o5Of/Hh3 bVTMEACUNdjtkxJNGvvRIg4uwJndv3BotXB6Gn220gsshi43CbiagGl3I0a1Eda6Tpq8JNLFa/e DbdObDuQbLl0LaeGEx7ukgAM3y8wdHGKsHiYq5Gbkc5sJZEIz4EYryDcD4vTdN0iCYp51IKIFrK m4JPXTyMTewPLqdVxlA93nG9RfdlSVDe/Xh4T+uYhHF8rYCG0clqgt7/us2CDvMzG8ATTIJzY/l IRX7R035D7/VGdMZiT06WEi3xV/rK0trJPeWk6kRMFHFfbhtmLRCAe9RZ/c+XBiBNdxo/Fd0dSe iMNe6gBQVi07BIxPwU1sdOqjBnUQlM24/XcWy3B02K4PuTyP1mlbDd30zYqugtnSJTIndQJPXZU 7McHXkjNTtAIzjJz67hE9/Ud25pMePCPbwFFw/WrHjOyNlWssqnIEOxPaxKf7vQjqjrHz4MUoxM tgh+Yp8WRcxCZ24kcoRCRt37/tqF0SU9ls6yeTbJayT/tKP7f5d8J4bvpWzqCaDIfuYyVkR5ZSB 7uWf+UB0hAjZTGUqVLLk/10tZGT10sV9FeloRdL0WatkguXOYJORtw3+mxNpGvuhfK2/tgBTmEo ursckJ7jFQFElzFKDdMTdu4bRFWj7/jA6ly3vJ3AkpiJ+Q1MP8XTp8zB6sBOgesFIsuuh0tzZMa qhKAWw+xdJzaElg== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao Refactor send_msg_udp() to take a struct nbcon_write_context pointer instead of separate msg and len parameters. This makes its signature consistent with send_ext_msg_udp() and prepares the function for future use of execution context information from wctxt. No functional change. Signed-off-by: Breno Leitao --- drivers/net/netconsole.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 0f44ce5ccc0ab..d1dadb7e0350f 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -1865,16 +1865,16 @@ static void send_ext_msg_udp(struct netconsole_targ= et *nt, sysdata_len); } =20 -static void send_msg_udp(struct netconsole_target *nt, const char *msg, - unsigned int len) +static void send_msg_udp(struct netconsole_target *nt, + struct nbcon_write_context *wctxt) { - const char *tmp =3D msg; - int frag, left =3D len; + const char *msg =3D wctxt->outbuf; + int frag, left =3D wctxt->len; =20 while (left > 0) { frag =3D min(left, MAX_PRINT_CHUNK); - send_udp(nt, tmp, frag); - tmp +=3D frag; + send_udp(nt, msg, frag); + msg +=3D frag; left -=3D frag; } } @@ -1908,7 +1908,7 @@ static void netconsole_write(struct nbcon_write_conte= xt *wctxt, bool extended) if (extended) send_ext_msg_udp(nt, wctxt); else - send_msg_udp(nt, wctxt->outbuf, wctxt->len); + send_msg_udp(nt, wctxt); =20 nbcon_exit_unsafe(wctxt); } --=20 2.47.3