From patchwork Fri Jul 12 10:20:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 13731586 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 9D0B5C2BD09 for ; Fri, 12 Jul 2024 10:25:20 +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=BwI9jTEsVvDswQgvITJiqUvAl80XwA5xHpIDYVZZf9Y=; b=RND/Pv+Nwq0WACQD9J02PG8tw9 ZfLXZo/mkYn8nZlIjpiZXtU5nPsifkKJH54oiGGY+chnjOHNjaNYMnGobutEybqdBnNuwuhfIroqC EDwyLLX58HpNCzrSRB4lVNAU3Vzri7aj7bldzSLTlRe7od+fLbmHvEHRlMg7aWXokaEoZXWkTbir8 IWty8aRMWZHA5U7DR1WKcvUAWluUdZ8aqniVEO10QLql9mWX010wYPizj5qHi4/2MCKNyqmsywbKk anI8T+/oc/q5J/V4ZJBdLK6E2VxafpUMtfLp6zjkMbh0WgbNqMpbWCu9t92TA0ujHp052thlMypIL F5pCoIEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSDSe-0000000HII1-2pXr; Fri, 12 Jul 2024 10:25:08 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSDQS-0000000HHDw-1SN6 for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 10:22:54 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ee90f56e31so17904091fa.0 for ; Fri, 12 Jul 2024 03:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720779770; x=1721384570; 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=BwI9jTEsVvDswQgvITJiqUvAl80XwA5xHpIDYVZZf9Y=; b=oe6oW/Jz/Uqlo1my1PlMittiLatXI7LX2QVq7bImLHaXc9SvU80CLwA7p1LAWT1/8X tMTNdqdGEklYY5IYWRJFML+lvZU5NBajCV6HwKTtx2KK3WEYdJEN1Rk5Pf1kQcfnVb1r QFMYrsTQBoRuHwsjoNg7chbCvrFw2XueWYd/Rb3f3GqsqOfKbITS6hyJdxzxb7XIngUQ yxGp+28RjY3Vs/V4W7IbZD0kjOqIMdM5EwNfwimOF32yMUBQFuviXc8OUcdj75O0o1h0 mwiNKEWh7CNOZVmq1zRrMgpMb2hzjGLyMmrf4fP+G7SoMjbsf45z5R6PoCwyT21YqMT6 S+Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720779770; x=1721384570; 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=BwI9jTEsVvDswQgvITJiqUvAl80XwA5xHpIDYVZZf9Y=; b=Q12sQzYsP628+k14O4owBqwvoEelCZEQ32+bTcJ6k9jhtn7dkUzmtSSIBD6yY/LYih XeVmz3OapfVs9N2w0KAAEtOQg+zhPLRP0zwCBnWHLZWc+r7no/VFc6NEq8caJz/LI5MG I7bF7NgZFHoeNuFkd01IFjSMaA/jhaUjmhx0vrDGeTLMcp1HwaEMcC7k/of+d06wh4EN tcfe559lK17Ac5Ug97QDzJi0hu6YKAYKftJaWklfG/91+82YQcRVYfsaRNVlDjMOrcWb 0LslFSJysJu/Sz+uK7RUf0ja66JPMXO92ka7nLeSxFRNr8u5oVbAIGdZQonZDmhGpOFm nfrA== X-Forwarded-Encrypted: i=1; AJvYcCXp5bzQYOUVpIhTUf5iVdXBGPc02e6jwl8fJe0wJd+IqLA4m6qG0jWGIsrg3VRdpFaoRczeGfCHQEDJ74lIJXdskYrFe4vbUEzjG6HCJaaBc2i2ksI= X-Gm-Message-State: AOJu0YytU6oPYPguT2RhxTF7QH2xZXIv0dwJGo1FpKWbbs6H7tWunxoZ x0Sv/H/n6sCZElusOstIy0tkhEa8VUCNwLj8JncrGdhC9mp4FLxy472qFEwzixI= X-Google-Smtp-Source: AGHT+IHb1uo/ezehFmvJBG3pixDiP0iKwZcCOyic9lYbULsOd868Wy8XD42z86zOXyTa11uw8ecUbw== X-Received: by 2002:a2e:3315:0:b0:2ec:565f:ef56 with SMTP id 38308e7fff4ca-2eeb30b4d38mr72972731fa.7.1720779770420; Fri, 12 Jul 2024 03:22:50 -0700 (PDT) Received: from localhost.localdomain ([89.47.253.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367cde89164sm9911058f8f.63.2024.07.12.03.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jul 2024 03:22:50 -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 , 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 v5 09/17] coresight: Remove unused ETM Perf stubs Date: Fri, 12 Jul 2024 11:20:18 +0100 Message-Id: <20240712102029.3697965-10-james.clark@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240712102029.3697965-1-james.clark@linaro.org> References: <20240712102029.3697965-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-20240712_032252_422688_FD26EF37 X-CRM114-Status: GOOD ( 13.22 ) 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 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);