Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp412775lqp; Tue, 11 Jun 2024 08:05:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXglMf2cHkh3CmM2lDI1EDiAkiSOuBkxlPLfOMRuAadlBCzVVixxRMd8+N1iUv7Edh8zmStJuDtlzKcVTPEwZgjw0tBeF6OoDgfYZYnag== X-Google-Smtp-Source: AGHT+IHuA4BYrx6pPxIIj1Feik623/aRgWqzx/N8vKrZCaIGQr9Zk72JQgmnJd53dczZnAsoGxri X-Received: by 2002:a17:90a:5913:b0:2c2:d250:280c with SMTP id 98e67ed59e1d1-2c2d25029b0mr9285227a91.25.1718118318459; Tue, 11 Jun 2024 08:05:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718118318; cv=pass; d=google.com; s=arc-20160816; b=KRwVrullYZUclsR5RnYp67zvpEPseLzL0RJKZr3kce7fYdHxfaG5qqloAzbRbPbpvf iNTShH5mFaePyh149wU+rEeJgGMrNVp12tZW6MzYI31HSR5DLLmMRHrwIjFZTo6ZJj5M XcxtqMgzJKVYN7/K+duEjGuIulJKX5xU5oksR7AhVBEB4BqRe5mXN8KdF4fPAOLQvRyb 7Y8oX0hLyor0OmPRgLv0XpVS7bOVNF5bhdIzXS1ceusq6OPEr8MK13btpYkr5f14oc8A 1Jao1AFVM32VuqFsCY31Z3v5GXhmY+uMqjgbnWOXfZU/JSqxhfyCCd96+29DhtFzSrPH W6RA== 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=2s+eIsKHHam+jMV7/s2ffLwy54AhQ8M2v8jHKEN3Fe4=; b=T7htQVg0LQry7REQ8pLFhRY2dF5bKTH2dIASmvNqqLTHNU+CqBwFMa7PP9YxJkEuA4 d8qBeiJORqvNOa949bdFDj9FotXMgaOBI1jTxCLp1qv/w68qwUFoulBmVUi+SUWzJRh9 r47MsLw32XCSdRrGbQZgcJabQfdO6OP24LUVWqNGWUe7p/sA2G9miX36AAr6GSn0AmZx BhjtxDdB0OCJuPCYAdzrAGPVy27DsTMsevbnPpK8M7mROAxn9i4nHdlby5xmSd9uErbN 5kfyvFYySEJ0wlX8gIaOvuK1RLOMFAMJYjRGmaZhGaMuq2pMeCESdRFuxfQ+XUWUoPg1 8Sug==; 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-210118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210118-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806d1b76si9018201a91.146.2024.06.11.08.05.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 08:05:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-210118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210118-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 79AD728811F for ; Tue, 11 Jun 2024 15:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C5D33BB22; Tue, 11 Jun 2024 15:03:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C89A2BD0F; Tue, 11 Jun 2024 15:03:25 +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=1718118207; cv=none; b=hktrAgqDT0hJ6sVzPEdqFuXlrbq5/UQuyEEf3AEr1UmPOjfQmP/Yk3jbUnHqKvT4FRloURlRqALml00ZJtvfyBK7PQaf0Bhx7J6n8yTib3ou5Mqwg5Xy7nQWFrzadxreA8UPpaAOOnaPMLuzyT9txjtz7KE/Ig0FQF7POJWsujo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718118207; c=relaxed/simple; bh=6nj9MSKICn8rw0/teN5JEls/J6Alp3u6VNBhggwcorQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HZNymyMME8QVudw4syoURXSS67qQJzr0KLxSdd2yzmcvL4kzbJM3iVHYn+hIp1MxRPuQtsKh4oJDnZR5e6qG/yRyuqbht0L1hF6q9BO7JO+E29p7Gv+/mQdbhVG+UrNTNqDV7OJrKdd2XJvH2BdABe4jDFCfPQAjtZSYatBdjv4= 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 8F386152B; Tue, 11 Jun 2024 08:03:49 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.41.181]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1CA953F64C; Tue, 11 Jun 2024 08:03:20 -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 , "Liang, Kan" , 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 v3 06/14] coresight: Remove unused ETM Perf stubs Date: Tue, 11 Jun 2024 16:02:17 +0100 Message-Id: <20240611150228.1802828-7-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240611150228.1802828-1-james.clark@arm.com> References: <20240611150228.1802828-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