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 65A0EC3DA6E for ; Fri, 5 Jan 2024 14:45:00 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XL8a5MQa2ArmVyb/HFlfOZlrgYecahk/pT1vytiRqiA=; b=YHXgSmPmcg0+tu NJJEIKV30kB/6LPbiFLcGyMWkor8QTZNGL3WA/w71bdi5/Sao4oiYpJ3DxZRnjspmk7mzuKK+Lje2 0vj4yMgV0XyZv99Ai1TGIzjkAWDF5RSj3NXvFKoX0BF7SW+L931S9PEuDsjJOn1LOsNQpuJLYQI+5 UjES8U++vpSuOGxIe5dOn0Jvso5k1txr696HnEl4ra6SslKUtuqAZe5kKJQb91cx9fQmdPxK+7e4O KxuexSJyqxL5wlZIya1IoINqWkxvFP8jbiaIfLQsgCd4ulsbYubLInhPJnF2g45e3qxKvvtcvO+Yu LDnXV5ToxnEZLLZ76vXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLlR5-00H66Q-1Q; Fri, 05 Jan 2024 14:44:35 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLlR3-00H65x-02 for linux-arm-kernel@lists.infradead.org; Fri, 05 Jan 2024 14:44:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 8D62DB81D0F; Fri, 5 Jan 2024 14:44:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB6BC433C7; Fri, 5 Jan 2024 14:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1704465871; bh=WHReJ1bSfa2mxvrLYhiXvKLQEuwXiGcE3S4qN1VHlRw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ys44esDyGCpGbjC4+l+oJhsNiRGb959STP1eabqdTcr5zcuWcJFOHAQK+GZVohGKg 1sG7g/eXt6jV2dm359ABGGXaTqfKClgxumeWypkjgyO1+G0HoL1fVBcU4tGRm7dONx 4ot2zSBmCcxSSXMGwiN9x7mTv49GVxm/4Z/TC3KA= Date: Fri, 5 Jan 2024 15:40:50 +0100 From: Greg Kroah-Hartman To: Suzuki K Poulose Cc: coresight@lists.linaro.org, linux-kernel@vger.kernel.org, Mike Leach , James Clark , Leo Yan , Alexander Shishkin , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] coresight: make coresight_bustype const Message-ID: <2024010544-framing-cinema-91a7@gregkh> References: <2024010531-tinfoil-avert-4a57@gregkh> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240105_064433_219776_5ECCC8C5 X-CRM114-Status: GOOD ( 17.21 ) 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 On Fri, Jan 05, 2024 at 02:22:43PM +0000, Suzuki K Poulose wrote: > On 05/01/2024 12:33, Greg Kroah-Hartman wrote: > > Now that the driver core can properly handle constant struct bus_type, > > move the coresight_bustype variable to be a constant structure as well, > > placing it into read-only memory which can not be modified at runtime. > > > > Cc: Suzuki K Poulose > > Cc: Mike Leach > > Cc: James Clark > > Cc: Leo Yan > > Cc: Alexander Shishkin > > Cc: coresight@lists.linaro.org > > Cc: linux-arm-kernel@lists.infradead.org > > Signed-off-by: Greg Kroah-Hartman > > --- > > drivers/hwtracing/coresight/coresight-core.c | 2 +- > > include/linux/coresight.h | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c > > index 9fabe00a40d6..24c49e581737 100644 > > --- a/drivers/hwtracing/coresight/coresight-core.c > > +++ b/drivers/hwtracing/coresight/coresight-core.c > > @@ -1796,7 +1796,7 @@ char *coresight_alloc_device_name(struct coresight_dev_list *dict, > > } > > EXPORT_SYMBOL_GPL(coresight_alloc_device_name); > > -struct bus_type coresight_bustype = { > > +const struct bus_type coresight_bustype = { > > .name = "coresight", > > }; > > diff --git a/include/linux/coresight.h b/include/linux/coresight.h > > index a269fffaf991..8fe75a0d7693 100644 > > --- a/include/linux/coresight.h > > +++ b/include/linux/coresight.h > > @@ -35,7 +35,7 @@ > > #define CORESIGHT_UNLOCK 0xc5acce55 > > -extern struct bus_type coresight_bustype; > > +extern const struct bus_type coresight_bustype; > > Thanks, for the patch. I will queue this for v6.8. Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel