aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDarik Horn <[email protected]>2012-01-11 11:44:34 -0600
committerBrian Behlendorf <[email protected]>2012-01-11 16:28:05 -0800
commit588d900433b03e33e4bbbfee7309bd15f71148fb (patch)
treef5176c56eb87832d869e9092a710e7d74980d6f7 /lib
parent5f6c14b1eda9c7b47d11a3b90e78dea6a7f429e0 (diff)
Linux 3.2 compat: rw_semaphore.wait_lock is raw
The wait_lock member of the rw_semaphore struct became a raw_spinlock_t in Linux 3.2 at torvalds/linux@ddb6c9b58a19edcfac93ac670b066c836ff729f1. Wrap spin_lock_* function calls in a new spl_rwsem_* interface to ensure type safety if raw_spinlock_t becomes architecture specific, and to satisfy these compiler warnings: warning: passing argument 1 of ‘spinlock_check’ from incompatible pointer type [enabled by default] note: expected ‘struct spinlock_t *’ but argument is of type ‘struct raw_spinlock_t *’ Signed-off-by: Brian Behlendorf <[email protected]> Closes: #76 Closes: zfsonlinux/zfs#463
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions