]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Fix incorrect krw_type_t type
authorBrian Behlendorf <behlendo@myhost.(none)>
Tue, 9 Nov 2010 05:32:47 +0000 (21:32 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Nov 2010 18:18:01 +0000 (10:18 -0800)
Flagged by the default compile options on archlinux 2010.05, we should
be using the krw_t type not the krw_type_t type in the private data.

  module/splat/splat-rwlock.c: In function ‘splat_rwlock_test4_func’:
  module/splat/splat-rwlock.c:432:6: warning: case value ‘1’ not in
  enumerated type ‘krw_type_t’

module/splat/splat-rwlock.c

index dc560c2b9ccdbad58124fa54cba59b633b17cd06..2b9dee939e79c2f2cf1b30d8447c7f994d6c04b0 100644 (file)
@@ -73,7 +73,7 @@ typedef struct rw_priv {
        int rw_waiters;
        int rw_release;
        int rw_rc;
-       krw_type_t rw_type;
+       krw_t rw_type;
 } rw_priv_t;
 
 typedef struct rw_thr {