Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1943972rdb; Sun, 4 Feb 2024 07:56:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZdCkZuoVO6A3RPuNAZqkdOtcsgBkrP7G7RNJ0NFcLCvY3Vguxbz4T+fgRPkfDA0EqiPMc X-Received: by 2002:ac8:7f47:0:b0:42c:d9d:c27f with SMTP id g7-20020ac87f47000000b0042c0d9dc27fmr5520059qtk.49.1707062195187; Sun, 04 Feb 2024 07:56:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707062195; cv=pass; d=google.com; s=arc-20160816; b=MNX10ChaDkdBLFjFPPfihQIRax816HSZ8vcSo2f0w7V56BGbXgxi7mVx8hsTdBrZ+d 2jv7szRQnqniUZHZGzoqYBIVZKLON/+wkUFBeW4BTpnpW+cqQ4DjyZ/icBHOSu0OFX9b gOHeYwe7CCVnxdQlpfRXHhTI0vEGvAukd8Pn4sWNEp51I1H/ty9bP/+gAtOezH/h8Pod n/up4tFfDhuYBOlnntBcV3FpOWkLx+JIlkRylyqJ4dnzcVuBUWABHh+zU7T+hDeldiQR zR8+otp+LfvhYHJ44vlBI72sb+BbwTGYYsWf5i+GHPOU51PEp02DETZ3H9qJo5vI4L2E O5eA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :dkim-signature:from; bh=1KAFRuJjARefD8ORAWekwdxcIKqWzl1i5HJCIgFDPMM=; fh=cy813QXNOn+ijoadofG9SA+LziNTjUawGXcUaAVfSOU=; b=vFpyhEO9NRkEeok3pUSmp68jjZDrS7pSW7XARJlgaVignMFVk25v2DQwpQ32fP3J4U 2kC0YlkoWBUWFOa7Sg4+wu+jcfbBaRsiXDAmO0t4eaQOrrPmFf00GzggTT06dCMCKNBY oyujQxpb/Trh3HKRE9MZyVzdNBBEPOgUiPaG27u1lDbw5oGwtab49OkDrhQf4SPfXYs/ 52QgQ+sUrs0HkPc2nwQvBD+REY1v0QPFug1PL1BGYJs7bqeacbUG3JyuGdCr4c3CNiF7 Zl6lRxh2gg4tD5YQKiu2D/s0hBnH2m0VeD65OfRIPG7hTOaHAxn5k7hOymf2micXai3K TcZg==; 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=h11aAxJR; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51764-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVJQ50SYvu38+8ToxT7N9WkCt6L/b80GTxE1oHzA4vLLJxTiYwmECUZ7ukk9iaFpWTohF6j+ycQ7ZUlWVWZPQrMONeEjMPXWnAUL5NKpQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v18-20020a05622a015200b0042bf58f8786si6607328qtw.279.2024.02.04.07.56.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 07:56:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=h11aAxJR; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51764-linux.lists.archive=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 DF35C1C21E5B for ; Sun, 4 Feb 2024 15:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5064F22615; Sun, 4 Feb 2024 15:56:29 +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="h11aAxJR" Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 2503D225DC for ; Sun, 4 Feb 2024 15:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707062188; cv=none; b=EOjwFN1NOy/Ps3Okh3QmZ/oI3Y0JiR1FCAzQY6Mb04/CK/NE7ncW0RTvRhWxwLemQkEQDpA7038S2/SiqA+LaYgwKkcheVBIKaAM6QWCML71btwhDTC3Y31faDzXtR4QWabolk27lbafu3ipwGuhmUShth0+U43r4EPwgm5/8GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707062188; c=relaxed/simple; bh=7FYnnNqTc0H5T6M7a9N0Nki5bcUxmzHuVUFte9heJ/g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=tPP4lcs3p9Bd+NMagdNV5IFF+oJQqpuxNrNzHgbZ/fFTgtRbx56n8AjVmpFxCxDXXy4nlTPvDoX4ZAp/IVwAdi/A4tf5pgfIE4J4yAVLeKoMLPHjXoDwMXRq1FZuY/6Nddbqbwy7AaHoaHRIgaBO90UR0l5A41wTSYzwtXeETr8= 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=h11aAxJR reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.177 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-f177.google.com with SMTP id 41be03b00d2f7-5d8b70b39efso3268232a12.0 for ; Sun, 04 Feb 2024 07:56:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707062185; x=1707666985; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:dkim-signature:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1KAFRuJjARefD8ORAWekwdxcIKqWzl1i5HJCIgFDPMM=; b=VN2k8UXBmK5xgYUtJkxxvkBTzo9OJ/uptae0+yOZlnLgmrTpPXzCKoih84XqIvKvfq dLFd6s2jMDqTxQK1kSjoNfquQt4LSRG920PS2Iu1EA/URZ6wsNBNvJ5PxpUxZO1OB4S0 WuPMiKJ/BDEN1wbSUYeP4gMJXs6LCtz9UGj2v8GlqoQfCENqWL6mwEp9I+1XDAhyPyUP dDKHjhFRAdBvUmS3kt+BpbNCwLuzCwt7F6+TZvSnzfv8YW9f/1ZVz/V9CO7Z3SgaYpb1 bdfG1VFerzrtqLrZKVGiyzHB20rUOsYwt849qpA4CAJPlzyhUy7YLqbRFZd4hJD0GGOg 6/ZA== X-Gm-Message-State: AOJu0YwuM/eO+3lSpCOXSAUxNcGKtQwx1NOLYHgg6+0F0dNmLYSoBcbd 33KupJD1uP62fmMsYprs9QwTluD40E7pNCoj9gLQawiE0FwCjjDr X-Received: by 2002:a05:6a00:be1:b0:6e0:3408:9ee with SMTP id x33-20020a056a000be100b006e0340809eemr1559221pfu.29.1707062185363; Sun, 04 Feb 2024 07:56:25 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXiC9H2820vLVBaDFmqFhOCZF9yjI163G+Jz5lyCy7fgz07hK1x36ejr+C8O/SETmppv3FjJTmoRFoaGgHE7K6pSRgUmlDmbXPJGsGLi0iH+0IcmJiYMtKxCgCDcTRzdFtisSavRcvG4MvWGgjGk4GhQ8SAzQc8AOI82p9wLXHAWI/ZQGwNGndQ1N3JgfoKRa3is4BrX8E9RPSnJ0iOfV/5bCe2nixKeHpI2/DFt3bJJmjm3c0= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id 34-20020a630f62000000b005d8e30897e4sm5183255pgp.69.2024.02.04.07.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 07:56:24 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1707062183; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1KAFRuJjARefD8ORAWekwdxcIKqWzl1i5HJCIgFDPMM=; b=h11aAxJRBAGw5IIhq9r4RhYGRThs1ok2AZ7W9XLM9NSJcSHu4zvdZz/SI2FdnXkWccn0JL FRLqAnKd83z/OHrZGHEwAG9rtAaZPWpN/sBsrIoSSqvxvGS5si2JYwgfIfW5W4Xs0/e2nf 1p8pSrGEMpry9g9t1ezBeMLGD7Ud0Smv2MYIq+/mIIzE8tVKl1RO8wJlKnQVtsDQ7rzIi6 lTV1i5vINZjfjpT4Kyvwjn9N+BdwglCS8xzaWcyvFzsxVEpAKMeElavIrz4UFL4vq7QIEf F11ozJb+8DjFahthbPJ/AFeEepbQZ8GYmgmr/R10tXQ8jvkdGLPQs0aTWsw0lw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 04 Feb 2024 12:56:44 -0300 Subject: [PATCH] bus: sunxi-rsb: make sunxi_rsb_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: 7bit Message-Id: <20240204-bus_cleanup-bus-v1-1-bda309c4b829@marliere.net> X-B4-Tracking: v=1; b=H4sIALuzv2UC/x2MQQqAIBAAvxJ7TrDFivpKRKRutRAWihGEf8+6z RxmHgjkmQL0xQOeLg58uCxVWYDZZreSYJsdUKKSKJXQMUxmp9nF82NhqZMaa9saaiBXp6eF7/8 4jCm9djMpg2EAAAA= To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1445; i=ricardo@marliere.net; h=from:subject:message-id; bh=7FYnnNqTc0H5T6M7a9N0Nki5bcUxmzHuVUFte9heJ/g=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlv7PD/cro16iyRDAtGwb6gU1EUNlRLBdjX+kR9 cDRFXyIFViJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb+zwwAKCRDJC4p8Y4ZY prOiEACYCcDYtS1q/kpdhK9KoGBYD1FigTQui2eoTVOCZiMr0vjDk12Y5v/J2uq0XdmPtWnYxuY cM4JKLK3TrSTnUPRM81KqiGHOb5LDuCGY4/JANKeXBWXs8kMr5yV+2r6aCEtUTG3n7zvkySfqaj 7P7NBvZ7f34LDFroyLS4UX/r94N6h8pvaT433xpJ/rUHFNtoyWo2pXjP/Cbhai+qk95FR2qFPM2 UtAkD3x24ir8F6m0Ci4NNwB2V0zxzuX8QM2Hham3eQGTWBY9tMJhDeZE7ECRutSboJoSGwEij1p 1SbcP3v0ean1749aMXTWF+CH510T2HmVii1rnmqzos/PQOHE/PJNjN5rKY/4c2d7t8qAvbeGvRK 18v4kfdCGSi85B51cvNtlZXnveFPMATxsH01mDnZjO7l6KpTWnmKsxYqEWMLlc8w/6pEyuYra0S P5oR7AOyNygJPEIWGVjs1vClmnnwox6kqW9izerDlzVpDZKrRfkntyayssimpVI6YRsbkspMC3Q 0k7efWA8QgT8hfD6q6M3rgf+EfJbo8OhGVZTdelKFjUb8SHgBFBvPc0qldPgW/LrOLVfOEea4di qeUzSMj5K6cFS0pffQraoDKqJrv3Nwy9vsDf3EEzF8ynWYy4FH0/mq9bWH1GX0BjcCGp5xVtzYe HDxESQOWdQ14j2w== 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 sunxi_rsb_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 --- drivers/bus/sunxi-rsb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index fd3e9d82340a..1e29ba76615d 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -128,7 +128,7 @@ struct sunxi_rsb { }; /* bus / slave device related functions */ -static struct bus_type sunxi_rsb_bus; +static const struct bus_type sunxi_rsb_bus; static int sunxi_rsb_device_match(struct device *dev, struct device_driver *drv) { @@ -177,7 +177,7 @@ static int sunxi_rsb_device_modalias(const struct device *dev, struct kobj_ueven return of_device_uevent_modalias(dev, env); } -static struct bus_type sunxi_rsb_bus = { +static const struct bus_type sunxi_rsb_bus = { .name = RSB_CTRL_NAME, .match = sunxi_rsb_device_match, .probe = sunxi_rsb_device_probe, --- base-commit: 38ed19495066966979ba821b9e0f549ad5ea620d change-id: 20240204-bus_cleanup-bus-de90b25d7ce6 Best regards, -- Ricardo B. Marliere