Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp184029rdb; Fri, 5 Jan 2024 06:45:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZMnXVym9Uzjqfdcn/VlIPLY19viA2gZ9HfHTr8NvP35OlvjPF73ewTjx+kMio04tT9QBS X-Received: by 2002:a17:902:b7c9:b0:1d4:2d8d:3544 with SMTP id v9-20020a170902b7c900b001d42d8d3544mr2121475plz.69.1704465931473; Fri, 05 Jan 2024 06:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704465931; cv=none; d=google.com; s=arc-20160816; b=s+rXP9jlgu+8ZlgtqsLO7kbkASsUmlbheHQsgLjyXk7BsfC5CEN+453Qz3NeN+0QbH /TJrdQoZXdd560Cna5+0tAg65sXJx1z0B+CaeABlvzojAtg1dYwKwa/llAgUgvUF1kw+ nIy1ipo33I84ce2kkOFfIBdbAIqK7kPbhaxCqz3qJjig5auiYky0vrm6RybIoqC/ZqcW K7E31zyStWK16VX0ToIM7yXNOOT+sNEIhF7TyurxsG/RKtfsv9OwP2AlLrWijZZi6EHY n1O1ZiazzDwOeNnhVaBxUeZ6/xjqnBo6Jv+8m4qGC/4fg+eR/ttmzqI2buFg7MptxGX1 bpEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fjanJf8Y4YEcWmrsgoNfD9ms+wTe0zwUelqmfoXHQXA=; fh=4ASK7e08YfQ7Fsiw171RiQ3dryLqwdxpuM3GOSp2rw8=; b=QZoudpOqKfnUh9EKmEKqD2XJsOmfntyrzkT8FkSdrgEpzQtOTJLDHAYGn0cOFXbsUz RNue08aA/qCHGHiq6OEYi8zjIVQ0o+De+iZCk/JBKQojuw1vQt/TMqC3vqDj/MT7+b0v Zx8YW90GuQtG8AdBN6hOAGfVE9yEiVUxkqk9UZ8dNkVCIJWgJzGHKr5kdjF6Ch3+eC2O wyOSJRdoyQlA6zQy43PbfQdTpA+8b+vc4KRR9WGJuY2tAzYlGfKshNVfRcWmC28vqEzp slVOqAW4CGSjEEh2E1t885Ba0BSNtoplq+tm3t2aPhHpQyATl07e+C8g2TAHtjuUVU7o XUJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ys44esDy; spf=pass (google.com: domain of linux-kernel+bounces-17951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ju12-20020a170903428c00b001d49ba67cacsi1316885plb.406.2024.01.05.06.45.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:45:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17951-linux.lists.archive=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=pass header.i=@linuxfoundation.org header.s=korg header.b=Ys44esDy; spf=pass (google.com: domain of linux-kernel+bounces-17951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 48A90B224A3 for ; Fri, 5 Jan 2024 14:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF8D32E3EF; Fri, 5 Jan 2024 14:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ys44esDy" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 242692E3F0 for ; 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> 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=us-ascii Content-Disposition: inline In-Reply-To: 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!