Skip to content

Commit 3417200

Browse files
James-A-ClarkSuzuki K Poulose
authored andcommitted
coresight: Remove unused ETM Perf stubs
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 <[email protected]> Reviewed-by: Mike Leach <[email protected]> Signed-off-by: James Clark <[email protected]> Tested-by: Leo Yan <[email protected]> Tested-by: Ganapatrao Kulkarni <[email protected]> Signed-off-by: James Clark <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c58dc5a commit 3417200

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

drivers/hwtracing/coresight/coresight-etm-perf.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ struct etm_event_data {
6262
struct list_head * __percpu *path;
6363
};
6464

65-
#if IS_ENABLED(CONFIG_CORESIGHT)
6665
int etm_perf_symlink(struct coresight_device *csdev, bool link);
6766
int etm_perf_add_symlink_sink(struct coresight_device *csdev);
6867
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)
7776
int etm_perf_add_symlink_cscfg(struct device *dev,
7877
struct cscfg_config_desc *config_desc);
7978
void etm_perf_del_symlink_cscfg(struct cscfg_config_desc *config_desc);
80-
#else
81-
static inline int etm_perf_symlink(struct coresight_device *csdev, bool link)
82-
{ return -EINVAL; }
83-
int etm_perf_add_symlink_sink(struct coresight_device *csdev)
84-
{ return -EINVAL; }
85-
void etm_perf_del_symlink_sink(struct coresight_device *csdev) {}
86-
static inline void *etm_perf_sink_config(struct perf_output_handle *handle)
87-
{
88-
return NULL;
89-
}
90-
int etm_perf_add_symlink_cscfg(struct device *dev,
91-
struct cscfg_config_desc *config_desc)
92-
{ return -EINVAL; }
93-
void etm_perf_del_symlink_cscfg(struct cscfg_config_desc *config_desc) {}
94-
95-
#endif /* CONFIG_CORESIGHT */
96-
9779
int __init etm_perf_init(void);
9880
void etm_perf_exit(void);
9981

0 commit comments

Comments
 (0)