Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4748895rdb; Tue, 12 Dec 2023 08:16:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0BW3d+3j+f9ZZfQ9eVOcSyQF9oG40udw/5lqu65XGb25d3pMwyS9C/bIj7ajklxcXevT8 X-Received: by 2002:a17:90a:898c:b0:28a:325d:1ed3 with SMTP id v12-20020a17090a898c00b0028a325d1ed3mr3097881pjn.2.1702397811197; Tue, 12 Dec 2023 08:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702397811; cv=none; d=google.com; s=arc-20160816; b=U2Tsonnl62D2asf4XZeuD8cso1b7GuNQUDvLAQv5e7c5M6IsvBieM8lSz2oB4Db6xD WfFAHQCxBNarReiMFxyvDUz1IoJxEaN+sGFGRnxU/EpfTmW1Kq765LJaDPaBgdHsTZK3 Ou1OFtzubl/j0WWCCOxnK4oKADEU8Ol/zufUjQs2m0z3QJFyUfKDNy0MG3AVx9Cx9puJ 0XfUv4bkds3wBhO+lzvNG6zAn3FCR4brUYDYTVq+uzz1kQZ+b2/45rlHi2RTm8NYXc7u MyGAKX5xRzXL9aU7OFPDK+pnR1rfVrNMfq/vxzxao71aIixP0eIOuyAIz4gxp0H3dcxT eRRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0GOIsOGAVMepLXJg/MkpFqGD8UsUEW83RneyWe9Mzd4=; fh=L0mtDxzbexvY93/TXVDPqRiMSUezBOF86XyL0RxKhcM=; b=Vu+7WNP53b8EtYQy8jJFBh5M8UammiGe7eoC3tNpTUqm95T3m1dO3ZdDPkv8ixmqvv T52pqbnh65nTJmNy6rDFPwOeGATDzr54hAlWjO4M0wbStYghSfZ0WchywrhLwIF8QLgV kAAQRHS8ipkGWZ/QwAPOosBhiS2gLgw555ufWIQoEvhXzAqvDLnV8ZV2HDGYgeg6wQ3M 7jvsFUY3aPWb4E2Z99cMRnI+JQLRyfw8TaK89wpPn9DzFRTriuI17o3mfg5GwNhkldqw /vHpctTfHUCcS0s9xyW7rSfndP7AJUMAzGcxzksgBl+V4RoonbltCaYSyq0XBBmQo0NY kZOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id iq6-20020a17090afb4600b0028ad3d8ef8csi327667pjb.44.2023.12.12.08.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 08:16:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8EA8380A30FF; Tue, 12 Dec 2023 08:16:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376879AbjLLP41 (ORCPT + 99 others); Tue, 12 Dec 2023 10:56:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235226AbjLLPzn (ORCPT ); Tue, 12 Dec 2023 10:55:43 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 42E5CD7F for ; Tue, 12 Dec 2023 07:55:37 -0800 (PST) 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 37A2B1516; Tue, 12 Dec 2023 07:56:23 -0800 (PST) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 62DE23F738; Tue, 12 Dec 2023 07:55:35 -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 8/8] coresight: Remove unused stubs Date: Tue, 12 Dec 2023 15:54:05 +0000 Message-Id: <20231212155407.1429121-9-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231212155407.1429121-1-james.clark@arm.com> References: <20231212155407.1429121-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 08:16:49 -0800 (PST) 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