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] <asn:1>*buf

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-07-15 18:00:19 +00:00
parent dbfc32aaa0
commit f178c15256
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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)
{