From patchwork Sat Feb 3 14:57:59 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: 196312 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp1055362dyc; Sat, 3 Feb 2024 06:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmkBtS2eMxBD/1pQFmRxJs80J1tZmScbvNDzFb3WhCVT9G9x9B4OWQssuRUfOzkG4ISZqH X-Received: by 2002:a05:620a:568e:b0:785:45a7:d47a with SMTP id wg14-20020a05620a568e00b0078545a7d47amr8152878qkn.3.1706972311001; Sat, 03 Feb 2024 06:58:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706972310; cv=pass; d=google.com; s=arc-20160816; b=tsEMIPzi5CN4JdhgyA6muDUUyvZ9XrlZ/HoEA5vaEIyZzOuOd0/2mXQRyqJBH65E3+ X4SbeUJ7jYBbBy+vkKE7W+it2c/aWEEzUHGMk4mbzp9Ggz6fo0lh6S49TEb5qlKu23PA lDlvW1qwe6+LSOTs7K8KXcPJ/lGNWuQ4sELH8Vc/PISBLEkK+nyeVA/RIWJfgx0vTlAY FFPZq3JXBEZBPMMAqyRAU41qqkAS8+3xAJxO+3Mwz6F6dO/5qVq6xPmOShjUORZVtJc3 JMvS0MB0fRWMbSyv7YxAfyYatuO7C7yhR/mkpNf0dt6Yn9J3821zX/qWYbI/0wFkL7kA JTKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=iVvoN0wXfCgYng52T3ebQoQAp0KpMeD8Gkb2umjpO9Y=; fh=+Ge9ATqO1HyplGkp96tBBNI9szZNxEy9Bu/a5dtEb5M=; b=mMb5nPNVbgdCD9WUhB6GKK+PRJPkXrD3D3G9cYU8yO08bOan9t4c+ihaKxpwZUHERD 6qHPbGTlwL5QyuacLLN8WqVkvVMWkuB3zxhUC8BvC7vbv2mge6j+BU5do4xWRxMqxqfk tMr2EWUr5xjSFb78CxsZ17oYpJNsEcsZ0B7n/UEsNb5VUCW9YmQTSVo3LrOlFcCKS7dA bMHE8XaXx0lIAKQGMfvEdX2uJ57Sjt9Z/9amGwvO4CyNXcbsYaZvlF8GnnPK0eL2NgpD LlXF1+3LnBEfUjEdorFURjA1+XBCgraGQ8SPKG3+tRD3vub8HvvDsCTLBXe/1ee8Ndu0 O2EA==; 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=INjUJtz8; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51130-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51130-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUjowJ9u8fGAut877SSYfYqD424YT8MjjLJAAXyrOSc86+SDfiCA3G0ud5B/vyFtR1t8pj0Dpfxp2VDFmVyXhc4Ndw26Q== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wa16-20020a05620a4d1000b007833b422ee3si4210673qkn.669.2024.02.03.06.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:58:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51130-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=INjUJtz8; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51130-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51130-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 BB5C31C21400 for ; Sat, 3 Feb 2024 14:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 277885F845; Sat, 3 Feb 2024 14:57:54 +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="INjUJtz8" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 813465F553; Sat, 3 Feb 2024 14:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972271; cv=none; b=W7NdYurPVB/QT3LyHVxOCxhlpfNQMY9uIhpHag+9FatDtN6fsRtCnaf0JILRi5TygXqFSqNRDgRpxmrfMz7N/IiiHweMrjuSELoNdDRyjM7PpbGeEgiRfSyqL0kSEIhaqTNLRzqe1FGL+u4AWrO7E38wUFHqP+nwAPmd7Jo1vWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972271; c=relaxed/simple; bh=N6FUHZVz7nICU9v02WHrAmRqKZqNMR8e/cf9i/r7ubY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OITBQjNNZfzoJomexlacC+LucTqSkUIRcgQR2zkYEtG9KEnU6+xM9U+crc3hqi4eIhJ3MqTwjRaHrSzzFVvFCCXvmzZrUcg21jp8kMIexnHzr1XlEb1QRkriE2n9QesDzWIYcGit6o5z1guahbXsLQRWtPbY1zNmFoLDyftGm+k= 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=INjUJtz8 reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.179 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-f179.google.com with SMTP id 41be03b00d2f7-5d8df2edd29so2430441a12.2; Sat, 03 Feb 2024 06:57:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706972269; x=1707577069; h=cc:to:in-reply-to:references: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=iVvoN0wXfCgYng52T3ebQoQAp0KpMeD8Gkb2umjpO9Y=; b=OhbffOEkZTreT1mgnmLZbBr2cDdHw5kQdTmLftwkzjHU8qNf3LpHLbNJgwH+pRap+R EYT6p3+U1ZMfm8sr3pZmZFH88VvbJQO0/E72ColMMKrV+pNA2302QCtPIorAQkdFdcUp aAV5t2QCZFpnyTO21SFSjImGFjRrLGwyE4HRVPgZEyjRQhv5NB/B6ITYTKVnO3jkmYbs 4Zg+n6EJYDSzxBsEUB8n9PJnbBVrX4Bu2J80/IuP1XzfguAvwcDi8ld0DgR4dKYdGZiF 99KIGfw3ZsffDeZjUJKarl0t4fLoKCPGR3Yt6RFUC7cUzJovuUtUkSXcGcBMdupwr80z O+ZA== X-Gm-Message-State: AOJu0YwgF0QnKP1f9qdRwluPtBBZnf7Lyux3YG5J3sQpgGoqA4gUx4DM LFc6xLGNhdrUHRL6E16/QlIb963B75Q8A7kJtBEM0rPp9kGCaDxg X-Received: by 2002:a05:6a20:cb59:b0:19b:125f:66e with SMTP id hd25-20020a056a20cb5900b0019b125f066emr7229393pzb.62.1706972268758; Sat, 03 Feb 2024 06:57:48 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCV6Pe17rVITfrIst4h3i4oE2dzkNkWkMoqgGar+km5N7ztG3W/mKCmavoo3yXm8u5wI9+LTD1RpORrpkHC3NDdnLfiANCI+YtpM4OUg+cse/51zcnzGptOlZwBCENpHe1BGSNk+L8FXVsrhsU24Nkacqi7+LTVgf9how1eSo388JLu1sTqYJiizY86nI2LEUipSiUogdmgHmZjYSUui+DAS9lr6Lftwexj9J0de0Re6p3pvH0GDx2v61jR5UgM4G6CsOnoEoMPYd126F3gJLDvjQEeOU0XaEOH57aWEqqSCtY/iUlSxabHrz14Jq6ctvJqgT6pbNnunI4h4OX7wY4Dx/9QQySoi6Y8EyPzflF6rer6AN68jK0/EdD3RUsQv/r5DsyBZcpUL2yxSiUKSGhJZlcW0pbnpQtdMLr4Xrcw0jYlSSXwC5jg= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id y12-20020a17090aa40c00b002962f35fb42sm1855377pjp.48.2024.02.03.06.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:57:48 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706972267; 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: in-reply-to:in-reply-to:references:references; bh=iVvoN0wXfCgYng52T3ebQoQAp0KpMeD8Gkb2umjpO9Y=; b=INjUJtz8DPIqbSPB0oi9DnXpCTzfz5qo35IochaMl9KhSs8YmCILnNcSTacdhYtIuOGtGs rWqFE2y8ntWahRi4AAIXM8wK5OTX+QXqN+Fp4qCuwecIrJ2L/lKYJPDWWJUNywg/toav+t sMGs8n1TRjEmmCYmL6zZIYpS3qJf1JTeCwPSB9wG5p/ieyRh5mcVaUJBODlIsUw5bG68jg gNJNSunbiV6lHW9PEFMV7s2ELYHCShKrsqj7glWxKF+nwxvCQJAdruq2EdSWy7ueTutrTp qqtsSIiYLRPLeIrEhmkncasu9tU99kRVTDiU1T4Galyu74wPkVFc/+TM9CzBhw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 11:57:59 -0300 Subject: [PATCH 2/6] s390: cio: make css_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-s390-v1-2-ac891afc7282@marliere.net> References: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> In-Reply-To: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Harald Freudenberger , Tony Krowiak , Halil Pasic , Jason Herne Cc: Greg Kroah-Hartman , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1240; i=ricardo@marliere.net; h=from:subject:message-id; bh=N6FUHZVz7nICU9v02WHrAmRqKZqNMR8e/cf9i/r7ubY=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvlSAaI76EJeeVXoo8iaG+VhshhoYFeT2164bO RcuJ5CXZBWJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb5UgAAKCRDJC4p8Y4ZY poydEACS+mzfhuRF81tMmnPhK5zhdwkdrD7Smo4iHrRjIo3rGrRcPwv1oKSao5mO74I52AhKiPl NmAFaYdy75D3lmp6F8zUpCwOO94c9u9rzSzF4hGcDxCgwb2ec9VZQyZTOReLwEbzpjgsUsuHral FLXMM7CP277PWR5IdExKGEY5SZy78p58kphhWKlB3XCYfmSB3lRmtDjkFFrt03iKwyjaiYQRf5C ueZ8UQgC8DEvA8sgIA/OA90tO6OJqytjyv3JlbUYCsv004gqvwunlUwjM/QvbeM2X+xGMSMclEF 5A3BRzNWDzro/UnWbvxxpQ5SLc/vihE8GNLSsHnGRTYc5FEDUaHPBIy6nDNB1bb0gETZRzvPDGO +QCxOYB1kZGVx40veOQLJxUpTeeWeyHp5esxw1kmMZlbQ9l1rMpWVlAPr5YSGQ3ccbcZO3RjP59 dJL3uiNjlCGUJVMhU3/X8wHwh9zIfLk0zhQG85vADt7ZXHPhilW0ZeEmQoUNRUDECW1MlylOKV3 BWT93RNweFDyUIVpGWnIv7SBGXbkgih5/cXCU7buWPcKLNY/sPfz6+u1h/d1F9KSE5FzQBC+Z+I eRr1qrx2WNkaE2vR1wyeUG6tEcgVA+DMEI354OXqi5dLG5CLaxZNa2FRIk7d8VNXk3uoyLFguzW Z0QJNQ5DlGHdlLQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789890197938193474 X-GMAIL-MSGID: 1789890197938193474 Now that the driver core can properly handle constant struct bus_type, move the css_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 --- drivers/s390/cio/css.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 28a88ed2c3aa..094431a62ad5 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -39,7 +39,7 @@ int max_ssid; #define MAX_CSS_IDX 0 struct channel_subsystem *channel_subsystems[MAX_CSS_IDX + 1]; -static struct bus_type css_bus_type; +static const struct bus_type css_bus_type; int for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *data) @@ -1409,7 +1409,7 @@ static int css_uevent(const struct device *dev, struct kobj_uevent_env *env) return ret; } -static struct bus_type css_bus_type = { +static const struct bus_type css_bus_type = { .name = "css", .match = css_bus_match, .probe = css_probe, From patchwork Sat Feb 3 14:58:00 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: 196313 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp1055458dyc; Sat, 3 Feb 2024 06:58:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYgOF7BKEL3/Bh8qxyNNNtbA+uMxq3eODVg4A3PSAdiZzf4zi01fjnkS07oIjjtEznYbEk X-Received: by 2002:a37:e209:0:b0:783:f3bd:1909 with SMTP id g9-20020a37e209000000b00783f3bd1909mr2091021qki.37.1706972326003; Sat, 03 Feb 2024 06:58:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706972325; cv=pass; d=google.com; s=arc-20160816; b=pCfmQGTdkrnCAO7Jh7wvyoY3POmxrV8isTPbAytT/Bl9Z5+/8X0qDF2hHHQAElObKo KL6n4j+SBMZwAWwDECki2ybaebYiMDGQR7KP7yhGHAPqY9yEiBT/OvTkuNk7NUI5lGzl zsy9TJmVyVyMDRp30yExHtzkactXcRSZaZDCGU+Spoo01qEC0ehW0U3afbz+2foP0y+3 +PSWvz7zNGStA3PTzsS2ZgRnO1pIS2pArtzc6yFug/7GmUKawVTZxZS0GKyyVtk7Wqbr v7dC3eflRnW+DR+2hkO32aBX2mfcCt/u6sgg8Okz87AYw1RMn1NIdQ6j8PCYXbdTCljA Rj5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=lHwOQPu6JJEjp0Uca7hntqTrI+9sFUxfoRsBBVe4/68=; fh=ut57X4AYQKZKHMGcQ2qveTUTFwt9lxs4nxq+21kLvTA=; b=B97zmP5OM4Dt/KRVECPik/OAJSsPz5fYab7ELwGFn+2EKJECEhZ/Q/tTD2/pAGrGV6 If/bGm3rCtwoF8aADfgk14emnTx64f7QTYhkYU6dxehdSdPxWrjdkARo6EghTHt/ciht TQbn3q3iOQhLS3XmpBSU923VYFe/bfKzFXR9X+cmofRfMbvkmUYbUBNXZg7Wa2WcB7Xm C1Q8e9OdLXXBb3Bmnkm2sVTqIlIakxGfz+noTbwLMpnkGSUWH6HhkiucO6BNparsLBZh lfrGeRT9JP9fVWt7tfKi2mPERu5caaToPOgpl2cnI7HsY3SpdFf5RZsPhZYihLW3Z4FL Cw5Q==; 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=mMXdHiiD; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51131-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51131-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWdy7UUMr5M1MSODSIRu6bC5Uc15mXGP0/tSdSlnZcObnksKqqFp2Zqlm4+rVj8cTJeH9Nt7/yoWXj09bPt0jdc0MbY+A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z10-20020a05620a08ca00b007835b80b398si4446141qkz.655.2024.02.03.06.58.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:58:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51131-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=mMXdHiiD; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51131-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51131-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 B8DC61C214A0 for ; Sat, 3 Feb 2024 14:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A1C15F859; Sat, 3 Feb 2024 14:57:57 +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="mMXdHiiD" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 DD5985F579; Sat, 3 Feb 2024 14:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972274; cv=none; b=arDMDQw1mtJalQFEfABYM94883wz/xqIepjsmHV4J4l8XPyA/OJv3X5ivAhzOCGwWl/fgQK9L+Xp780Tb0zYZcgkBBJ9qnFCzMLolh2LYrBuc1g77cil6hl7P/W3R+88IV4ZnTdaW4u9M3FXd4vco6pWZe53nB53SIrfjuMrW1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972274; c=relaxed/simple; bh=LQZJcq94nKe7BZYvOY/G3jm6pit7GvkEgv2oDWVhxPA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=k6brB1/p4HcECdm1eLFsF01gfez9pHWCSjcD/OvAV3iTUjNMSs0aDnRIXaVhdxJnPl7V5pqL0lFGmDMnqlqVjeZZjqp+BZ8Y935Fo0Ifd2mAH3xlCwLIehV4v+SrTn7qRpfpC3UGcMuu5ecz0kefR7z7gxwnF0s0OETfjfEE4Sk= 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=mMXdHiiD reason="key not found in DNS"; arc=none smtp.client-ip=209.85.214.174 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-pl1-f174.google.com with SMTP id d9443c01a7336-1d99c5f6bfeso675565ad.1; Sat, 03 Feb 2024 06:57:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706972272; x=1707577072; h=cc:to:in-reply-to:references: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=lHwOQPu6JJEjp0Uca7hntqTrI+9sFUxfoRsBBVe4/68=; b=Ilb7EMp009s6iXeMMgYAAb9pAqMq2zBY7BjgAlF15G5VfQUc3VYekHuETt8G+emr3A ho6EKJg87D6ZuJgoheaCQMhubYLU464HRubW5ehfhHtMgw0zx3LV8L/fI2wBKxiR41z/ 8HjqeuqbDR44uyLzjPWlX23QcJ9ltG4e4vP6UCT5gtbHiQIE7UjC+QySCfD0l8L63O81 N7DZttBffmRHuZdYrifjzWMnLAS+iHn2quDAnkPrsyj+3KePdITw1crJytn8b0mdUvfj TlvgHGWW35aVzQ8H8jKkb5HQeaOtXfsuHhDiJa1/kwlsACoJSTWjbILhND2IZrvm73cb YUTA== X-Gm-Message-State: AOJu0Yz9OFmoWbdFOlObws6oUcdqsQH5loIzQoh8e9qAXlNIGH59KrQN icMRLr/r24XBN7kgjnJLR18K1/dUHpFAWEGHAk2wnvUrWzAzfMEX X-Received: by 2002:a05:6a21:2d8e:b0:19e:5683:e8cf with SMTP id ty14-20020a056a212d8e00b0019e5683e8cfmr2692938pzb.0.1706972272099; Sat, 03 Feb 2024 06:57:52 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUXYMntrFtBfSGoqWq0HDYQLDqodEJ3cRooAdYU5n+BR4smxkT0aRTMec59ZkJhQbwgyIxNb7uTcl1KMCTVAkZeJAC3FNZt3toPF0IOi1ALSs6FIklY4LgqO55bEmu2XzQNMbxKkg3SazH4j2GAhNrc+WBncmV2jMQo5krk8+ZMF2A6Z5/MLwKRr6RxXCLr8uDLW36YwUcjaEsSrGvAVx0VUGYK7MfvslAK36Y1cffa+ZLaZDu7TRc+tPDik3R38GHOME/ACiZZK1AlYD+WsUdkeylZqlTjlBLEHzcLsu8Qh2o+OFnGLnU43U8675oNXJAjJgb2xZkurNm1LiWV6Ye+mHBPpy8DKRfBqTc+ai/W06U0w5bGR51WgJ3FGjYXGjCF8tPZJy6EK4MW9isHx4Ssyt8NKs7TqOvdHcFmYM3IgTL2RyAVrAw= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id fb36-20020a056a002da400b006de39de76adsm3473990pfb.139.2024.02.03.06.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:57:51 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706972270; 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: in-reply-to:in-reply-to:references:references; bh=lHwOQPu6JJEjp0Uca7hntqTrI+9sFUxfoRsBBVe4/68=; b=mMXdHiiD5VKldXCDzE0USYiR1c9OLBLHvUfZ0FBiGbIOa4Tx/K9hEuQD6D4BLYxFCKPq+S azrXOkeYG9ae8gbWuAivhCWrdPS58tNFpSFG4PgUK0YEzRR/+1pDaCeMPuBu9u+CjSj8nI tw0APPk9vCyPzYhLI/vsUUyJvHX5oTKo/Ria2xClXI4/F78Pu28ZrYOM9AMzhvba/pBgvZ /neQ2yGM0AtYlVrErQmyH8OTa1Imno+JIPYty5NCFiBie8+9dusgFfRdxihN6BvgZn1ulq 5u7S0buxXBxwo7wzW1OUBzybTnpOnG1kMYZNSyE0B7pjMNtNVOfeQEz8jS+rrg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 11:58:00 -0300 Subject: [PATCH 3/6] s390: cio: make ccw_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-s390-v1-3-ac891afc7282@marliere.net> References: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> In-Reply-To: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Harald Freudenberger , Tony Krowiak , Halil Pasic , Jason Herne Cc: Greg Kroah-Hartman , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1294; i=ricardo@marliere.net; h=from:subject:message-id; bh=LQZJcq94nKe7BZYvOY/G3jm6pit7GvkEgv2oDWVhxPA=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvlSAHO1rmsQ7DHqMlfo3AMrefF6YBApTOTqJV CB+MDAoAl+JAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb5UgAAKCRDJC4p8Y4ZY ppJKD/0WtL0b42u4C+p1k9jAut9XcJKJIEshxtaG3qzA/3fku8+f2dZtbEmGuec8nPwKNYg/bez YAKRFY9LOAmQp0kkvoTwJ8W1I1a91+CSbcXUDZXF3QA3BEi/Me5le4ADZaYOG+HRm868AguoP71 xIKTAKgx+MCp1ixrniVzMWvp78EXRvjeLSKbvlHdi53ZYRuR8BLDslX3ERnmtjUgCGBt0dDLvND woBJPZczQLB7fD41tK29dlfIrCwUVEIMeo2ZqxM2YJ/j8E/7i15Vq9hhLaLAT1L8kmRfZV30ocY +I2KKi0+2MtUYs8nt6PUrm52PeYaIrzpFLoB9lmJRP5GB3QfRYmoeMUGupg1nlWsHTtOKiLU9cr R6L9GBzd1eJP1eJu5vcOy75u1I7mmjweIbWpEnHZWFQ+0U4OjQxyT0cBFGidGI6AGrqXHH4MSz/ P1bx8sWDJnoICFokcoKpBRXo5+KcHI+tEUzVkYxVF0zmxM7fbY3QVcIaB8Zo33j9EvOrT94vwyJ w1WsEuwhvsWTp/xYQtJ497gRWQYPmZI3ddmOJCs4ErBlgYkZlah9Ng24VTsYi/wLSj+nGi81RPm xXIQ+8dlHAG/p0wTv6PFbQRLA7smuLvos+MvyLVhLwsIMpjpPd1q3EiEIQrmDma7beZvHr76fhi /aZB0lfiRXd4WsQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789890213831005774 X-GMAIL-MSGID: 1789890213831005774 Now that the driver core can properly handle constant struct bus_type, move the ccw_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 --- drivers/s390/cio/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 0cfb179e1bcb..f95d12345d98 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c @@ -49,7 +49,7 @@ static const unsigned long recovery_delay[] = { 3, 30, 300 }; static atomic_t ccw_device_init_count = ATOMIC_INIT(0); static DECLARE_WAIT_QUEUE_HEAD(ccw_device_init_wq); -static struct bus_type ccw_bus_type; +static const struct bus_type ccw_bus_type; /******************* bus type handling ***********************/ @@ -1776,7 +1776,7 @@ static void ccw_device_shutdown(struct device *dev) __disable_cmf(cdev); } -static struct bus_type ccw_bus_type = { +static const struct bus_type ccw_bus_type = { .name = "ccw", .match = ccw_bus_match, .uevent = ccw_uevent, From patchwork Sat Feb 3 14:58:01 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: 196318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp1060884dyc; Sat, 3 Feb 2024 07:06:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFihLMW6sR2oseRhZx6zC5xYnW5vSvJtAbWSVU4xCv4ONsYSuwZNE1L3zac2+ZJU0uuoeEw X-Received: by 2002:a50:f687:0:b0:55f:f7bb:4102 with SMTP id d7-20020a50f687000000b0055ff7bb4102mr1767896edn.8.1706972815249; Sat, 03 Feb 2024 07:06:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706972815; cv=pass; d=google.com; s=arc-20160816; b=MkOVFK/9Poe9boH7DN4vbSpdDma3qkkCbueOMT3qfAEddfiZhu1XYE58kl82abyOZI slKhUDBcnZ6/rn9mwJ/Kp75IjrCxauEgz5BoZ5y42U23NTh9jNZa045cRW6IskwoIBvp eXpvBo4+v0scFo+kI5X8OO3UGEVpfB4/eclFoh5AVE3Ery7tTzdIzlaY75nOCxSgep9y iPPVFfADn8yXH7wI1EqQnR2cZP37utSpqyDHBgATsfkDdAjpnKD19YvKGOeRfjZuKgH6 8PeREGXA0QSiBBbzfdIS8wwKwn0hehfQR08aaE/rGm5fb19fmRg5W4AdgqMmYEzGBh+5 SBuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=wMrCvox2emkuzihcxzjFaRnGeo9VP2X3FS1KTn7sXO8=; fh=G6l16aptMl4of9tBADM1x9FfnTogAKZIfoLdLENv1bA=; b=ok9O659m7B+2oQKENrVhyhNAifZOO6GLRweeZjKB0yI9oF2nOSvYnvgLGYIPeZkUfi 8ps1GGUjsdVm6PH4nUbgWjstxrTBrGu1DJk68UN9/BsCre2XvXSEt3nMpulahW+Cs0Ia Q4mLPJcyQGLw6ddLSu3o5AoQ0IsTj+Ftn6nZRbbeciymQvSyahU3jYe3LH+sk/HB0VGV FBR54eiRFGhqPK9lHP297jyzXm5XtFnqRUHRs8YlEjlBIyZHEXU5YcOav3ceVCyWUMIq OzyuKMi+lqLRkfH3j4LdbpPYsjjwqyQ9K0+o343ngJdYio38Vh/f8M4WtLdnvPPU6vpx Qmdg==; 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=oovCPkTo; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51132-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51132-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXXeyXIiqat0kY5U8iOklGg4z8RILQwH2Kpcy069nlTbTdEB/geDwB31oxTaRopZpuQtIXwo2V7Cr+3PnkRIrLpseU2cg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z23-20020a50cd17000000b0055fe9f04862si1804305edi.666.2024.02.03.07.06.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 07:06:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51132-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=oovCPkTo; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51132-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51132-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3ECB31F24A6C for ; Sat, 3 Feb 2024 14:59:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5012C5F865; Sat, 3 Feb 2024 14:58:00 +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="oovCPkTo" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 D727E5EE99; Sat, 3 Feb 2024 14:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972277; cv=none; b=D66byqbKsON43pFnXzCssYHY3htRgOY8YpMTC0aZAtHPG5Cr7vILzufWWAlPOgVnOPprqTVCPWSTCBKpaLw2rmvkf8QKGOICPtuv/XZOcAhR9qU2zstRCnKyTFrYOdt8Abvk2oS9M99MqyewPrnxSloCCJSvY+HdyTxQudUTLWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972277; c=relaxed/simple; bh=iAj0xHQKjnDvEWG01ZMhoSkt7wKBJvqr74+xx+jEdfk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O2uf4YwI3QiDNYHIJwwV2yvND9ViN+G65GsJLfHvl14Qo+2MTB+JJPnbi/lUd/SXobunwCxuAlmNRC4PIce9ES60C/k/nit4dLEGkMmtPDamf7gapZkzBEkCi8tFq60wFYkln6dhozOijI8b0Mqt9zEJbbLC549kx5XcIezhc+8= 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=oovCPkTo reason="key not found in DNS"; arc=none smtp.client-ip=209.85.214.174 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-pl1-f174.google.com with SMTP id d9443c01a7336-1d95d67ff45so19037495ad.2; Sat, 03 Feb 2024 06:57:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706972275; x=1707577075; h=cc:to:in-reply-to:references: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=wMrCvox2emkuzihcxzjFaRnGeo9VP2X3FS1KTn7sXO8=; b=lwOStoxOuYft8Le0GmHGLCcaJpvbjTCSBCopQlOScYfxF6sosk0wOxMfjrTJoP7Qc2 iEMRxIfMnUW4sxGd6LJ3cVIu/e6NyGXaX3YuvqBu5tx3IIilsLS7X6BFbGv1nC9+02Im LApcdwmZMb3CWggs8Vnl45vf+w8VP8AwUnNcwGVwKkjGOtjArJ8J83liyy8yXtJYBiXi ZOgyaX48toNRwMzbY64SQoR+HFux1E1TUve3IjfBlasCirttA7PUBmePysjvmkaQxKBA mNqHEMf0QZS/aKFFkWYfNBTr8fzyIDDIpc2P6oJmiTXYdzpjYEU6la/t/B5iUlx/NPjy QSSQ== X-Gm-Message-State: AOJu0YzfOvivO40yQkzUufMIHBGALIpiCXfk6vaIK4XK4TJmP3s+zShH FrG0UKksauZI020JpmWRWxtWGB+QCzhPhPiDvi7xcV0SmRM93JFsnqgUN1H/793DmQ== X-Received: by 2002:a17:903:40c9:b0:1d9:89dd:19b6 with SMTP id t9-20020a17090340c900b001d989dd19b6mr2684747pld.59.1706972275360; Sat, 03 Feb 2024 06:57:55 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCV23pyAlVVbbBvq1znLAtrVTujReJMTSby7pDQeaddYuYMr5B1YDGcG1GsZF9Itd+j5FXsrW+LzkPV8dKQQ1uiMtVX7KBSBDuqdyC2homzPwdDCX+yzqktZUnApd2Xs1bxeqXo+GrZN9DJFcw1rEuFuv09nuzD1QPwLDLCkU8ShJFsadYR7miX1NWkNc3xVuUnJ8pAv456Ciu5Hcocq3Z3ZxKL0iCGFAujgJUalFMAyeO99wxQo4q3rQyULi3rKHPlbuGM9QAsS8sHUBxKMT2WJWUJAsv3J+ndp6Ik4gOnCLwmJA5kF8QzchahisGxWmWvyEzKR8Uw46ARLiQz/VUQYxBBazaS2MlzqTLllX6VFs3Fewpe5wn9hdR83G5M+a5QDvQ6IXAfG22ZN7415kSXl9ul1AKU+G1GnCKkfkkF79zJqZsRBZW8= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id p4-20020a170902eac400b001d92c29d6bbsm3374298pld.83.2024.02.03.06.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:57:54 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706972273; 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: in-reply-to:in-reply-to:references:references; bh=wMrCvox2emkuzihcxzjFaRnGeo9VP2X3FS1KTn7sXO8=; b=oovCPkTo/ok6kdhmUA83IVzle56xEXSBzylx+lX8RiINdTjg0RmSydNaQ3Yrr10pbDjddw i40Z9/mAwtfZB8p1dqs8//5QjG4J9WsNMeXTLiB6vCoHF2QkWtqsTKv5Wvopak5hrxmsC+ ZCa+MLj3I2lH2H1lWuhW4oMSq/xRSr9W2sXLKjqANZd9MCoPi+9d1Hk6U/v2aHPsdpREoy tmEU+gtWV4/NsoRrHsWgHWOxWZooruvsw3uEt5L4fjqQRc0KuP6Qdnluf2ZQj9YmXj/Vzp dcgq/NMmrPvLXS0xqHTEbYAaHpqiYbIyYrRTrJYxnPpbYsMbZ8DFQa/HUF175g== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 11:58:01 -0300 Subject: [PATCH 4/6] s390: cio: make scm_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-s390-v1-4-ac891afc7282@marliere.net> References: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> In-Reply-To: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Harald Freudenberger , Tony Krowiak , Halil Pasic , Jason Herne Cc: Greg Kroah-Hartman , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=977; i=ricardo@marliere.net; h=from:subject:message-id; bh=iAj0xHQKjnDvEWG01ZMhoSkt7wKBJvqr74+xx+jEdfk=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvlSAmCueKzxBw4WdsI50v3l/l4YHzgi62MuVy uX5qqOz4PKJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb5UgAAKCRDJC4p8Y4ZY pmJnD/wNjxnWF2BpmA4oRLp6946c7HvKu3i4mZVLX1ZfSrBn4JC449Uf72Px90ZxQoqO1RnA73+ kXkRJ27KpfpJZ0GEUtjLkjdwer/dYiFLGuiUhJYaaWUMxavsKONwIToi7ww+XNbRSxkyvbtVht3 fx0CYLNZbjZX1D2XhL/d5J5rfl623VsYkFmDjtr1E4Kij1E6QMv3NLe06AcIPgR/IfPvoH4jfph KGq+t1cgXW72avp90phoI7uxT7Xkyz7sYGrkLKxCzPMWFXOmFrj4IJRdQqUCJDoa0HLaXhfTHD7 pTCvwfnelsgri2FudApRxABurU87BP+eyuWoMpLUABC3NmL84tqfkGcLlAvsmTX/6dV3R21Hh8F SBLgO1/vRQBmNpWyXq0opGE9cqBJmz04eZKk9vSZVKk8e9cw6zpm05X0L9P+cnhsIf7Cp8jxyMK 7ENaog+qD9CDDErkP2xItzSaQIfLkSXY9BWjTVBKNNWu+58m3r5ZHV3hcUQrJ3crfsI+XR5usjN DhdOqHjKDIw/KgPE0lHf1W5scxPKjmHPc6xpqsTobRPmH20M9qnOV8pDPgvGhqJIHxsd9pE3kj4 c8a1fpGdYgNkVR6ap4SKkaxblRvwyIg//YJ5fyIAMT9bDYG9SZwRtJKkZcMIJxp7sJKmwml3KsI +XpA9xOW2NeJgAg== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789890726360899469 X-GMAIL-MSGID: 1789890726360899469 Now that the driver core can properly handle constant struct bus_type, move the scm_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 --- drivers/s390/cio/scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/cio/scm.c b/drivers/s390/cio/scm.c index 6b21ba68c1fe..375cbfa31b53 100644 --- a/drivers/s390/cio/scm.c +++ b/drivers/s390/cio/scm.c @@ -42,7 +42,7 @@ static int scmdev_uevent(const struct device *dev, struct kobj_uevent_env *env) return add_uevent_var(env, "MODALIAS=scm:scmdev"); } -static struct bus_type scm_bus_type = { +static const struct bus_type scm_bus_type = { .name = "scm", .probe = scmdev_probe, .remove = scmdev_remove, From patchwork Sat Feb 3 14:58:02 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: 196314 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp1055648dyc; Sat, 3 Feb 2024 06:59:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IES6T8nKxXaBu6OjDQ/C7eZxpSosOQqNink+u8cvRGCQvcMIZYSTStqNiFxOpFXItVpLud+ X-Received: by 2002:a05:620a:2916:b0:785:4786:e6c5 with SMTP id m22-20020a05620a291600b007854786e6c5mr9131910qkp.48.1706972355293; Sat, 03 Feb 2024 06:59:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706972355; cv=pass; d=google.com; s=arc-20160816; b=xuSUTEzblkvqnX5JdFKpyo5y3b/NKB9wLWiG+lGE2hY6cjX+33sGDSM8946psqapYt 90COmJ/DQEtj4O1so/oNYymwOqKMGtsRIa6LnoIRMXHPNvkbb3eB1To1yce2BglCcFPX AISrd9SZRHjtX7dqIfWNTdPQUnLns7D/mj5kZifETwybrCgJdAGk95QFYgRQTyQt8zha 9atVkSZ+FcaNuteXtQ4GJBtNIVZs+P04xCkw0qPiPbS0+L3PlJa72vPId8feK+FXgcLW kkXdrF74JfMmkWLTpZJQaYTxmYwi2/Xz8T8BQZaxAUXZXmPvlWDtZoSM7eQdPvfi2YtS uRgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=oa9DpOGPb7kCQUjh1d9Z1lrJmg3QieETmat4zMwZaek=; fh=DJTftD5CAutRZrtprRTKhYa+VAaLebhYw1KqKMRmRug=; b=AatGpFMB4jAhHPbmUkR6+B27zssfOtNlEQbft0RSYJ1cHuipbSrSw9Njy5f2xJiKEg M/hQDkBfioCKCauTvjQeBfhhWK8P3h2dMGEtJ/K3u6L/Ux1mRh4XovbLmnR6oYMI3Obu TrZjUMvwnIeZ2QV2LTyj1ZI7kCXPKEa7Y0pKl9ssfKUA2fAXnRzQztDoIWAxEVNAljEn fhWF6MR4tVvYPzHWM2YFaV242sdGf7vmbaq+5C+Z2mUP1FHYa7ZaEmI8wzN/5hHv1zsT 8NA5MVYxGe14qXdDCJmVMo1YIQfKq6/PulnrhPWW0IwBRRO6HdGqIS/Q/tamkW1oMS2P Jrpw==; 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=d2fmhnBD; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51133-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51133-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWVcWR2lutoJbPGfLY3sry+sFblZ6kc5yPjN8faXo8nQEKSqU0ycYmK3r/52k6UwU7xOhGtQnoBMJhr+U3tpJQlB1Nkqw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g28-20020a05620a13dc00b00783f928838dsi4457385qkl.465.2024.02.03.06.59.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:59:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51133-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=d2fmhnBD; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51133-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51133-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 0AAF31C217A0 for ; Sat, 3 Feb 2024 14:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 396545F48F; Sat, 3 Feb 2024 14:58:04 +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="d2fmhnBD" Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 7DA4E5F873; Sat, 3 Feb 2024 14:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972281; cv=none; b=uubWj0+qCLQxXOEo3kzjhVKpK72QjcT335NUrblEKVh7rrS9ay8mI8HTgosEYbrfUGa2/gvRGli6JucjLXibcs6RCbeOP4VHasqmYBNI9erjGBss5c9m61LK2Z7o8UPG23VmNXJIw3j99i3QY4ayMD9Pzuc2krAfOPzl3yzOGF8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972281; c=relaxed/simple; bh=XfMRIcTFkq40BrOrZH6lSf63vQbs1uiK9evV0K5853Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hjzd3W73iLB7LsECmQKs3g8iQBRHwOWkZtPbbUnHTpjKR6gt5zzUuWjo5CUZIcJw9ictMGKLUGMRlWoQZe1zCANlk7JA98DgM81hEbXBiYbOPhx4iIPX/tNR5Rhd5StbI/l5NpVzxCZzMpoVtyW3CKwwzw0sijtb5yywB+Z21uw= 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=d2fmhnBD reason="key not found in DNS"; arc=none smtp.client-ip=209.85.160.41 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-oa1-f41.google.com with SMTP id 586e51a60fabf-214de82b6ddso1981828fac.3; Sat, 03 Feb 2024 06:57:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706972278; x=1707577078; h=cc:to:in-reply-to:references: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=oa9DpOGPb7kCQUjh1d9Z1lrJmg3QieETmat4zMwZaek=; b=I9CJZqbAtrug7JaqzN0O7bZ4t4BrxxjdM8Y2Fz8M2RWtdFzAMpEUim09eabLfbdW4s 5+Jh72opZtEGj0pQSNRu+NQd1IlgLAsT4hwOLcE1uFJE/znKbU8iLUpxpfU4izm+oSM4 t3YzXlHKFDwultD8UpWwM/C5R/74gtazDf+tHWFfuELYuvG4b+vzDvKOnKt6Npm5Btiy GZMML794Z5CoQsKuArM5lc9nJcHsY76go1u7fEWuWAvsJjHC8It5fxsburPFHh0Z4wjP Y0U6NLEZPEORlvBIjv21BYBoZGHSLoIldUkH5yIbZzYz5gxeQ5NUjTmBZxogQ0hsSVSE fMoA== X-Gm-Message-State: AOJu0YzAbXeAJhUUJ7qqkXRvuSi7oiG+VpZhYYKKAGFP+Ab/2anoyOW4 6vDiOP89hra4CL8zpWxSl/HFo7dhZ2z2cZk1yCxXyTBbnXPZ+tdxIYejPRKOd5noKg== X-Received: by 2002:a05:6870:798e:b0:218:4be3:810a with SMTP id he14-20020a056870798e00b002184be3810amr3296631oab.37.1706972278413; Sat, 03 Feb 2024 06:57:58 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWLz+Xavg0MsVgD63uQClS4ifCV9FT65BspZ+00/a03lRADas/CyIWW4jQWRpQ5etDq+hdTmqupV8EhN5R+lSTq4xyz15tqxH+asa6Y3ehYLO0pff5GTY9viL+5Wiotnx3y77E5TX6wwsf1NkqiuFsEXenWcPGIvSpIOY8TAcl2r3FmeVpj5/yzZjMtqstw1OnKoANLoX1P/7LjpGy0uI2koQweT2RR6ztL3nONEOETMwK08P0Lawit2lMAes2EMU1QC1XqCcClsFDWKlOboVYkxoANJGI6VjTTDJlpdv38fa7prM0ubEwf4Xzp+Jx7pkV1cJ6l0hVs/4iXFx57LNEWlZF7AioYbof/owre2KCgu/EWVijctO+voC2gDklZBBu5T8+HM0SspVo3E69UvY1oCsDfc+qBx6kIw2avt8Rr2zCWcdJG0L0= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id q11-20020a63e94b000000b005d6a0b2efb3sm3665991pgj.21.2024.02.03.06.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:57:57 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706972277; 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: in-reply-to:in-reply-to:references:references; bh=oa9DpOGPb7kCQUjh1d9Z1lrJmg3QieETmat4zMwZaek=; b=d2fmhnBDYkT+1ZYnDEFkn7sFCepzhGOxcgWS36kIP/PcoIPZtPB9o5GCyPvoYMmDT6qiyA SSkQTMHTqEYwjGusZvM8X0Krfhj2Rq6MgCqVCj5AF0ZQ7o/QjYBKzXCtAOjehTF3ewEqMT g5UV1xSYoyIX5SFDsxaWYEWucnxurm2ALwB6DNV22uSTqNsRMSu9eUMoOCejdsfJ6iWqYc vsoURppwZ3ubyx6FiyFt1+LvZBrOvRkD/zKYZxGvyMHZt95RVgPztp+ndiTX/M7EiVsxlC 24XFG+4dV0+PrjuVZj8cTzJlLjDUR6/F8fuFBN0oTmdNGdomcQNbs3+efngAoQ== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 11:58:02 -0300 Subject: [PATCH 5/6] s390: AP: make ap_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-s390-v1-5-ac891afc7282@marliere.net> References: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> In-Reply-To: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Harald Freudenberger , Tony Krowiak , Halil Pasic , Jason Herne Cc: Greg Kroah-Hartman , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1282; i=ricardo@marliere.net; h=from:subject:message-id; bh=XfMRIcTFkq40BrOrZH6lSf63vQbs1uiK9evV0K5853Q=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvlSAHa4JKQqmQvqEspm60tMGiVhdwRwPFM7/p wikSsO/SluJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb5UgAAKCRDJC4p8Y4ZY pj+1EACUfPFiSEKyPzD9oK7gIK5boc8NXCEaU9G5XqdDucJSvUSLS3ctA2nY7ihB+tgIVk42kij PC4noq6SBSKdPAtYuSumT0Q9+VnpWsd+FreHyfB6dhZXx2DKYk0NYI2fFjXkTYUo9iBGTZbaoNl i3Gxu9LfZGmc4djnqJ/SbTUaoPlnZdicrEmymCbOHiXDqnr35V+RVJDjPsA+082CZK1Tl7bvBrm CqpwbiVQ1R5D9I0sYxZUgmxxPSVsb3+OJ97PDc2FwSZBtmBmkk5A/RBRdvCftCuG2xzWC1lrCQP Zco/306AeXNz7PaqbYPIAN/3cVKRefk1198Mbfy1dYut/tMjgBitih6ALwjHV9EKen5VlBwnXkA oT72JbFcQGctCyCKOTjIVrweWGL2Z3evdQLHB1RgcCKBFKdouoQZtx7NOOhriIchajXxhp1fzAb hozfeqehUFfrrQtjOmvDbn/yT2R11BCyS3f24hV54d2CPlUeoh893yb5hBmrTol37G2M4cEMV0V 6O5KGWf/MZhl/LyG51xrEHzZFYXQEGXlTO1ecb3Q2mBrSAyhRC0nDBsb2vpVPudcDWO9+K0Q+yi I1dGfAsprqy0ViVN7uL5nsAm9xcx6odmfxtmeGpukM6UapEwH2aISf8hOp9BvEGP6uTG7odD1kA 3Lhy2X9dK/wZ5tA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789890244712483032 X-GMAIL-MSGID: 1789890244712483032 Now that the driver core can properly handle constant struct bus_type, move the ap_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: Harald Freudenberger --- drivers/s390/crypto/ap_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index f46dd6abacd7..2ecf4d36e78b 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c @@ -135,7 +135,7 @@ static int ap_max_domain_id = 15; /* Maximum adapter id, if not given via qci */ static int ap_max_adapter_id = 63; -static struct bus_type ap_bus_type; +static const struct bus_type ap_bus_type; /* Adapter interrupt definitions */ static void ap_interrupt_handler(struct airq_struct *airq, @@ -1603,7 +1603,7 @@ static struct attribute *ap_bus_attrs[] = { }; ATTRIBUTE_GROUPS(ap_bus); -static struct bus_type ap_bus_type = { +static const struct bus_type ap_bus_type = { .name = "ap", .bus_groups = ap_bus_groups, .match = &ap_bus_match, From patchwork Sat Feb 3 14:58:03 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: 196315 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp1057764dyc; Sat, 3 Feb 2024 07:02:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKzOh/z7C49se4zU5tsADoRM4Ymlan8ITah9gtk5xkv0s3LIR3PrJjq/do+U+xRRlRTWpM X-Received: by 2002:a17:903:22c4:b0:1d9:8cd8:acff with SMTP id y4-20020a17090322c400b001d98cd8acffmr2283267plg.62.1706972546124; Sat, 03 Feb 2024 07:02:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706972546; cv=pass; d=google.com; s=arc-20160816; b=HtCTGvyxs9PCOPPEAJcrf87HGruyCSiud37+sNd9PA5lzoT0gbG9hKvs16ewJ9Wt+G FzreAox+R3/vrOk+idBG93vfBBQH3JMo6dCA9Cv2Z4Q9EGAe8327pxi0LAzpuPtyTMKb exyOOGCBNhIu6grdb4t+IQfP9ce+9p69G8AV9uEx1VDBooD/W/xJqOa44H0an/eJRP5Z PyrAK3ZNdeUGsqqoQh9JL5+IYXuVegO4MHgAebLZSr8JVF1u2r+K6WGLXMcP+nTVAqp4 NmU05quitQQtvjYI2cURwYdNYncJypQ/rL851WRPdkqXFW0l0lNg3Po5fDX828oWE0Xf qwOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=EoZhzCvvxVDQhcFrFWhYjcTT9FE0yDllqaUNaTBUtCY=; fh=IjD/dwhkh2mvd7Li+lnxxK0JCi/3AUSQMBxCkHfmruo=; b=qFuHn9u6j6ygVeUogIyUImi7kr5b0Et9crO43q8yXOFVhexvvGDVonKeroSdaTdbkT fUGz54mmRXhbQMcOD654yjhmCD7FLo5simbW8+4ppMGIxc/vLSntmaprLpfR2ioJLDwh Po5BR0bqjuNnPX3YFSsSA3Bi5ICQ/1Kieqmy8tQkr83xyG3oovpzf0El3j//Em2upKxt CyjD+WnP8Hmyb9GMM7lGdDlg+jB4H1x3tMZqfgnK9ZoUNBwX99X+B69//TipvYpGRnIa KymU5k8Fiu1B5vGh9xNosxkzauQ8InO25Fu44MpLQTaL/X4NL1Pb3BbEd5Bjm/4MvYAx Ce6A==; 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=lrmSx367; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51134-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51134-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUimV5+XmdQ2dr/lq4opW4MOx8TIHLry1LA7quEhoG4LHYBGK9Gx/WvgQr7xIE0CMjJyo7SyOvXWNVCmg5ScZomETqaeg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v7-20020a170902b7c700b001d8fb259198si3386229plz.492.2024.02.03.07.02.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 07:02:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51134-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=lrmSx367; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51134-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51134-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 81157B21CE5 for ; Sat, 3 Feb 2024 14:59:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 282605EE9C; Sat, 3 Feb 2024 14:58:07 +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="lrmSx367" Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (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 BCF855FB95; Sat, 3 Feb 2024 14:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972284; cv=none; b=oUYUhS982hE2GRbFQM760hAeMkFnEEuI5ttFEUTh1rxc9fG5qj/3fzodT2MZ+fKVxxn+Ewh1j+GvDNXGPS0u8bmcM4oGdwFQ0N1LXVlpek7TgkAk3qIic5x91UI2tmIlWiZW3IBPMpYYCaRHtSFwbu1iAAt5jT/tinu4PUc1UbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972284; c=relaxed/simple; bh=zVJN/4oHdWhuzz1+BiygMaV1vFRfNwCcrWxJLFyYdCk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cSUR+NwbqorM/Ug4zSsTTn2eWeCrYVyqC8pO2f1ptL+6+ZPIPnsXoV1S7RzvvSgx5KFiDEEjZId3cb7jmLdeOyFsRp/q7wetZ2235A43KmWi6y1sV2HiSsBsIxX39+S/CFxJJJ8rtbXt19Ol1eWYYoRbAhhJBSS3n+WII5JR2Eo= 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=lrmSx367 reason="key not found in DNS"; arc=none smtp.client-ip=209.85.161.51 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-oo1-f51.google.com with SMTP id 006d021491bc7-59a58ef4a04so1615752eaf.2; Sat, 03 Feb 2024 06:58:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706972282; x=1707577082; h=cc:to:in-reply-to:references: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=EoZhzCvvxVDQhcFrFWhYjcTT9FE0yDllqaUNaTBUtCY=; b=kcbj6vOz8aUH2mx68Yoc/1iVBb8c7dMNoqolpMfbvK/WfRf0+w+YMGnazpvuZ7nsn3 nOW+6ygrlcOKmSF3a23SA5/EJnxJqpiomQYQM+Yz6beOEEvvKuK29TvpU7yo+pDUR0wc KkhMXJPfe3Qpz5JO+PX3BeltwY5D9aA2M5mi1X9qocYTRU6r8XMrDE+96CIv5MUqwHgS 5zLXudKV9YQsmcl6eRGf4lYimOMbzcT5NenVH43Mo5reeTj0XJpjr2iV5qCNAJeGhwMJ n1jCf8R0lYWwJE7Wxh0JLUVoEjRYtktBqpf7L6PdMN7ZQ0Dw7d9OMoiav+3+gu43XEnA DbAA== X-Gm-Message-State: AOJu0Yxa8rL0MzzdbDOlfK/ICkaDGwGnfO/ktz2rGEhVpzAd5oin21jL MCsIUNB1dJgXfCc8Fz4MAIBDKtjReFbH/VUyCgJy9vuzeGzoJ/DpqrmeWfy2QN1EFQ== X-Received: by 2002:a05:6358:4195:b0:176:4ac9:5509 with SMTP id w21-20020a056358419500b001764ac95509mr5751592rwc.13.1706972281635; Sat, 03 Feb 2024 06:58:01 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXZb0P2zPtnL+GZJ9/f0OOblCsIboCZ4Q6H/8BfLAcjNoHjckTHVSFl5FfRApQxZc19XaWVzNODxctlMTI1GaCQExdEFBsZpDlHqmKrlqYVq0ng5jtZgOAn43KDZurRgpyKFruhpzNQRHc2djtKkJTr2EqylTgbYjceZiXmBTd1CnAJM9CNKFRV077t59HLz9iVmB/pVTK8WHTIwScbf4OA4RECa7DZ75Zg1HlthOGddX3ai5Vn4+1NgplbVD+kd4F0JJarzsu157VePO1senMd3lV//Y5KES7wiCkhbjpGaHjlp7IrsGxo8hLTkNYnNsZ6yiesHPYd/kLdt5lZkPcSyHtTl6pRss0LBNtu7Ub45DHjcC0boipBGl+zBdh7j3wIzLSQzVRpoac3blLJUVsB2OZaYn0kg1opoBB/ApsFlbhukdkhi4E= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id b16-20020aa78110000000b006dd84763ce3sm3489047pfi.169.2024.02.03.06.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:58:01 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706972280; 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: in-reply-to:in-reply-to:references:references; bh=EoZhzCvvxVDQhcFrFWhYjcTT9FE0yDllqaUNaTBUtCY=; b=lrmSx367erV5VvtWn6dQBwmKTQrkZFuZJxLN1lJx9sl2Aayl88w4LVeMQjpDrQsMG9wHVJ qifkLRQTrT9+FHWXXi9OKTEdcE8UanisUg/jIp9Fzm/foeet8G0g//sC75Zdte1jXVGp91 HFK4XIwIHrrs3Er/d1ZS1rjT0psaNAm/yLpbZfon7858SUD/l6Mutr/xk24qgFmcnk44/L ffl2RdCD2wbWHcI+UdbBMZ2fZrwKMUwpdUpUcklwGzrmxfwxT8XpmoTs5rGPu8REwCZc2B gEjundXNTpuCJx89vAEqYcLKGBR0es1IFAyKpDorNDqCC1NVooZqKw0Xy4JAag== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 11:58:03 -0300 Subject: [PATCH 6/6] s390: vfio-ap: make matrix_bus const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-s390-v1-6-ac891afc7282@marliere.net> References: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> In-Reply-To: <20240203-bus_cleanup-s390-v1-0-ac891afc7282@marliere.net> To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Harald Freudenberger , Tony Krowiak , Halil Pasic , Jason Herne Cc: Greg Kroah-Hartman , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=929; i=ricardo@marliere.net; h=from:subject:message-id; bh=zVJN/4oHdWhuzz1+BiygMaV1vFRfNwCcrWxJLFyYdCk=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvlSBVU4dVPwR7qDD3b3GsqypoBcNDlFatTQP/ HNx1U1Vrd+JAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb5UgQAKCRDJC4p8Y4ZY ps9yD/91LPanJxDOZZp2FyW7DsA1PB1sUZPd0BXEBDLPI3DWWEMgCyrVc6y3iZ+ANd+q2oINvQS Bj30Drmz/3rxlBEA/f1hWh24vd9hMG8IZJo6QLxG4jvalJ8SosGtbKSk79oQFwDW4W2Lw2ppec/ F7MzM+b00XDJ6M9Be2mEwmiJu75oyH4zbTBlWmQshx1EMLnRkr3D8mLBg9NM1k4Lt7bxc5fiNsE yVWqVnp6M7Llbb5FM4/xAn+3io/qjvkDLe+h8vcRTY4c56cgVRu3556vAAUl+FN71zZAOsh5IBF NY44GJ6+acSA1RdQvJFkBZJT9CoPxsKcRbySZ/qqyhLKaBR2Z014dhUvoLRIbr13e4ZZ+Fbhp3R TK8cl++eIejXeqmHVPbxvr7Cv5iQAH7wjZoHjS8LKmWBvsaghISHIJAeAH0zswC3VYNStufgGif fcrGGZDkmDCyvdzFHIxYgKgSRlvebfVHq9yJabXhmIXO35Khg+/ISr1dsTEBIYByGBYEvBaaUep ch296TvFzX1gZ1S0Jdx/HF91bB/WQuxttKGfhUPPw16769goXAxjPuiIHe5+/Lvtlei5Et2Ji2M JW2RTjTGIpy+ZyD6W+d+H4Fz4r/XIZeLZunrCLbRKI03rotmmBqAzcSeyb3DIf9AqNoAHJsKFAZ Su/WtB2jQNwAzRA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789890444505143628 X-GMAIL-MSGID: 1789890444505143628 Now that the driver core can properly handle constant struct bus_type, move the matrix_bus 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: Jason J. Herne Reviewed-by: Anthony Krowiak Acked-by: Halil Pasic --- drivers/s390/crypto/vfio_ap_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/crypto/vfio_ap_drv.c b/drivers/s390/crypto/vfio_ap_drv.c index a5ab03e42ff1..4aeb3e1213c7 100644 --- a/drivers/s390/crypto/vfio_ap_drv.c +++ b/drivers/s390/crypto/vfio_ap_drv.c @@ -60,7 +60,7 @@ static void vfio_ap_matrix_dev_release(struct device *dev) kfree(matrix_dev); } -static struct bus_type matrix_bus = { +static const struct bus_type matrix_bus = { .name = "matrix", };