mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs-create-and-use-seq_show_option-for-escaping-fix2
@ 2015-08-11 23:04 Kees Cook
  0 siblings, 0 replies; only message in thread
From: Kees Cook @ 2015-08-11 23:04 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

The buildbots noticed seq_show_option should be using const parameters.

Signed-off-by: Kees Cook <keescook@chromium.org>
---
 include/linux/seq_file.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
index ff4c631348dd..d4c7271382cb 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
@@ -155,7 +155,8 @@ static inline struct user_namespace *seq_user_ns(struct seq_file *seq)
  * @name: the mount option name
  * @value: the mount option name's value, can be NULL
  */
-static inline void seq_show_option(struct seq_file *m, char *name, char *value)
+static inline void seq_show_option(struct seq_file *m, const char *name,
+				   const char *value)
 {
 	seq_putc(m, ',');
 	seq_escape(m, name, ",= \t\n\\");
-- 
1.9.1


-- 
Kees Cook
Chrome OS Security

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-11 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-11 23:04 [PATCH] fs-create-and-use-seq_show_option-for-escaping-fix2 Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®