Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9120358ybl; Fri, 17 Jan 2020 06:41:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzhJATg1oEvIfexfMAAbY76g9bFeN+HDeA8aEBeCKg7sUP01PTL+7sf2H5SxvPeHHiNE35F X-Received: by 2002:a05:6830:1515:: with SMTP id k21mr5992144otp.177.1579272077443; Fri, 17 Jan 2020 06:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579272077; cv=none; d=google.com; s=arc-20160816; b=M+f5OdwhpeObLqAp3hmsejQgKOr4yNxYoPHs6/BUtWDyoo36zI5hgWh1D/hcBotyhZ uoDJYM2lHzj0G8qUS7fDBNT5KfL/g/JelpsqAkWErOqXqGDP41fL7C4P7x+qr9ZEEpKK uPa2TvBXe0VMfzwQ7s6aaOBl6XQ+AAR7cClc9yNkYPDRa70O8AXEWS74MoAfEDClvkXc NmP3nl2kCa6eCi8rdo49NTQNjGkWE20l6rLWW0ECvTa8avByIcwbyll1T1cRvPD7lsyf K14l1nFJGMQevdB4cp8c1gmamEHDVFJ8HfTVsR/f41zbif0eBWfyJtzFAgoKcnYoV2d5 Ueow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=QuOyA4YHwVQQdMDnCjHWG8S7RX13qFyAm5Ke7D9wU44=; b=DlpSOvH2dfa1qjld0PrKwnDdWOp29njOj39buzbY59N1ssDkQ0algcNrwDd17IsbC/ jSH2zK78pjdPs427cWrmnDJihwtssL6UhWZYARLMVpXQx9+tjmXnvxVqQRvP6htQ7NO9 +t7XUPz2o8MHQt478Zykz17Y5Cv4t7trRO+hQfE/L9gEvW4RbYy0ieCRTlbeov2ACxEf 53tQ7iWzk1+6ZsB/Qp/eEi/LMXT7HQH7YVA4Y0yrCD+Gf7Bu/CL2L9kxrB6YBIeRtu+S RDX1U6XORluKb9E/J5+9NvAkyJE8UZej5dLUds5T9kGvNctna4UJSyslx9iZdefHuceH kNdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v145si13317042oia.68.2020.01.17.06.41.05; Fri, 17 Jan 2020 06:41:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729248AbgAQOjo (ORCPT + 99 others); Fri, 17 Jan 2020 09:39:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:57548 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbgAQOjH (ORCPT ); Fri, 17 Jan 2020 09:39:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9B03AAD05; Fri, 17 Jan 2020 14:39:05 +0000 (UTC) From: Mian Yousaf Kaukab To: linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org Cc: linux-kernel@vger.kernel.org, paul.gortmaker@windriver.com, suzuki.poulose@arm.com, alexander.shishkin@linux.intel.com, Mian Yousaf Kaukab Subject: [PATCH RFC 09/15] coresight: etm-perf: remove unnecessary configuration check Date: Fri, 17 Jan 2020 15:40:04 +0100 Message-Id: <20200117144010.11149-10-ykaukab@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200117144010.11149-1-ykaukab@suse.de> References: <20200117144010.11149-1-ykaukab@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org etm-perf API is internal. No need to check CONFIG_CORESIGHT and export empty functions. Signed-off-by: Mian Yousaf Kaukab --- drivers/hwtracing/coresight/coresight-etm-perf.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.h b/drivers/hwtracing/coresight/coresight-etm-perf.h index 4b1c1f55fb46..adc408dace8e 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.h +++ b/drivers/hwtracing/coresight/coresight-etm-perf.h @@ -57,7 +57,6 @@ struct etm_event_data { struct list_head * __percpu *path; }; -#ifdef 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); @@ -69,18 +68,6 @@ static inline void *etm_perf_sink_config(struct perf_output_handle *handle) return data->snk_config; return NULL; } -#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; -} - -#endif /* CONFIG_CORESIGHT */ int __init etm_perf_init(void); -- 2.16.4