Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: "Ricardo B. Marliere" <ricardo@marliere.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sumit Garg <sumit.garg@linaro.org>,
	Jens Wiklander <jens.wiklander@linaro.org>,
	Arnd Bergmann <arnd@arndb.de>, Sasha Levin <sashal@kernel.org>
Subject: [PATCH 6.6.y 1/6] tee: make tee_bus_type const
Date: Fri,  4 Dec 2026 08:26:28 -0500	[thread overview]
Message-ID: <20261204132625.3155943-1-sashal@kernel.org> (raw)
In-Reply-To: <2026120350-catnip-lumpish-9043@gregkh>

From: "Ricardo B. Marliere" <ricardo@marliere.net>

[ Upstream commit 469f6acd9a538ea963e2d4d13ba721a7ad1c1813 ]

Since commit d492cc2573a0 ("driver core: device.h: make struct
bus_type a const *"), the driver core can properly handle constant
struct bus_type, move the tee_bus_type variable to be a constant
structure as well, placing it into read-only memory which can not be
modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Stable-dep-of: b8d381d5ed79 ("KEYS: trusted: TEE: Synchronize session lifetime")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/tee/tee_core.c  | 2 +-
 include/linux/tee_drv.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tee/tee_core.c b/drivers/tee/tee_core.c
index 976912f3bb5b4..ae4dadbb73201 100644
--- a/drivers/tee/tee_core.c
+++ b/drivers/tee/tee_core.c
@@ -1216,7 +1216,7 @@ static int tee_client_device_uevent(const struct device *dev,
 	return add_uevent_var(env, "MODALIAS=tee:%pUb", dev_id);
 }
 
-struct bus_type tee_bus_type = {
+const struct bus_type tee_bus_type = {
 	.name		= "tee",
 	.match		= tee_client_device_match,
 	.uevent		= tee_client_device_uevent,
diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
index 17eb1c5205d34..29d2f5291bfad 100644
--- a/include/linux/tee_drv.h
+++ b/include/linux/tee_drv.h
@@ -466,7 +466,7 @@ static inline bool tee_param_is_memref(struct tee_param *param)
 	}
 }
 
-extern struct bus_type tee_bus_type;
+extern const struct bus_type tee_bus_type;
 
 /**
  * struct tee_client_device - tee based device
-- 
2.53.0


  reply	other threads:[~2026-12-04 13:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  9:37 FAILED: patch "[PATCH] KEYS: trusted: TEE: Synchronize session lifetime" failed to apply to 6.6-stable tree gregkh
2026-12-04 13:26 ` Sasha Levin [this message]
2026-12-04 13:26   ` [PATCH 6.6.y 2/6] tee: Add some helpers to reduce boilerplate for tee client drivers Sasha Levin
2026-12-04 13:26   ` [PATCH 6.6.y 3/6] tee: Add probe, remove and shutdown bus callbacks to tee_client_driver Sasha Levin
2026-12-04 13:26   ` [PATCH 6.6.y 4/6] KEYS: trusted: Migrate to use tee specific driver registration function Sasha Levin
2026-12-04 13:26   ` [PATCH 6.6.y 5/6] KEYS: trusted: Make use of tee bus methods Sasha Levin
2026-12-04 13:26   ` [PATCH 6.6.y 6/6] KEYS: trusted: TEE: Synchronize session lifetime Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204132625.3155943-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=jens.wiklander@linaro.org \
    --cc=ricardo@marliere.net \
    --cc=stable@vger.kernel.org \
    --cc=sumit.garg@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox