Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp148081lqb; Tue, 4 Jun 2024 07:34:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/tIXccfe3UTZs221SLwhvvyrs9ptfumbzTJVIVDospTr1M7GiO0Id1dC2MKB+z1i8LakHY1FXtbRgf2leokWO51792u48eIyrjGNHJQ== X-Google-Smtp-Source: AGHT+IE2FNKMX2bKPOn2ujCAUteBqpA6bmA1zqFpvFfvMdqIUUekEEb58Km9u/ujunOoCVM55SVc X-Received: by 2002:a17:90a:f989:b0:2b5:af18:4778 with SMTP id 98e67ed59e1d1-2c1dc59036bmr11199148a91.26.1717511683422; Tue, 04 Jun 2024 07:34:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717511683; cv=pass; d=google.com; s=arc-20160816; b=esLRQcbz0neIoz67xN/168TGopyqFfcWxeM3TDKw/zzuNdBSOHNtk+eAXZ7kJDN9YB 5TKZ+e/ZZL1aVSwu+q2CtBbHrBooQ9PYwNEgQETfEmjP/kauWu4IsTUoH68zfx/rWQU+ moeKn3d/BUkjeIS8GTuMQG3ok2zgLW83pBpAm8EFUB7FkzMvKZRBuKcav2qQ3yMe0DFV DQQ9ExwusFJI+I2lks0NWTVRNGBdauX23YXn/b/uuqcZV3f3/xtJaZuf4+7QGmCg+uKx Kl88RNL0weBiSWHHpGuyMtcyiM8EgkcwnNOiBf001zJgl7zPltT/MK6Z7rduXAe8otmP QvPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=JnZJtwCoCjcVi6yYv/y+SGWHXvL2EJF8yHPguJ33+e8=; fh=PS2xZ37x6i1et2MxEVJy4TSpqrJZGNwd6DyYCR5/2fw=; b=EOWGQyH5lxJKWW46zi3LFiym2HIGopGKXdM5cSBoqUUWyZXEJNzg5hZiTfXRpZh/Ow iwcHAMXo+dseW9CfmvnoXtko5uwHKZcEZTbIbhpFEVXp7gKUjtLO0lhOT5nXXey3YV5z fg+gHw2fhJx8wY+ZuUshCfvK/GB2l49XsM2QS0kS69SRiaadbU64KdmX/MdoTEb/8R25 qzCCAHhne9yHMVN3TeQ5IruX4Cg+ubkmNjY3X17J05Q8V5QFGf4IgODGaa4uQFSAXjWX cqrNgkcIkMB42oEbnoMhk9+qzLksI6oZ7uakV1YT2e7i+g4YPtYA+OEX8VNcpOpZsQ+n tHOQ==; 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-200830-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200830-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 98e67ed59e1d1-2c1c283e85csi1634177a91.148.2024.06.04.07.34.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200830-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200830-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200830-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 1710728380F for ; Tue, 4 Jun 2024 14:34:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7324C14374C; Tue, 4 Jun 2024 14:32:24 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DC9A13CFA1; Tue, 4 Jun 2024 14:32:22 +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=1717511544; cv=none; b=tKqKr2B8/RCa06A9Xb8zGr9fCLcznAusXj9TWzbaU/0tkMNpSyx2VWhvgDhW4AuF5rv0rxnuFCQSNi+285hC2kXfCO+r2dYHA4bgY+0UGKMggO/x8cVGIYsq4dHeH5dUFtkUDAMMACrM2vkW5v1/yAwMT+2vPUozU5ZWRV4G/LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717511544; c=relaxed/simple; bh=6nj9MSKICn8rw0/teN5JEls/J6Alp3u6VNBhggwcorQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QFjV8b1BW6pT6wlVFQos6wlfI1dQACF5vmyrbHKmNtOlKsoIdKYHwDeaoa7XRDuCYPgYR/W02yBI0cD4ntEH3AD5AxZ46RRBjhzUhOkWXdgzI3B1IxdsRs9taUpGl03WjRFrsiAxlCXBV5kYzFSgi/RXOmUd9f4k7/w75/HpvVc= 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 693A91042; Tue, 4 Jun 2024 07:32:46 -0700 (PDT) Received: from e127643.broadband (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EBB603F64C; Tue, 4 Jun 2024 07:32:18 -0700 (PDT) From: James Clark To: coresight@lists.linaro.org, suzuki.poulose@arm.com, gankulkarni@os.amperecomputing.com, mike.leach@linaro.org, leo.yan@linux.dev, anshuman.khandual@arm.com Cc: James Clark , 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 , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-perf-users@vger.kernel.org Subject: [PATCH v2 08/16] coresight: Remove unused ETM Perf stubs Date: Tue, 4 Jun 2024 15:30:17 +0100 Message-Id: <20240604143030.519906-9-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604143030.519906-1-james.clark@arm.com> References: <20240604143030.519906-1-james.clark@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Reviewed-by: Anshuman Khandual Reviewed-by: Mike Leach Signed-off-by: James Clark --- .../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); -- 2.34.1