From nobody Sun Dec 14 06:20:52 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE31E16F265; Mon, 1 Sep 2025 12:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756728018; cv=none; b=fZQCJ1omlozst5TQ/qztZrivcSgea6G53OpZuiw/E0aInkFHqi0Atmjapuky7plyRmHAGdimLxsato6ef6P+QQ3vWFM5QEEPkZEshoGNl0IHCbxkQr4qzKeNuU3566cax0/ZqOCQq+VzP9jTKxUYbbP8rUdKT/cHDk5NInaDV0g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756728018; c=relaxed/simple; bh=ncDkAmTwT0Rkkhhm8MfP1Yyb9PyuX7v/Xxr+SiRs5Zs=; h=From:To:Cc:Subject:Date:Message-Id; b=p7+RC9OzIdJDdn079x1RKKfRAKIFrhJfYk62zqMJjpZX2JtvwtVKLzwUpErWdcr1pRU11MVEPLQeI93EFAJR10jGD49b33Vd1T3KM+Z6fc2CNnhDyx0nt7lH54n9ONOjHILTcmTzs2GKRHhDAvih1saHvutF5RlfS76XVBPd6Z4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=g0ZqsjAQ; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="g0ZqsjAQ" Received: by linux.microsoft.com (Postfix, from userid 1218) id 6D6B52119398; Mon, 1 Sep 2025 05:00:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6D6B52119398 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1756728015; bh=DqjAdCMHVkkdWzLTGnh/chMDtmy2mjtPszEjqUE3nck=; h=From:To:Cc:Subject:Date:From; b=g0ZqsjAQ52x/XWjrNdB22RvqpUEDOMxkYMUiAmF5tkUuKpSaRZJuxs61CCdAcMnB6 cqXYYCKBWnoBbKaCgyrLB0ehnHSklgpUaM9fSk2BP5fdVJEmUrtvUZmzryvltpByQH oPgXSVLq70HjCcRUzrODBCS0M7nA+Ee5Ec8Q0F9U= From: Abhishek Tiwari To: abhitiwari@microsoft.com, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, ssengar@microsoft.com Cc: Abhishek Tiwari Subject: [PATCH v2] Drivers: hv: util: Cosmetic changes for hv_utils_transport.c Date: Mon, 1 Sep 2025 05:00:00 -0700 Message-Id: <1756728000-8324-1-git-send-email-abhitiwari@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix issues reported by checkpatch.pl script for hv_utils_transport.c file=20 - Update pr_warn() calls to use __func__ for consistent logging context.=20 - else should follow close brace '}' No functional changes intended. Signed-off-by: Abhishek Tiwari Reviewed-by: Naman Jain --- Changes in v2: - Replace "x86/hyperv:" with "Drivers: hv: util:" in patch title. --- drivers/hv/hv_utils_transport.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hv/hv_utils_transport.c b/drivers/hv/hv_utils_transpor= t.c index 832885198643..b3de35ff6334 100644 --- a/drivers/hv/hv_utils_transport.c +++ b/drivers/hv/hv_utils_transport.c @@ -129,8 +129,7 @@ static int hvt_op_open(struct inode *inode, struct file= *file) * device gets released. */ hvt->mode =3D HVUTIL_TRANSPORT_CHARDEV; - } - else if (hvt->mode =3D=3D HVUTIL_TRANSPORT_NETLINK) { + } else if (hvt->mode =3D=3D HVUTIL_TRANSPORT_NETLINK) { /* * We're switching from netlink communication to using char * device. Issue the reset first. @@ -195,7 +194,7 @@ static void hvt_cn_callback(struct cn_msg *msg, struct = netlink_skb_parms *nsp) } spin_unlock(&hvt_list_lock); if (!hvt_found) { - pr_warn("hvt_cn_callback: spurious message received!\n"); + pr_warn("%s: spurious message received!\n", __func__); return; } =20 @@ -210,7 +209,7 @@ static void hvt_cn_callback(struct cn_msg *msg, struct = netlink_skb_parms *nsp) if (hvt->mode =3D=3D HVUTIL_TRANSPORT_NETLINK) hvt_found->on_msg(msg->data, msg->len); else - pr_warn("hvt_cn_callback: unexpected netlink message!\n"); + pr_warn("%s: unexpected netlink message!\n", __func__); mutex_unlock(&hvt->lock); } =20 @@ -260,8 +259,9 @@ int hvutil_transport_send(struct hvutil_transport *hvt,= void *msg, int len, hvt->outmsg_len =3D len; hvt->on_read =3D on_read_cb; wake_up_interruptible(&hvt->outmsg_q); - } else + } else { ret =3D -ENOMEM; + } out_unlock: mutex_unlock(&hvt->lock); return ret; --=20 2.43.0