From f178c152567ce8b43cba7fb83f42a2b5466be7c0 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 15 Jul 2008 18:00:19 +0000 Subject: [PATCH] Fix the following sparse warnings in several locations: /scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40: warning: incorrect type in argument 2 (different address spaces) /scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40: expected char const *buf /scst/trunk/scst/src/dev_handlers/scst_dev_handler.h:54:40: got char const [noderef] *buf Signed-off-by: Dotan Barak git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@463 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 2 +- scst/src/scst_proc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {