From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CC68B3264C4 for ; Fri, 29 May 2026 19:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780083186; cv=none; b=PxlKa7vhA+MeU2GXK8yAHh2ogEyI0NvTvLXTSXx8LXwvfChQIQ8zt+nvwHl5ENbXOTvj6djAnuDvVeGcsDtm2q0k5/GwNApxOWYVVF5yThl9PlYKzY8bNccVJsyBo+qxfulpKiG2jiIgBmzxNbDdD3SFvPBvNpQBQsHEcGPbJJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780083186; c=relaxed/simple; bh=FZa/BrF6kTSqaZxMpke+LoV28HQ4kYoTNqHHIoUlHMo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eHJS0qdFIbEx5fKFaaFP648X5snH9uvE5oXz+i4+TgrD7M61PIxnuSpd7mcDiRshUVaRH5cTv2+0eWKgZDGkINwsSAAQlhSgypw1RWa8kBz0J5et3/ORen9esWQdhOJjJM7k0e5I5HI9kKfTKc9tSVibfkNyuVDmddprlRnQgFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LqnVvgu0; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LqnVvgu0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E824E1F00893; Fri, 29 May 2026 19:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780083185; bh=xk4FJi4aJAnBAq4K76d712WOB6pmYj6YgYj2pDo/1MA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LqnVvgu0zIYNd1h5fbRHY/Jgf7JsWxhpYBEfB3Q/DIiDTe430nnCt/aJX2RWJJDLC y8IHvIr9r8bxeu11XyTZ8mWzfLofnz32CSJxzuWbS3+b/jIcBg8tXJJgkSZBkVsK7u yqNzpIdrKDtlEgvKl1CVUgvqYJ9vEiTaI1Wgfib2cIlLP9BZtD4fQWrDgJtMer+Ima Xc7J0LO+2lccYhw87RnTd+nOFuhfr9ZfUY8cW4+VRkxnA6pB18K7SSGplYUuTbQqbo SApNM5J9Cb4rpCfXB7xxa8WVlZD9q7fIt70XQ02NegU9m2k8pqnZfCgfzLyB1Xq25h uixLh1m6g78yg== From: Sasha Levin To: stable@vger.kernel.org Cc: "Ricardo B. Marliere" , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH 6.6.y 1/4] serdev: make serdev_bus_type const Date: Fri, 29 May 2026 15:33:00 -0400 Message-ID: <20260529193303.1704693-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026052800-unloving-guileless-afb9@gregkh> References: <2026052800-unloving-guileless-afb9@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ricardo B. Marliere" [ Upstream commit 88cddfb7bf23b06876da6c3e9f296e666d0f6332 ] Now that the driver core can properly handle constant struct bus_type, move the serdev_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Suggested-by: Greg Kroah-Hartman Signed-off-by: "Ricardo B. Marliere" Link: https://lore.kernel.org/r/20240203-bus_cleanup-tty-v1-1-86b698c82efe@marliere.net Signed-off-by: Greg Kroah-Hartman Stable-dep-of: 375ba7484132 ("Bluetooth: hci_qca: Convert timeout from jiffies to ms") Signed-off-by: Sasha Levin --- drivers/tty/serdev/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index e7d663901c075..75c42fa1b5de7 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -441,7 +441,7 @@ static void serdev_drv_remove(struct device *dev) dev_pm_domain_detach(dev, true); } -static struct bus_type serdev_bus_type = { +static const struct bus_type serdev_bus_type = { .name = "serial", .match = serdev_device_match, .probe = serdev_drv_probe, -- 2.53.0