From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796390797; b=VuV84/rH6H809Nii+c4N7Q57xaWmxIx+AY2fHYNnf8kp7pLgqkP6Y0x8z5L4fMrAOx88 bH9+7zrsOkUvx20gA4LqXsQEzl6v5L+Tht2McoI60od9S9rVpZWhwqA1djVKMamft09kR vIkyOZjcBbtgf9zJjffthf2ywfudCNjfHGRD25EWx7eIgMo6j/lJ9V0T73NOvQ7mgA270 sPmzdmEd5mZ3Iy5gFQmVCZ1oq3hYCfwM0r7mVwEYSDUnWvycM3ovo1MIGHpqY6zbxTa3D f853otb840b+maXBlCnkoo6e2J8IDBEgnfvt1BdeDwe2OQmGwcQJHx88kaYEjar8dHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796390797; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=7N6wVned/6iKga/8uvDNHK6nZ8ec8m2OyhXVrAsIprI=; b=P8WvIuULvMNk6l4nE/BOcsqErZ9uAiMw0ob2iXAuuUBpAO8pzHPVBacHybMP5spu3PY7 JJu0t1PHmU+sadCF/bMY8ZDM9pgGr/PGIVJuFgphgpn1jTlwa1OcH/XApPzSk6ndQjYTH ojkIOhmZYQz0vD4MpdYfmYMdVc8AwLBDmGEPfHYjyli6WBlMY46hpgM6CQDE8hdn6OJqP i9PSgA9/pwF/RHUomRR9VDfBD8NH9pImeVWrhdYDG7mdBFW61MGK32yyQZuzK1ETiBUoT TnQZ4LRnclHvgoY57hUefjEnasK2D0rFW5lFZYOFZYlrfgr9n+xGbl8STI3wkE3v4/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JlbCrbf5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4AF3606A322 for ; Fri, 4 Dec 2026 13:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JlbCrbf5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80B7A1F000CE; Fri, 4 Dec 2026 13:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796390796; bh=7N6wVned/6iKga/8uvDNHK6nZ8ec8m2OyhXVrAsIprI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JlbCrbf5B7SUtbOFS8icPqoHtH+J6CbTYAEx73nyuFMlDCsupUaSZ+KPDjmqqqzyI /f8Sn8HdBBEHqyhjBJ5NYl+YWtm3zSaGZlzxdyIdmJbzglA1XGBT0JFdhf4Vfjw8X+ shnvFvsO6uZoQzcPkNvX1IJTouisr5Dym388AtQYeFokkvoYru0EUmmwEsoShflexu cSSAIndxrTfY2N/+lciywoFl50Se4QW9Zr98RwdSwK8dzID7bbjnp419vfvcE+W6Ty qv87KfCdxFxIReNLMERn9k9r25+JZSEbHytUoczvMgwZXtlXobLF+/EJE37/LWXAxR DeqSDehY9JWTA== From: Sasha Levin To: stable@vger.kernel.org Cc: "Ricardo B. Marliere" , Greg Kroah-Hartman , Sumit Garg , Jens Wiklander , Arnd Bergmann , Sasha Levin Subject: [PATCH 6.6.y 1/6] tee: make tee_bus_type const Date: Fri, 4 Dec 2026 08:26:28 -0500 Message-ID: <20261204132625.3155943-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026120350-catnip-lumpish-9043@gregkh> References: <2026120350-catnip-lumpish-9043@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ricardo B. Marliere" [ 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 Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere Reviewed-by: Sumit Garg Reviewed-by: Greg Kroah-Hartman Signed-off-by: Jens Wiklander Signed-off-by: Arnd Bergmann Stable-dep-of: b8d381d5ed79 ("KEYS: trusted: TEE: Synchronize session lifetime") Signed-off-by: Sasha Levin --- 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