Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp466483rdb; Mon, 29 Jan 2024 07:43:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlDQkRdyG/IrUbTmlXOn8Ea6TWS+LlDbZrjpnDv5AQLmr1ePHUYNpwDABriUkbYebj6aVq X-Received: by 2002:a05:651c:1245:b0:2cf:3d74:43f5 with SMTP id h5-20020a05651c124500b002cf3d7443f5mr3660951ljh.5.1706542995257; Mon, 29 Jan 2024 07:43:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706542995; cv=pass; d=google.com; s=arc-20160816; b=rzQA1Se0YBmExhz2DY+oDRwaVyhJchd4054loYffsPB6dPw2LpoSltOD/k2bpWY4m8 6UfR0Jvtn9YIkuKKOxjY1tkom6B27QubHbR0URwCIAUGOaOs+yNPSGalokOdQSHhjiY2 8qA8iISdT2yzPsY7jRZhg22yDVpbwHXj+qdzx+3lTa7iksfidEC6L5Oe/rLEa7JqlvTf 4Daveq0mZ1IOC6ZkUEiN4cM9RaFGTC7RbfzZ1BdtJRsE9KWvgSGmLyLOTphqlpyfFhAm pHCva0BsJxwHxwZFcfsntgLYiYRy3XurZbU7eaVWeykrcLlc4o5sEBOZbGjEyi1dtvvu Yzug== 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=0GOIsOGAVMepLXJg/MkpFqGD8UsUEW83RneyWe9Mzd4=; fh=L0mtDxzbexvY93/TXVDPqRiMSUezBOF86XyL0RxKhcM=; b=0pOq0kss51+fk7DYdksnhQrFrsi4SvjBNBy4+LEWAMKbnZicFVoMz195wkE3+5sYjv I4IRIsa5YM3ingHxc4bii00texlU+YUK3ebcQzDgfid40VlGV2/DEoE4Juw1HosjlOIf 6pIz0k+NDnorIVuq8J8pq7mINoABFEqMGPF6Ery/nb4Y5ece6t2zG730433ceqkBRfrS UMtwRAqHnVipjTzvLemIZFXOXO+cquOHX1VX8vvkhL7CB6r1U4YJvcGeT51FMVWI/322 7L5+t8EWo1SvQMb7ma6p/IVaE/rx1n3VyqZLPbIITSCOx/EKG7nKV5osYG9AN+C1e/Lk LcXA== 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-43020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ev13-20020a056402540d00b0055cec2e9669si3617892edb.107.2024.01.29.07.43.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 07:43:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-43020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43020-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B22261F2491D for ; Mon, 29 Jan 2024 15:43:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D6471552FE; Mon, 29 Jan 2024 15:42:23 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01C67154441 for ; Mon, 29 Jan 2024 15:42:20 +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=1706542942; cv=none; b=FjfmoppxdtS+lGpgOXnPLDVDhxLveyeOG/mwUDfVN1DNFmdnV1uyA5X9K4db8m+HAllkllngc8RNlvTwcMWvGOND7opBcAZnelgDc1nA4f+H7TFtQ8uqwf+Wific6Y/YDHI0AoA83o+AHv+23Y6ZYyl5n8/SOzhraN6KLeMBUkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706542942; c=relaxed/simple; bh=OGvTxJpBW59bIMhu/9lm0a0d931d0KXXmSVZWIsC/pY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=H7147CYq1qchAD7rjHKUfO0hO3P7AzigRl2xp5jDYEiWhUtXyO3OhCWmmGITk4m5Bs47sJ7PJ28m+oBCkHYiaqiqK5Ypwp+2eGwCGS3tV2u+h01tFWfgeYROujE/Hu2NXt8bmsIcvECavlAPNIWCWUj9qOYcHHaLDjUY7u91dTc= 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 3F116DA7; Mon, 29 Jan 2024 07:43:04 -0800 (PST) Received: from e127643.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D2D2D3F738; Mon, 29 Jan 2024 07:42:17 -0800 (PST) From: James Clark To: coresight@lists.linaro.org, suzuki.poulose@arm.com Cc: James Clark , Mike Leach , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v2 08/12] coresight: Remove unused stubs Date: Mon, 29 Jan 2024 15:40:39 +0000 Message-Id: <20240129154050.569566-9-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240129154050.569566-1-james.clark@arm.com> References: <20240129154050.569566-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 These are a bit annoying to keep up to date when the function signatures change. But if CONFIG_CORESIGHT isn't enabled, then they're not used anyway so just delete them. Signed-off-by: James Clark --- include/linux/coresight.h | 79 --------------------------------------- 1 file changed, 79 deletions(-) diff --git a/include/linux/coresight.h b/include/linux/coresight.h index 4400d554a16b..c5be46d7f85c 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -391,8 +391,6 @@ struct coresight_ops { const struct coresight_ops_helper *helper_ops; }; -#if IS_ENABLED(CONFIG_CORESIGHT) - static inline u32 csdev_access_relaxed_read32(struct csdev_access *csa, u32 offset) { @@ -611,83 +609,6 @@ void coresight_relaxed_write64(struct coresight_device *csdev, u64 val, u32 offset); void coresight_write64(struct coresight_device *csdev, u64 val, u32 offset); -#else -static inline struct coresight_device * -coresight_register(struct coresight_desc *desc) { return NULL; } -static inline void coresight_unregister(struct coresight_device *csdev) {} -static inline int -coresight_enable_sysfs(struct coresight_device *csdev) { return -ENOSYS; } -static inline void coresight_disable_sysfs(struct coresight_device *csdev) {} - -static inline int coresight_timeout(struct csdev_access *csa, u32 offset, - int position, int value) -{ - return 1; -} - -static inline int coresight_claim_device_unlocked(struct coresight_device *csdev) -{ - return -EINVAL; -} - -static inline int coresight_claim_device(struct coresight_device *csdev) -{ - return -EINVAL; -} - -static inline void coresight_disclaim_device(struct coresight_device *csdev) {} -static inline void coresight_disclaim_device_unlocked(struct coresight_device *csdev) {} - -static inline bool coresight_loses_context_with_cpu(struct device *dev) -{ - return false; -} - -static inline u32 coresight_relaxed_read32(struct coresight_device *csdev, u32 offset) -{ - WARN_ON_ONCE(1); - return 0; -} - -static inline u32 coresight_read32(struct coresight_device *csdev, u32 offset) -{ - WARN_ON_ONCE(1); - return 0; -} - -static inline void coresight_write32(struct coresight_device *csdev, u32 val, u32 offset) -{ -} - -static inline void coresight_relaxed_write32(struct coresight_device *csdev, - u32 val, u32 offset) -{ -} - -static inline u64 coresight_relaxed_read64(struct coresight_device *csdev, - u32 offset) -{ - WARN_ON_ONCE(1); - return 0; -} - -static inline u64 coresight_read64(struct coresight_device *csdev, u32 offset) -{ - WARN_ON_ONCE(1); - return 0; -} - -static inline void coresight_relaxed_write64(struct coresight_device *csdev, - u64 val, u32 offset) -{ -} - -static inline void coresight_write64(struct coresight_device *csdev, u64 val, u32 offset) -{ -} - -#endif /* IS_ENABLED(CONFIG_CORESIGHT) */ - extern int coresight_get_cpu(struct device *dev); struct coresight_platform_data *coresight_get_platform_data(struct device *dev); -- 2.34.1