Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1453385lqa; Mon, 29 Apr 2024 08:52:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0ZXpdvJhpj2RTg3ULGIGNd9Rm4Qr4WIYlMkFKNUAbYDqXGU+IhT+5gvQj7AxWrW31PS3m0snRwifJ7IesCWsCMy0ayXByQNpyoSOX/w== X-Google-Smtp-Source: AGHT+IFwPcFFJYLvLvnBKfbx5F7FESFMkhaOh6igrwYhFq4h0ZARbWpnRQi/F0JgVEqSdhU0UxDA X-Received: by 2002:a05:6a00:ace:b0:6e7:b3c4:43a4 with SMTP id c14-20020a056a000ace00b006e7b3c443a4mr12484701pfl.25.1714405970640; Mon, 29 Apr 2024 08:52:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714405970; cv=pass; d=google.com; s=arc-20160816; b=SgGoH2dqJnWotnYdzFIRX4g4MTodJRkH473lfA7EVJwv4JhhXIg7jNSQZlWkVEW6m2 lcPM+6A1zwite14bx3rq7i17ovpIFr1L/lQWQN/VS9LzBguPU5FhCG3i9HE4U86U1hwx h+1ArmrUKL4wuVIjzD9WBdokoI0idK2xWweCtQJukKvaXkNzDqKQQ4gO7YIpuGt9tbDm /5fzO10vwyHoM6FbhkwMEw09Ggi/bA/B6ldKUUpcO/dU0g5s6eW1cyg0fDVVesNz/z/5 JW1eMLaC1q7ewbq/Zxs6ffeIU3L4Hi1lz8K07T98udopqh7oFD5qYzuQMRv8pgQBUa38 7RBw== 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=JoFCDF1qUHEsL+LKfRWvYgUOdQi4YIxgzWfrOoVnCLg=; fh=eTkjUs/l3a9lPpUjmicKO4brnHa0D6Qg87n5LIjfzgo=; b=IovBAQru4bf98BZG+GrqNgjwTHO4vwk2svSDxMczs0b78oF2j2OjEMepf7buIlm5/3 RE/gZ4duqN5FeYeUUWfp/01GL++ntZi9Q60qCSz7xWXfGWj81ibuSnZbUqJEsgjivgT4 NFEN05rmLi9CMTS/nJpWPOnefWLh0aIvCxa+4AndGjshNhKlMdtjNVJLdJpDTxfBDZ8V RBE336P/wy1L1r64zB0ProIazXDXwgif3l5dIc3zutzlF/ZOwWzDKBNYqTrMru/BrrZv bIv5/IfmgbK44q4BZBt7LgPclGanlDUN62nKDJtcXpRISrWO/ml6P/x/vT5Eq3p5FpsM /sDQ==; 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-162576-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m11-20020a63fd4b000000b005dc8280f3b1si20396804pgj.303.2024.04.29.08.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162576-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-162576-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162576-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F1699B25BC5 for ; Mon, 29 Apr 2024 15:26:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C56983CB2; Mon, 29 Apr 2024 15:24:45 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C4F17BAF0; Mon, 29 Apr 2024 15:24:43 +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=1714404284; cv=none; b=m8MNMgarjeDCs4p4Th/cc9j4ZncZ7Io3+WIo6FdiYRpV4z6YFEtIG9I1WMB/9tl2LI7aoSMWcWaZAXBm3F5gqX5xyz/9nmWIG0+R4xT6c3D9vxSHy9Ae63ilBONV9QEt64+2tC7xjimAXR5ShYWj/YTVYtMp5a7RIQan2peKUXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714404284; c=relaxed/simple; bh=oqBDVbdU39WmOONhtCIQaif0sowdvboV8z+tgOCf5ro=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ukF/WLhp+QPwvcG8hHhuOp/q+SEp6WcPf39uLA9zThuIawf721/l62tNEVxRkdseyMm96WFOL/4ADPDrIW50grGiFOPXTgD8QM1dM37NapdD98HvX8p3mOEGNhbttiomCu6a1kGzub7yfMgL/0luwadvOeMfR5gKGxT3P7Xlya0= 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 9EEBE2F4; Mon, 29 Apr 2024 08:25:09 -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 0CC743F793; Mon, 29 Apr 2024 08:24:36 -0700 (PDT) From: James Clark To: 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: 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 , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 08/17] coresight: Remove unused stubs Date: Mon, 29 Apr 2024 16:21:53 +0100 Message-Id: <20240429152207.479221-9-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429152207.479221-1-james.clark@arm.com> References: <20240429152207.479221-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. 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