aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2018-05-14 14:32:37 -0600
committerMathieu Poirier <mathieu.poirier@linaro.org>2018-05-17 09:35:36 -0600
commitec1df1673899a60a1447b7ce23eae1d424ef4438 (patch)
tree5076bbac5ac475d284b55722f624b6d3bf799b58
parent606fee928ec35ac57e2e1a339f7cf269461d2619 (diff)
downloadcoresight-next.tar.gz
coresight: Remove function coresight_vpid_to_pid()next
Now that we prevent users from using contextID tracing when PID namespaces are involved there is no client for function coresight_vpid_to_pid(). As such simply remove it. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Kim Phillips <kim.phillips@arm.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r--include/linux/coresight.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index c265e04..e5421b8 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -267,24 +267,4 @@ static inline struct coresight_platform_data *of_get_coresight_platform_data(
struct device *dev, const struct device_node *node) { return NULL; }
#endif
-#ifdef CONFIG_PID_NS
-static inline unsigned long
-coresight_vpid_to_pid(unsigned long vpid)
-{
- struct task_struct *task = NULL;
- unsigned long pid = 0;
-
- rcu_read_lock();
- task = find_task_by_vpid(vpid);
- if (task)
- pid = task_pid_nr(task);
- rcu_read_unlock();
-
- return pid;
-}
-#else
-static inline unsigned long
-coresight_vpid_to_pid(unsigned long vpid) { return vpid; }
-#endif
-
#endif