diff --git a/scst/include/scst.h b/scst/include/scst.h index a129a1434..d94c6e4bb 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -2548,7 +2548,7 @@ struct scst_proc_log { int scst_proc_log_entry_read(struct seq_file *seq, unsigned long log_level, const struct scst_proc_log *tbl); -int scst_proc_log_entry_write(struct file *file, const char *buf, +int scst_proc_log_entry_write(struct file *file, const char __user *buf, unsigned long length, unsigned long *log_level, unsigned long default_level, const struct scst_proc_log *tbl); diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index 2ce18964f..076b901f4 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -206,7 +206,7 @@ static int strncasecmp(const char *s1, const char *s2, size_t n) static DEFINE_MUTEX(scst_log_mutex); -int scst_proc_log_entry_write(struct file *file, const char *buf, +int scst_proc_log_entry_write(struct file *file, const char __user *buf, unsigned long length, unsigned long *log_level, unsigned long default_level, const struct scst_proc_log *tbl) {