Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp171721rdb; Fri, 5 Jan 2024 06:22:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0mjogch7fgKtvgpUNcfWX2SBxdHZo6ZudjQ8WPO6SVErbMsAiuJf3gFJwWxkgfV/tUkYa X-Received: by 2002:a05:6a00:9395:b0:6da:4d92:a098 with SMTP id ka21-20020a056a00939500b006da4d92a098mr2303028pfb.0.1704464576603; Fri, 05 Jan 2024 06:22:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704464576; cv=none; d=google.com; s=arc-20160816; b=N32j+32rLGEGpqZ/x6hjI/qJM34B6ssr4BpFDpoi/19wA1Jl23paHc8ZjTM1Oy45Uq A50XqzpwTg8+Q0Ytb/CUY6pCPg3k01ZifxBd/sYroblXkInYZc3mFLF68YqlXCvwUYE1 2biMwd5gcM8itHfXTXGkgW55fe/sz+9A5zVVXvK0KJGOQOTJE/a5lAwz9QtWu4Z7W5R/ 8L5IKUeQbuK2iASQucep9K+5ck9uGLf2W0pRdukTYGgaMgZOCf5ec/5TpLUNp8cR5mq/ Lyen/Ozp+OnKtKPMRnB+P6n8Fej6azk8NOkc3XdaJnuUOvsp5jofwpobsD0lIb0cr92k 0DSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=+KFnm3Xtpy5pTN867/WBbA96l5Yy01aKvcTpgfYuQZA=; fh=sTb0qpBsozuOokEcsZCA7YW1/RtwQoeJvjlCxWbK5p4=; b=A9k+7LxWZcx67QwIh4PT2POYIWsS448a89EXWOYT23YGNjJIYUJ3T/Rot9WrZpdH3b 5LPlLTsNpZD0MTZtoDq3gYtM5gzFTq1ZL+86pBR0dDR4ePUOVt6mjGnOVwTIQOw4HIKg WKgwNonShrczZWZBIUh1ogiJkD9zVIztEddYpLFjzLOGzhQdff4JlcmcUV7RCt6K0pUM HJrd+O7k0nY4tjf/I+fERtSPJr2blsESWBk1Rn0Mi7R9ohTelYnBe7IcUM10rQVnO5hG ALwsVhB2/eFXSCbCh5UO05Qg8Sf+RepUMD48VKf/ushLWK6cZKnN81nSnXXh9tb+6Jd7 4/qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17918-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k63-20020a633d42000000b005cdbeb97153si1391958pga.86.2024.01.05.06.22.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:22:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17918-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17918-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 45784283AC6 for ; Fri, 5 Jan 2024 14:22:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE4E82DF63; Fri, 5 Jan 2024 14:22:49 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CD4F2D7A7 for ; Fri, 5 Jan 2024 14:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B6E0BC15; Fri, 5 Jan 2024 06:23:32 -0800 (PST) Received: from [10.57.44.155] (unknown [10.57.44.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 482333F7A6; Fri, 5 Jan 2024 06:22:45 -0800 (PST) Message-ID: Date: Fri, 5 Jan 2024 14:22:43 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] coresight: make coresight_bustype const Content-Language: en-GB To: Greg Kroah-Hartman , coresight@lists.linaro.org Cc: linux-kernel@vger.kernel.org, Mike Leach , James Clark , Leo Yan , Alexander Shishkin , linux-arm-kernel@lists.infradead.org References: <2024010531-tinfoil-avert-4a57@gregkh> From: Suzuki K Poulose In-Reply-To: <2024010531-tinfoil-avert-4a57@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Suzuki > > enum coresight_dev_type { > CORESIGHT_DEV_TYPE_SINK,