Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp287698lqh; Mon, 6 May 2024 21:16:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnF6qdEcWwrlwluIY2B3qvI11qyqY3odBPNAHULsdJm/AN9Heg3atX6BMWtM0xDEyUhnVX6Gt6AeGdoornHH6JLAfdI8KKyhlRRg2BRQ== X-Google-Smtp-Source: AGHT+IE7QjnYTBO+eGgJGrEyaNPCvUvWlsScuXMn7MpPLG01kDD4D8SCzAH83jsErRp5xYn/pHnm X-Received: by 2002:ac8:5dd4:0:b0:43a:f092:c363 with SMTP id e20-20020ac85dd4000000b0043af092c363mr13315757qtx.61.1715055372499; Mon, 06 May 2024 21:16:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715055372; cv=pass; d=google.com; s=arc-20160816; b=ge9h8upay8CJtfo9a4uwiFq/rWBlnENWlc+zjt1tOAQkxPp0rteeyMmfaqsfs2jF58 Y2Lk1bAuOX3tHWQ8or98OoCy+cYX20ANo+wUMoMxPy9ACrFi1Nzp7jFOb/yOHGsrBp4X AuPKJdKeQbFMQErBmlieSXQfcCudiMK3G1wZDUirFTawBIIR8Uy6SjQKjwuaJ2PIZr33 hPWIHk+4sFScboEdPwduQDeZMOcWSu1Efj6pwHBqLpP1Me7QMTxCLxh/iv6QmfLF8Lu6 CUN1FHtMZikyfAy0k6WaXZAkfTTx1KmEpaR+kn+aP0YGmznrYBrZH1r51Kw8NI6ghiMP OZOA== ARC-Message-Signature: i=2; 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=dRGjEdPm6G3NBtsQktFSoAIhaKlbeQMj3b4cp8gawrM=; fh=VZwZbsQXtmVFpxvC7gcuhPF/zVY5sB/CE4c7obzPUYw=; b=yHiiOXY/UMPv3d1RctA0bqXJLJyBKkMrdpnBzOSYxqA9d6pDGbIYTmkSuUX7o1IBQh Y+qPVvJZvur+7tU3M8v35GLOqVfQhEyrkfSWO5U3rji14OHFXtCrruKTfxxHUb730mQe TsgDHcIciQo00To5eLNJ6M07rLyFe2zqiwVRDrP2WBGGHbQx0SJ05V+i3Eo0y0gLtq1E 6A8hYk6fyR6EL6pky+jsJVmRLtTEtd1DVI17PHHh+BWjwPPxUiT5sU2wdcLOOYcINUcV MsvetHwzJXBMbKXGv5vciwUOQcyD4fmxtrAhlRLJ6iJTVM+8jK0e+P5hwkzGgpbxZVUA 25uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-170641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f17-20020ac85d11000000b0043af565a4e4si11320280qtx.504.2024.05.06.21.16.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 21:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-170641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170641-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F1061C229FC for ; Tue, 7 May 2024 04:16:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B746B4F887; Tue, 7 May 2024 04:16:05 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3114342A97; Tue, 7 May 2024 04:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715055365; cv=none; b=rAFVGuZqwHyoKx/1RXHc3LnXfCsc6IUmCWKeECuAiKXjwTtna0dAXTvo+2TbzZjxiE5EV4THK3DvDIGp7UACUWGGMEQSO46C06uxsvaBLB+UUy4zJrbFkFh1cfwg9grbodf2tFm0ZYzKJpZfB0U9Q79QqFnAymyvduJNRPZ5UYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715055365; c=relaxed/simple; bh=nv1j0TM2FIZ3k+s9DgLwGe1aAMpX9+BEPJtHnDfw58o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C6VL5iG05nnRu8EP1ckHyLJOs13NgvAF7gBtOqckp9ylSfpsKetNev/75dC4nWbBzYvAQX1F6sre/ffdiwg36oEDiTvTdP3HCc5EeLjG7wWT6VKsTnzkFalFsESPERKix2ybimchxinJD9bckwHB/jGLvTUrBUsfKzKNo55PbU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 47EB51042; Mon, 6 May 2024 21:16:28 -0700 (PDT) Received: from [10.163.33.37] (unknown [10.163.33.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 49A9A3F762; Mon, 6 May 2024 21:15:54 -0700 (PDT) Message-ID: <387feec3-79de-4b28-b2d5-d70d05b151b7@arm.com> Date: Tue, 7 May 2024 09:45:55 +0530 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 08/17] coresight: Remove unused stubs Content-Language: en-US To: James Clark , linux-perf-users@vger.kernel.org, gankulkarni@os.amperecomputing.com, scclevenger@os.amperecomputing.com, coresight@lists.linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org Cc: Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com References: <20240429152207.479221-1-james.clark@arm.com> <20240429152207.479221-9-james.clark@arm.com> From: Anshuman Khandual In-Reply-To: <20240429152207.479221-9-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Minor nit: Should the subject line be "coresight: Remove unused etm perf stubs" ? On 4/29/24 20:51, James Clark wrote: > This file is never included anywhere if CONFIG_CORESIGHT is not set so > they are unused and aren't currently compile tested with any config so > remove them. Searching for this header's inclusion throws up the following source files, all of which needs CONFIG_CORESIGHT to be enabled to be compiled. git grep "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-core.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-etb10.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-etm-perf.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-etm3x-core.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-etm4x-core.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-syscfg.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-tmc-etf.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-tmc-etr.c:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/coresight-trbe.h:#include "coresight-etm-perf.h" drivers/hwtracing/coresight/ultrasoc-smb.c:#include "coresight-etm-perf.h" > > Signed-off-by: James Clark LGTM, with or without the subject line change. Reviewed-by: Anshuman Khandual > --- > .../hwtracing/coresight/coresight-etm-perf.h | 18 ------------------ > 1 file changed, 18 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.h b/drivers/hwtracing/coresight/coresight-etm-perf.h > index bebbadee2ceb..744531158d6b 100644 > --- a/drivers/hwtracing/coresight/coresight-etm-perf.h > +++ b/drivers/hwtracing/coresight/coresight-etm-perf.h > @@ -62,7 +62,6 @@ struct etm_event_data { > struct list_head * __percpu *path; > }; > > -#if IS_ENABLED(CONFIG_CORESIGHT) > int etm_perf_symlink(struct coresight_device *csdev, bool link); > int etm_perf_add_symlink_sink(struct coresight_device *csdev); > void etm_perf_del_symlink_sink(struct coresight_device *csdev); > @@ -77,23 +76,6 @@ static inline void *etm_perf_sink_config(struct perf_output_handle *handle) > int etm_perf_add_symlink_cscfg(struct device *dev, > struct cscfg_config_desc *config_desc); > void etm_perf_del_symlink_cscfg(struct cscfg_config_desc *config_desc); > -#else > -static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) > -{ return -EINVAL; } > -int etm_perf_add_symlink_sink(struct coresight_device *csdev) > -{ return -EINVAL; } > -void etm_perf_del_symlink_sink(struct coresight_device *csdev) {} > -static inline void *etm_perf_sink_config(struct perf_output_handle *handle) > -{ > - return NULL; > -} > -int etm_perf_add_symlink_cscfg(struct device *dev, > - struct cscfg_config_desc *config_desc) > -{ return -EINVAL; } > -void etm_perf_del_symlink_cscfg(struct cscfg_config_desc *config_desc) {} > - > -#endif /* CONFIG_CORESIGHT */ > - > int __init etm_perf_init(void); > void etm_perf_exit(void); >