From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41AAAC4828D for ; Mon, 5 Feb 2024 18:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=42r5YAJ8WTW9WZWtPni8clQtLXZL1deWPDcrJPBxhXg=; b=Q1TX9FAjCBrs2A ke2bR7XuvYAqfq/1PTDV55cluhOIFdBOWE0MAnCjuPY1C5K47v88gV3lqtySoXTfS05n14QAx38ne KcXuSatyBXMzRfYGxnTqL40uMve4jdEmG3Rs2Jv0sC87o3emMBaJJovCMVfohqHsQy2RJoxHD5Lbj PjWLid7acmjOpclaZ/LIdYtJVqWirIB0nvy4Cak3hBYpLF/aaOn+/qrVbO0L2fv49VzExk3SAgsNp B28XmCiVfjwE8kjiv9DNJ6uuXr7XdQe5uvOnLTDQEwhNaSxbsTpt8QlPK+fkOjejXJ8xfmhTtCw+m 2IvrsBz22bFgS8TDNdyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rX3Tz-00000004KWu-0OJI; Mon, 05 Feb 2024 18:14:15 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rX3Tw-00000004KWU-35EB for linux-arm-kernel@lists.infradead.org; Mon, 05 Feb 2024 18:14:14 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40fdd5bbe65so7602565e9.2 for ; Mon, 05 Feb 2024 10:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707156851; x=1707761651; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qr+Vq/S1r4X6aZjVDF0PrU45ogtRloS0UmBuISXNtMI=; b=E+zkt7FfX1QqkycOSuyfFKr5BjRjS6jkRgDSz3mDW4tpPfokdfc4qZu45nRmUJsni/ xv3cptyrs4k1FcoV1vPMrjnTTvSpM22r68WYpaRTCt3yQJQhQBPR3F3GIVLCtY/CdMAC pZkSDT1H5p3w7D6LKzubuCGfN2oW6uHrubzrN4+8bgLDLVKwm3MCNuLfEpCy2JEue3S1 zQDrK+N9WKxJ80lFvG8RIgZqSPz+54lL6eTBT0R7F/tjdR0izh3N/9CgVW8voLErBqgn hQpqsMpInf5D4WO5tDswqUCg37241x98RXtGZQS80iXrJHCkTQ3r2x5YmeOIndCwL/Jx rWUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707156851; x=1707761651; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qr+Vq/S1r4X6aZjVDF0PrU45ogtRloS0UmBuISXNtMI=; b=v+Hs71cs5A77Y44QdOCjwoJoq3+rDnzcpTJWe+A3qewGk+YGvheG5Ts3wzNuF2DauY Lhleuxyjaf8IyQMucrz5o6XFeY78f2fnMsLh8nlF4WcgJLseOvl4ySGnQN/SHjBGHJ+X FmmO02/T3iPhXtJYMRJiWuSfa7nlr2yDjCNujXa9n5AHIMTiFpKY4Mw5p3WyIGtnAK8D zJH4lLGjCEmgvKS4WIgnynr5nm8z7CWoHVvhza+yREv38Sgkgoi4AyLb7pyGsrfIPjVx IzIhJ7nyoMx48mVozkLegX1b8eIMDyP7spR1SHPsFx+il/MFmE1DvsI0GxCRdr7az4s6 ho3w== X-Gm-Message-State: AOJu0YwnSH3IGUVdDsfLZ13K4SJXKio+CeK9yD2oRV3w9DIPoqw0slhs 5mJk+N7DSoGDxJ4vRAk1QWv4TymGk7SSLBGkJDcDfDfdDgnefFOj X-Google-Smtp-Source: AGHT+IF0wujzR+3gQ56QlL+FI5opt3CJKtvlwe+T2+Vdq05+o2wxVVN/hC3axtbK0Rj9lxWUjg/8kw== X-Received: by 2002:a05:600c:19c8:b0:40e:f557:738d with SMTP id u8-20020a05600c19c800b0040ef557738dmr383821wmq.26.1707156851150; Mon, 05 Feb 2024 10:14:11 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVqIDzbypmAayHCkhdRi5vwvjHNh2aKNp3koseOzKUJx1C6WLjwtBw10a38BZZ+ME81zmG6yoeqO0QH49yXF17+q1Bq5DNFVhKbPGNn+IiGir6kyWCt7r/7J7kFe1Mjg6BO16OkPkrP6J825lsMBh+jENEbf9ivCWqsdAQyHqICoXSgD7/9+0Li1xtkjkJ98iqJNMdNW89e8zsWGohMesN2YeKkXI+fuEoYjr4VGLQd/g== Received: from jernej-laptop.localnet (82-149-13-182.dynamic.telemach.net. [82.149.13.182]) by smtp.gmail.com with ESMTPSA id h2-20020a05600c350200b0040fd24653d4sm558504wmq.36.2024.02.05.10.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:14:10 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland , "Ricardo B. Marliere" Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" Subject: Re: [PATCH] bus: sunxi-rsb: make sunxi_rsb_bus const Date: Mon, 05 Feb 2024 19:14:09 +0100 Message-ID: <10412979.nUPlyArG6x@jernej-laptop> In-Reply-To: <20240204-bus_cleanup-bus-v1-1-bda309c4b829@marliere.net> References: <20240204-bus_cleanup-bus-v1-1-bda309c4b829@marliere.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240205_101412_808384_EE009237 X-CRM114-Status: GOOD ( 18.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne nedelja, 04. februar 2024 ob 16:56:44 CET je Ricardo B. Marliere napisal(a): > 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 Acked-by: Jernej Skrabec Best regards, Jernej > --- > 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, > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel