mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
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:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user