[Devel] [PATCH rh7 2/4] ve: zap legacy_name_to_veid
Vladimir Davydov
vdavydov at parallels.com
Sun May 31 06:23:11 PDT 2015
This function is not used anywhere.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
include/linux/ve_proto.h | 1 -
kernel/ve/ve.c | 13 -------------
2 files changed, 14 deletions(-)
diff --git a/include/linux/ve_proto.h b/include/linux/ve_proto.h
index 3206dd847fd6..7da0c657a663 100644
--- a/include/linux/ve_proto.h
+++ b/include/linux/ve_proto.h
@@ -38,7 +38,6 @@ static inline bool ve_is_super(struct ve_struct *ve)
const char *ve_name(struct ve_struct *ve);
void legacy_veid_to_name(envid_t veid, char *name);
-int legacy_name_to_veid(const char *name, envid_t *veid);
/* must be called under rcu_read_lock if task != current */
const char *task_ve_name(struct task_struct *task);
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 77eff94963a5..8f572611773e 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -197,19 +197,6 @@ int ve_cgroup_remove(struct cgroup *root, envid_t veid)
}
EXPORT_SYMBOL(ve_cgroup_remove);
-int legacy_name_to_veid(const char *name, envid_t *veid)
-{
- envid_t tmp;
-
- if (sscanf(name, "%d", &tmp) == 1) {
- *veid = tmp;
- return 0;
- } else {
- return -1;
- }
-}
-EXPORT_SYMBOL(legacy_name_to_veid);
-
/* under rcu_read_lock if task != current */
const char *task_ve_name(struct task_struct *task)
{
--
2.1.4
More information about the Devel
mailing list