summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-07-26 10:24:26 -0700
committerBrian Behlendorf <[email protected]>2010-07-26 10:24:26 -0700
commit849c50e7f2487dd3f1dce1417e51dff3a12338d6 (patch)
tree3ce4f2c2eb0edda59c3efeae2cd524ae19fab396 /module
parent8b0eb3f0dcf293467ddfd4b0f0d7e757f2369452 (diff)
Fix two minor compiler warnings
In cmd/splat.c there was a comparison between an __u32 and an int. To resolve the issue simply use a __u32 and strtoul() when converting the provided user string. In module/spl/spl-vnode.c we should explicitly cast nd->last.name to a const char * which is what is expected by the prototype.
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-vnode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
index 9bfead8cf..dd759bf7f 100644
--- a/module/spl/spl-vnode.c
+++ b/module/spl/spl-vnode.c
@@ -257,7 +257,8 @@ EXPORT_SYMBOL(vn_seek);
static struct dentry *
vn_lookup_hash(struct nameidata *nd)
{
- return lookup_one_len(nd->last.name, nd->nd_dentry, nd->last.len);
+ return lookup_one_len((const char *)nd->last.name,
+ nd->nd_dentry, nd->last.len);
} /* lookup_hash() */
static void