[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1567712673-1629-4-git-send-email-bfields@redhat.com>
Date: Thu, 5 Sep 2019 15:44:28 -0400
From: "J. Bruce Fields" <bfields@...hat.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>,
"J. Bruce Fields" <bfields@...hat.com>
Subject: [PATCH 4/9] Remove unused string_escape_*_any_np
From: "J. Bruce Fields" <bfields@...hat.com>
These aren't called anywhere.
Signed-off-by: J. Bruce Fields <bfields@...hat.com>
---
include/linux/string_helpers.h | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h
index c28955132234..8a299a29b767 100644
--- a/include/linux/string_helpers.h
+++ b/include/linux/string_helpers.h
@@ -56,25 +56,12 @@ int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz,
int string_escape_mem_ascii(const char *src, size_t isz, char *dst,
size_t osz);
-
-static inline int string_escape_mem_any_np(const char *src, size_t isz,
- char *dst, size_t osz, const char *only)
-{
- return string_escape_mem(src, isz, dst, osz, ESCAPE_ANY_NP, only);
-}
-
static inline int string_escape_str(const char *src, char *dst, size_t sz,
unsigned int flags, const char *only)
{
return string_escape_mem(src, strlen(src), dst, sz, flags, only);
}
-static inline int string_escape_str_any_np(const char *src, char *dst,
- size_t sz, const char *only)
-{
- return string_escape_str(src, dst, sz, ESCAPE_ANY_NP, only);
-}
-
char *kstrdup_quotable(const char *src, gfp_t gfp);
char *kstrdup_quotable_cmdline(struct task_struct *task, gfp_t gfp);
char *kstrdup_quotable_file(struct file *file, gfp_t gfp);
--
2.21.0
Powered by blists - more mailing lists