From nobody Fri Apr 3 03:15:51 2026 Received: from mail.pythcoiner.dev (unknown [159.198.47.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B157222584; Tue, 17 Feb 2026 03:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.198.47.63 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771298984; cv=none; b=ruBRK63niavnMxhSrLgj1grTrAM2qY9d1eQfajE/7K8+9JU7ndGEZbxwbQ6ZmUwA+rmxwMLrviUeTt0US8hFqfDl9Op26igsWNhQ1eTF6IWbEix3hTUYcD57PrXvM5wbFdroNFvq39aP3Ielu5zYdufdwhtpyacHlFqdA3eDWMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771298984; c=relaxed/simple; bh=Q9HJR8ZlJDXNqq/opcn86eWl8m6JBWvpYDOZ0obgEOE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Sji0dctnvJSgqeWhnUz/lS2BjBYRU4F87pGvCMGYrC9jQ3Nja8vaQfiXyqICWNDxCQ0bKdjIHgRJjB/uunX2nu/sxHZKZSHYsO97Fw2ANODGHVXHQFYiNef7gY4m2IK6d4ut1ix/uUoVHijhgpLJmez+5YDfcdP48CLd7G8CCJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pythcoiner.dev; spf=pass smtp.mailfrom=pythcoiner.dev; dkim=pass (2048-bit key) header.d=pythcoiner.dev header.i=@pythcoiner.dev header.b=lXscuYGe; arc=none smtp.client-ip=159.198.47.63 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pythcoiner.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pythcoiner.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pythcoiner.dev header.i=@pythcoiner.dev header.b="lXscuYGe" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E3BF5AAF89; Tue, 17 Feb 2026 03:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pythcoiner.dev; s=dkim; t=1771298427; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=uRtLPqQMGhjNsCO4iwfqS8zEqGhEiD3jTSg5XEJ6qCw=; b=lXscuYGeVbqyE34cxF4ySCCYbeQvg58h/+gtJmZOs1ySxwebJUHr3sKUfkv5PSJAQMmK8i nn49mG4HYHVcawSIAN5yW+JiiWZMzgOxlAZbIuWARM11XzqLMkmN8RVmoI741J+DAOtVLR U1v1yi0fhc2j+JBb8FQ/z93VAvtJ1BYwAo6Y+C71jeeiv/+ByuVZ+JVk4dyNRDzs+mGjWa mRTx8twF1b931JW8zaAZU8/vK1rZukMuLK6rIj8FcEK5lBoUDBD8V44UGNOb6VwbbWBI/f QFR6RKvAcwEVYBdkYyVF/OYuM1gqo7PT0d83WHeKevsUwvYBOfQnKslFc+gOUg== From: Pete Connor To: Chaitanya Vadrevu , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Pete Connor Subject: [PATCH] serial: 8250_ni: use kzalloc_obj() for allocation Date: Mon, 16 Feb 2026 22:19:13 -0500 Message-ID: <20260217031913.1166949-1-pete.connor@pythcoiner.dev> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" Replace kzalloc() with the preferred kzalloc_obj() helper to address a checkpatch warning. Signed-off-by: Pete Connor --- drivers/tty/serial/8250/8250_ni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_ni.c b/drivers/tty/serial/8250/82= 50_ni.c index cb5b42b3609c..3f3dac694e20 100644 --- a/drivers/tty/serial/8250/8250_ni.c +++ b/drivers/tty/serial/8250/8250_ni.c @@ -285,7 +285,7 @@ static int ni16550_probe(struct platform_device *pdev) bool rs232_property; int ret; =20 - uart =3D kzalloc(sizeof(*uart), GFP_KERNEL); + uart =3D kzalloc_obj(*uart, GFP_KERNEL); if (!uart) return -ENOMEM; =20 --=20 2.47.3