From b9383da97cdfc94c2da3ebfcfdbf18f422687749 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 26 May 2015 09:07:18 +0200 Subject: [PATCH] infra: remove unwanted rmdir() --- kernel/sy_old/sy_generic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/sy_old/sy_generic.c b/kernel/sy_old/sy_generic.c index e9285f85..a55376e0 100644 --- a/kernel/sy_old/sy_generic.c +++ b/kernel/sy_old/sy_generic.c @@ -240,6 +240,7 @@ EXPORT_SYMBOL_GPL(mars_mkdir); int mars_rmdir(const char *path) { +#ifdef HAS_MARS_PREPATCH mm_segment_t oldfs; int status; @@ -249,6 +250,9 @@ int mars_rmdir(const char *path) set_fs(oldfs); return status; +#else + return -ENOSYS; +#endif } EXPORT_SYMBOL_GPL(mars_rmdir);