From patchwork Mon Jul 22 10:11:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 13738640 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2A07C3DA59 for ; Mon, 22 Jul 2024 10:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CtaJjK7rrgJVkNfrm1RPI3wUUBorSunZ8bK+jPbC78c=; b=3fW2QQ/KoKeNhgb9CCgAZQ5JFx nBkbuaSs1ZS6wSmWGS9WCoWAqRviQhgUmTIybWWeGt2Ixkixuh/cff98uVtENohYvNvAoH8nM28mL faSRYntk3oWel81MexnWgglqBCLwQk2jdEW1p3zWg9kZIp7lVR05FGS/MPLTUnwbyjpT1trJ1R//v +TbyoZOiQzIOZYOnLsEJ0iSKQ7+M3fqpc1Y/jHBkPv8Lpq3IuKxWJA/vRfW+ccg2+LkZPeHizgWAC cv1+TCF1c3IZpGmTzOAjrSxNsU3uJH56crRJ4qJTZl8Q5crI1VttEMHAnuuJ4V5pIRBHucyirw7RV A8D179Zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVq5e-00000009DXm-0V7u; Mon, 22 Jul 2024 10:16:22 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVq2c-00000009CMx-1kJe for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2024 10:13:16 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-427db004e36so15966645e9.3 for ; Mon, 22 Jul 2024 03:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721643193; x=1722247993; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CtaJjK7rrgJVkNfrm1RPI3wUUBorSunZ8bK+jPbC78c=; b=MvM3x/QZ0EMaslccwJn/q6IkTghhrJHarrcCKJAZYUa3bhs856fHYuBL5W1TgGAoD3 PX/ePpzmailWeK3irDC9kZzJOwh38OG4aTa9iRCj7d0ESrNUu2hKkPuaO8Fr7Yyegebg WeoGz5VhO5onAKNCAqwLKdd3EN2WRpCjMq+QcJnWs/NAgxV7JRqlWbjr56nsUQmvQfw9 kYf4jEI0+ASTH76UPzH/fNTmt7RpY5+EkyFLtxDdQIq6CWib2zc0462apKOkE/SSpECX q3qsAGUEpLGdYPPrhkyDb2ZrFiSLae8l5td3VF6FI7UhRgVSVDZvmsnAuCyVhyzu4mAn XZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721643193; x=1722247993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CtaJjK7rrgJVkNfrm1RPI3wUUBorSunZ8bK+jPbC78c=; b=Knkc6PZCSnY4R3A+KuQfMgszICis3/JpayAUB8yJdMVXugyrDfVvsXxgpv6iQjBdgJ /RakNOXFJdcZp+HOW2Qgw+dF3nPxWRKZDkg2P9w6nNgOsCmIbXEOdbqcK8nXbiF6mlnJ dX9JHEcvYFv0ToS74UkzwhGqhryvrwkOzSkzMn4XlhKi9OlQsTaYFqGnM6SkIOpG6Cpz azO6UzrU5cCnA/xJxLKDQY+qsYnrym0B7zgNhyN+5RVFDw6R2mRhLhaOh45CXlqn3Pli vGzXtWZUgFViNAsehpBVnsKz1SjfwpwmIratcaE5MxxqcGr0tAoBVruTCJ/qtzahW2Pq RolQ== X-Forwarded-Encrypted: i=1; AJvYcCVzhJLCehh+JKAAawW+UzR6Xjr60AxxoGefHlOSomUF8oIaMpzOx3S1o7V71Nt86unBrrUMi7Zh9iZKXCU+/jgP+Gae0XHtMN2VvpXh+76Ul9+wx3A= X-Gm-Message-State: AOJu0YwjD/snOBL97hoWKnI+ERAI8KumNWdtAWnf3fbmy+cITl2AcfQz zTVkR7VnOnEKIWyY0s6UFqG0Jf1TypKaz/+l788A5s9EdUIA9ZJALHouq6FOPVE= X-Google-Smtp-Source: AGHT+IGdhd7RpxJePLbZIYhR6xs+qj7oZ8Lfr0TNgtXBBhZbnw2zVwMKW7uEaoI3NiSjTwpc8kM/Ag== X-Received: by 2002:a05:600c:5493:b0:426:6ea2:31af with SMTP id 5b1f17b1804b1-427dc5753a9mr33453755e9.37.1721643192769; Mon, 22 Jul 2024 03:13:12 -0700 (PDT) Received: from localhost.localdomain ([89.47.253.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2a8e436sm147993865e9.33.2024.07.22.03.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 03:13:12 -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 , Leo Yan , James Clark , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , "Liang, Kan" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-perf-users@vger.kernel.org Subject: [PATCH v6 09/17] coresight: Remove unused ETM Perf stubs Date: Mon, 22 Jul 2024 11:11:51 +0100 Message-Id: <20240722101202.26915-10-james.clark@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240722101202.26915-1-james.clark@linaro.org> References: <20240722101202.26915-1-james.clark@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240722_031314_459126_495B2597 X-CRM114-Status: GOOD ( 13.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: James Clark 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 Tested-by: Leo Yan Tested-by: Ganapatrao Kulkarni 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);