From patchwork Sun Feb 4 14:25:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 196513 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp377113dyb; Sun, 4 Feb 2024 06:25:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgH87deUcZCy9kvbMitSj9PjG/8DgfUItubCR/qI1Wpq4mFIsTzAowXi8MoX7fDRIxTWr9 X-Received: by 2002:a05:6214:e86:b0:685:5dc8:ec9b with SMTP id hf6-20020a0562140e8600b006855dc8ec9bmr4466353qvb.25.1707056756616; Sun, 04 Feb 2024 06:25:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707056756; cv=pass; d=google.com; s=arc-20160816; b=Sn4yXFWPvbp5ehYlbOjwD+kZPfwQBJyNdBlIu3LnvXC4gEaPdZvgrLRBE4mjrkv1ir x23Eehkiw0ZU65HeODl/EGV9QXOcVIPSBiY9FQMtfQ/1kUoIRrY29fU8EnUP2xgz2IfR tYjg/yK9+HItLbPA74H8rLiH8ZIeX3hJAco93osShuiMVKXPN2jY1ucHyA6s4G85KNPy wurjeHwZB0vCq0AlD+4T7ziHnLCOlnbTYeDs/N5+n0jQkTXKx1/G6vkSchav+IJATUJh gbJ/X1bSjFSaGcEfvfqbIKg7aEFzSHtGaGXrmTRbL5NpQwp18/YjcBok+HB5tnO1Lznx RpCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :dkim-signature:from; bh=GrzqA1/9kC/SVQh8KKaDIOO07Ch3FmKZfS4riAJsSMQ=; fh=vVmUFeSEt6O34FZOU1R6FvmMf/e3kWSU7Jrq4SCn0e0=; b=BeTziiyIbP0e8slNHTUJI0EL9vABX/NCufhyjebbC4pszTvea/epVBM9utZwKocgNV eNROxr5wtZiXM0BNFtJy0PrKhlTY/4flXtXDZ8aLAffyNn4zB3auIh4zmeEPki4Mslpd +yvgsua52+w/NNiJSxQESLsP/n0qCL7jtSAqNJxfFHOxcgipzi1C8iM6pxOgq/EX/hIZ n6F1CSTXnuUpsnrEGY2sxMEtLHjN2jTvE+hhw4flE0TQ1N+0dPGH1u/TDy6nHdmGtkeO Sejwv6JF6/+s14+1iL4VpR+T1lgHqh/FHjfeChg+NKgnkBnq7uoVht4ncwfR9zeAVjUU F8yA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=C1ayLjDl; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51704-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51704-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCX7cDcBrLoYCftobqFxThOJFooRdPZpY2z437Rzvb+Wqwp39o41euSbVINjC8KBN2s/QgfwOzlGgNqVO6aL3mIeUL1WkQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vr21-20020a05620a55b500b0078336deaed3si6351217qkn.691.2024.02.04.06.25.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 06:25:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51704-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=C1ayLjDl; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51704-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51704-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 686C41C208C4 for ; Sun, 4 Feb 2024 14:25:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B8C722638; Sun, 4 Feb 2024 14:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="C1ayLjDl" Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 2AEE122EEA; Sun, 4 Feb 2024 14:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707056722; cv=none; b=ZkXzHmj2OCj0/K9qh0ozsUX4d0cBwd11kIYZ41QOPyjZVT6AxcZFaQFe7vNNyDN9rE888G6aRoh6EUrTg9fCdmpulXCT5zKW/ElS2lMR4Z53I2gTL7xUu6K1PA3/vloox4zDV9E5JOmkIJTMvmAG1mMwPExxHgCsvItUmIJ/TH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707056722; c=relaxed/simple; bh=rzp49cPLhRF5YRkkzXrkuWthBcYyCjpzP0assQJmZyA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=jhsFEWpY2Tf7iBeRAArdx/YQNG2Y4RbiqN1fWDzj907Duewg413iyweS5o9kc/zOe+GfrMB6CLthYQaXE5GMrZ8uQU/VLNcbOk4n8IC2BmYIMuInMbxR70s9yEb9AJC+kLS/CvSSUTl1xBMXLIS4rLPDHBZ4/V8xwx40ZjknNZU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=C1ayLjDl reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso2990301a12.3; Sun, 04 Feb 2024 06:25:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707056719; x=1707661519; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:dkim-signature:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GrzqA1/9kC/SVQh8KKaDIOO07Ch3FmKZfS4riAJsSMQ=; b=MbOMWi4KG4dWzrYNNJoEKeLXxpbZM2dCIPlq+GZHmLNgPOyDPE7xLFeGEfFwEoZxeV R9yj0AzFWUtfkc8SQlcDZIayvnNk4Y9hJpKtu4aSpBPXB8lJR95zFgr2XXC065Mzq/ps 2oAuK3FBNlq8M43dKOVzrfJSB8QO2MsNqMr6zdXPKZRjLi0F3um9uNe65JW3H95Dl/Mc jv22C7RVDAEfslKjM6cMw7DqaZT3rtblzV65MohhO01MNea8S5226HJwf9wZ+UxbDVtD yQ8WE6n3VDX5K2xsXTeRb+yV9jEvbmhNILNxES56W9HjKrSW9ePVpgBP9NS2pIQWY8Sk 1PdQ== X-Gm-Message-State: AOJu0YzgHCnPWomKBl6QmrtPTiAKjJ5ToGomEDt7fNJ2kPqf/M7UvvcQ Zzk/tjz2TP18aE8iYazpaR78OfWkT6JKPfw1YxTZtISaslkyEcRz X-Received: by 2002:a05:6a20:12c5:b0:19c:9c1d:6090 with SMTP id v5-20020a056a2012c500b0019c9c1d6090mr13570810pzg.6.1707056719414; Sun, 04 Feb 2024 06:25:19 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWFwN+D70SIXrfM/LiSwvS/M/OAFDk2sKiuhuDcz64Suu+AhF4S9/f1+sHNIy7FwbCBBE5cfqZ7XLT5vC4/ruMAK98/amMJweBagjJEd9Kvjog9yv0hTesKuEhHmeCIjKFYHJnN/MQ8YnRRG0gTKFk6GhVVA5sd8ZFM/uLa59noS2wS7l0W2nkG75VFjtOp3h46/ZkQlyriZICtBTmwR1WeyNceOMz1iMqun92wVq4YKJqWdrYZ4231UEnqjPzeCcI4iZM= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id ka39-20020a056a0093a700b006d9b2694b0csm4777290pfb.200.2024.02.04.06.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 06:25:18 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1707056717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GrzqA1/9kC/SVQh8KKaDIOO07Ch3FmKZfS4riAJsSMQ=; b=C1ayLjDlc/qbehe1XNToJcchDkr9q/TeFb9e4is4Z3rODRPonT2VipgfzZwBRqpUZ5uT+k xx2IssortygVxu7L05nZuiI+w1eSGJ81pfuuPVHfjnKqWGvsbkQDk/6eQO6BBlYydfBjVJ vO+RtYzX4jyfFLNqDKfOaDvM1HyLDEa9NQWdaEUndp67BvWrkEdWvyf8d1JwA376E+zutq ORqlHLtPecGQjym6VT0ORYge3sk8yuEzUJq7GRVazIv18hdChRyUaW/VYY5LVJ7PabGM14 L+CsdV8gyDq+lBxCIMM7KwQWf78BqTQ7QZ4r8jlSwOHke4ce6oMaWWF3Wc0OaQ== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 04 Feb 2024 11:25:45 -0300 Subject: [PATCH] s390: time: make stp_subsys const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240204-bus_cleanup-s390_time-v1-1-d2120156982a@marliere.net> X-B4-Tracking: v=1; b=H4sIAGiev2UC/x3M0QpAQBBA0V/RPNvaXRR+RZIdgymWdpCSf7d5P A/3PiAUmATq5IFAFwtvPsKkCeDc+4kUD9Fgtc211blyp3S4UO/PXUlW6e7glRSOZVkY59AMCLH dA418/9+mfd8PoPhTXWcAAAA= To: Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1082; i=ricardo@marliere.net; h=from:subject:message-id; bh=rzp49cPLhRF5YRkkzXrkuWthBcYyCjpzP0assQJmZyA=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlv55stPUTtSSu1buSOLh4PaT14iz73KGj8/ETy UyKxF5TpCGJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb+ebAAKCRDJC4p8Y4ZY plXdD/9SEgJGPyIAwp7YyD9biM6Jo3KpZGt5feF71deR96N30ZPvPcL10RBfjGnEKmE3r0cv4PT m8HM90adHu+ec+3DRo53X1ba1gqALLjAMSZS9dieMlQfYa5+RAb3w12wnOwF5srpuP+cVaaoSqY H8N6Q93+BckA8SvTIgtBUfRdmQx22kmqJi2F2MZXdSUPKk+8kEWs39/L1xmcVe2QRpAis60Nsd5 zXOR0JyDt9pyNRaWyfeD0XwGQuDLnD/M06V95N9X80vGFGFnAJhzKvdutYKQ86TD7HEu8uG4S9Z On4uOZqcqSPfKreg5QaKYhohBickGbevJmUWGGEsStH99sj2KADWsSnqRrwL5iI690by1vxPP6l q/zo5q8a3kNZh8cAvBIrSzreafm1NmXajKn28hIeAFZtOQCwTxn84tdeVmHqPkYeOHA0RlNnTeQ aqO7e9aR2MYrIn1lgovFUakqebBPB8aC6KztQh4hUEQeZdoouvzM5/DwDQE1TJ3+juknBoKfK+L f5rwyVimmOlMKpJqiy8kr6NhOGmfs692cb8mozokg4e5h3khX9xg9I/ZFFyxeT72NsYtaA2ldDz MPXekzsqef/KjHZo7Kby4c0aPKfhvpNs3FSwQ6mc4A4SkTDO/VerpTfm048mDrUahym/ZnqtPUv /qYbeoK+RYFidZA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789978745649333915 X-GMAIL-MSGID: 1789978745649333915 Now that the driver core can properly handle constant struct bus_type, move the stp_subsys 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: Greg Kroah-Hartman --- arch/s390/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: 8eb3db95a8c8ecd6f8bb082a99ded3bbc79b023f change-id: 20240204-bus_cleanup-s390_time-cf8851bbc1dc Best regards, diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 14abad953c02..39a42369389c 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -716,7 +716,7 @@ static void stp_work_fn(struct work_struct *work) /* * STP subsys sysfs interface functions */ -static struct bus_type stp_subsys = { +static const struct bus_type stp_subsys = { .name = "stp", .dev_name = "stp", };