From nobody Mon Feb 9 20:47:44 2026 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 6080F5EE91; Sat, 3 Feb 2024 14:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972268; cv=none; b=mCocpUGb7AsRWMy7TXN2I0MWn1dVMbOQEHlQAvPdk0+K0MayGjo322wbzHGHGf9xFBOC5Mtr6PYKG6om1JPWf/pcP38DlOVbNK3yC6mWiFIIWn05tQAL79kAu9Umu0pkJbth2CtUVFP3WXInkqlYfVhrI8UjdKNddI9ffG/UKWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706972268; c=relaxed/simple; bh=JL4nOZ57/NU8eLT7e2PNLAaEMoD5QGMoIz35/Kel4Cs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=k5BUKTpbb3dDpHYfYzgaQvSJ9Y8/qaUMZxRxsJtQKuHmPu1qbpT+hdrm5qC+Dme+YToi7v6sDQojMORMqrVZSzeW9++y2brTAEucnGFjrGBDpJvLPnkn20EtrkwvDmumW7wCwq+CkZ2Lv3/XIcESP+OF7wzE4GDMbcCRusejB7o= 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=AdAOTaOQ reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.171 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 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="AdAOTaOQ" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5dc11fdddd6so46254a12.1; Sat, 03 Feb 2024 06:57:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706972265; x=1707577065; 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=bDTqKC9fCb9FawpzFfnVp+z6Vq35bRpsuqTV29F0WVU=; b=EjF8pghCpxs9PPh3Gt4Vkc0qxwfKNz0A4VaKBenFGJf+yjvfTeRfVYhlpWbWQNrENy 70Z8MsNz+uG9mBSfsY035ymFxdJqnhHkVwDwOp6tnaMxiVX0f8xn56c0REVwZNQSe6jZ sYoUBJJeLsl3Vx1I0ywEGsdbkA3lMv7iYbjvZ9sUgoqmLSA5NSTH9+8aMikQgtjF9RL/ Ahi7Q/+8tYHteT9sfppQWyXEvYGhYUFPjPu2cQyvRmgDYfx+uji5YCDEx25vKibvfQDJ C26n1sbwiILFSz5Kl1I0cKzP3LSyLggOOWYBsjZYSrLtkSErxJO3Um6LrWTLrPf8SnRH nDlQ== X-Gm-Message-State: AOJu0YyTSnc+n25+RwD+eWcUKYfLXojqsV5ZXo4GY+y8eOchzHegArv1 s9SPB1hUW8eJex67xb3AuxboAuN+pGD4pcd9JtFkMkTOMNVG6ZHGCttIqpSdJS70Eg== X-Google-Smtp-Source: AGHT+IH9lLkfRr+nbZ5zdzPNi4R9ASln6Den8GChn8JNiK++cCzON2nBqEOzlm97wev1Fdeg44GeoA== X-Received: by 2002:a05:6a20:6f8b:b0:19c:99f1:bd5 with SMTP id gv11-20020a056a206f8b00b0019c99f10bd5mr9852995pzb.11.1706972265591; Sat, 03 Feb 2024 06:57:45 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUXPT2GpJ3aTruQUHfakASBgmXdcqkJqUkxLjJE0uV7HsW6l5Bt05pk4f48BNBpwGTcQS/8cQ9mP8SglFFBcq8xSYh6d4PE9yPzx+gkLXCYU7T9+uRxbv7GCqgN2mWNgxR/CqAutVjuPkklJA7erJKG4rgZ6Xgl8zQZgkQwL5mvPKGJW+VyNJjWvTGfX8EGTIun9xYZp7PkBl5FuZdq9w4j5LZ1ZIelBCwAHrlaciF/WC4AcQWSbnP7zQCPv3Fkd/bVwiEOeHC7c680cEHz/7HGToaP8GcbF4buLn8xgImj9eL8hg0jHW0JQe40N8u6y1i1NgQwRSepOcFrgdY4t6objRcvcUaW6tO2I4RX9UZqccGzJK/td1flHSDqQnfskOLFsDCYzFBaLUtzFpZ7E3IY35rNReGqIXQ0COXDc+O0msC1EinZpcw= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id t13-20020a63224d000000b005db76738ae2sm3682060pgm.58.2024.02.03.06.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 06:57:45 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706972264; 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=bDTqKC9fCb9FawpzFfnVp+z6Vq35bRpsuqTV29F0WVU=; b=AdAOTaOQ/VUTEABaEK+GbMf1oKUhALAK5R67sliLowPu335d6vRfoKZzGV0hp4IZFsTu2C /SE8k6Azh8vHrMjuNAaGRimIH0wPLLLfXq+6NtN73QDhpOsqOLN9u+G9SLFUjz4CgkSfPu 5XUjNC8q0GYOQGPUrcKyd04BspeOV4m9U9LRHwD09Ox3/xik4x1Ve+0ZrstXHdbAl3BSnY MmG+pBKMfoGB0HPNAIedFVJwEuP4sPC2IsOeVmbbaFzP/w+t4xWR0gTzD5wJwzHnkyzaKT vs5uVZ4xv5T8KljBG/xVMu2KbeZiHED0je3l7jy+3irYyoJMxVwXAI0f+ekURQ== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 11:57:58 -0300 Subject: [PATCH 1/6] s390: ccwgroup: make ccwgroup_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240203-bus_cleanup-s390-v1-1-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=1232; i=ricardo@marliere.net; h=from:subject:message-id; bh=JL4nOZ57/NU8eLT7e2PNLAaEMoD5QGMoIz35/Kel4Cs=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvlSALUZj1dUJ/U7DlzBSnic0Byl1/v0CeSSLt 2TtkwrKU5+JAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb5UgAAKCRDJC4p8Y4ZY pvPTD/9jAn4l+iEjJU7+E9FTRXREGxex5MvlnsPkK4VddF4VppbICbqEpIBzoz8Ui0YkDb9CkOp IIycLcih95t52XwtYSVVWstdO3MxY+yT79o8jB2yaH2JVB/UAm2XADYLlOJ+G6YLFvBTqjqGi05 o/pPwd8F5Ycfc+ZfE44F/X9pqY5tJUoSjo9h49G0tJsaVYswsd6q2LCoNLroqrUR8OxICC+ULMG rLI774LglxTvOywaJjGQ8sjBnFqitbzXb8KXQwKe7D/qBpRvt2myiBU1MDmzIw1o6Vtg1AmoUV9 Zv24KRFNwymrcYv4/W85bKx+7uZxYSLoROJK5NnPhMh6lFXoG2wg/Mf9wWvdv95sB8Yk7pk3ASF gP5J7xL6FiF54GEdE+Kz70sLwuKKK2mhZDBxL0aEkPB1qUjjpBt9gQwSF1zMf+0aj63soFN5Br0 8I5q1T5WrzdY0QtIXH9S+CyTyMqZXxA+NrKUVB3QS9uOlNN9spHqHYoYIzbAhFqhMxqYRgyZhl+ MKp85VfG3OkvJX2KvtB203SGwnzm1hISzgdstY2WVQLifL2Z0z5MDETMXCnlY5T31dI2fapCoGI +4rSHZ+f/QlgnhZZM5XsmVnYsju8f06zVe9xaYszH1QbD53d+NNfX+Mo65O05TIs87a6FCkLtfh IOTP+8MYsvy23Xg== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 Now that the driver core can properly handle constant struct bus_type, move the ccwgroup_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: Greg Kroah-Hartman --- drivers/s390/cio/ccwgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index aa3292e57e38..6eb8bcd948dc 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c @@ -31,7 +31,7 @@ * to devices that use multiple subchannels. */ =20 -static struct bus_type ccwgroup_bus_type; +static const struct bus_type ccwgroup_bus_type; =20 static void __ccwgroup_remove_symlinks(struct ccwgroup_device *gdev) { @@ -465,7 +465,7 @@ static void ccwgroup_shutdown(struct device *dev) gdrv->shutdown(gdev); } =20 -static struct bus_type ccwgroup_bus_type =3D { +static const struct bus_type ccwgroup_bus_type =3D { .name =3D "ccwgroup", .dev_groups =3D ccwgroup_dev_groups, .remove =3D ccwgroup_remove, --=20 2.43.0 From nobody Mon Feb 9 20:47:44 2026 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 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: 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-Google-Smtp-Source: AGHT+IEb93RulWl2g3T6Yln5NlnWcRp5M/DcdebJH6KDd+/l0CZRNZQ7M64pwzzk9wBHOSYs9juBig== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 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 Reviewed-by: Greg Kroah-Hartman --- 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; =20 #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; =20 int for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *data) @@ -1409,7 +1409,7 @@ static int css_uevent(const struct device *dev, struc= t kobj_uevent_env *env) return ret; } =20 -static struct bus_type css_bus_type =3D { +static const struct bus_type css_bus_type =3D { .name =3D "css", .match =3D css_bus_match, .probe =3D css_probe, --=20 2.43.0 From nobody Mon Feb 9 20:47:44 2026 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 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: 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-Google-Smtp-Source: AGHT+IGswFO+4q4XCCgyDaf9pDv7MoC67N2i//oBPc3skOy0F6rKiZS/ZtjwObp36l+Try5cSuhG2Q== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 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 Reviewed-by: Greg Kroah-Hartman --- 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[] =3D { 3, 30, = 300 }; =20 static atomic_t ccw_device_init_count =3D 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; =20 /******************* bus type handling ***********************/ =20 @@ -1776,7 +1776,7 @@ static void ccw_device_shutdown(struct device *dev) __disable_cmf(cdev); } =20 -static struct bus_type ccw_bus_type =3D { +static const struct bus_type ccw_bus_type =3D { .name =3D "ccw", .match =3D ccw_bus_match, .uevent =3D ccw_uevent, --=20 2.43.0 From nobody Mon Feb 9 20:47:44 2026 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 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: 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-Google-Smtp-Source: AGHT+IFVTXkNnXKUhHMd/4xRY4Xie/6+YhhllmYaUWNBi0vfDSRtg29HAQNMd0P4XwdPy2giz/nDvw== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 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 Reviewed-by: Greg Kroah-Hartman --- 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=3Dscm:scmdev"); } =20 -static struct bus_type scm_bus_type =3D { +static const struct bus_type scm_bus_type =3D { .name =3D "scm", .probe =3D scmdev_probe, .remove =3D scmdev_remove, --=20 2.43.0 From nobody Mon Feb 9 20:47:44 2026 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 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: 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-Google-Smtp-Source: AGHT+IHEnP/z1IQkk0JTyayq8AkF9QIA8AtgzvcEQhUucxrK0lxlYIrJoj7P+ISajM8cwv7r/290Zw== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 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: Greg Kroah-Hartman 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 =3D 15; /* Maximum adapter id, if not given via qci */ static int ap_max_adapter_id =3D 63; =20 -static struct bus_type ap_bus_type; +static const struct bus_type ap_bus_type; =20 /* Adapter interrupt definitions */ static void ap_interrupt_handler(struct airq_struct *airq, @@ -1603,7 +1603,7 @@ static struct attribute *ap_bus_attrs[] =3D { }; ATTRIBUTE_GROUPS(ap_bus); =20 -static struct bus_type ap_bus_type =3D { +static const struct bus_type ap_bus_type =3D { .name =3D "ap", .bus_groups =3D ap_bus_groups, .match =3D &ap_bus_match, --=20 2.43.0 From nobody Mon Feb 9 20:47:44 2026 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 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: 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-Google-Smtp-Source: AGHT+IGolQcaZoOhAaigwDOhfZduwQhHbm8m39V5N9qPdHbKmrByQ/U6UyZ71UaPZUfYhKt7DqoeaA== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 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 Acked-by: Halil Pasic Reviewed-by: Anthony Krowiak Reviewed-by: Greg Kroah-Hartman Reviewed-by: Jason J. Herne --- 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_a= p_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); } =20 -static struct bus_type matrix_bus =3D { +static const struct bus_type matrix_bus =3D { .name =3D "matrix", }; =20 --=20 2.43.0