]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Linux 3.2 compat: rw_semaphore.wait_lock is raw
authorDarik Horn <dajhorn@vanadac.com>
Wed, 11 Jan 2012 17:44:34 +0000 (11:44 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Jan 2012 00:28:05 +0000 (16:28 -0800)
commit588d900433b03e33e4bbbfee7309bd15f71148fb
treef5176c56eb87832d869e9092a710e7d74980d6f7
parent5f6c14b1eda9c7b47d11a3b90e78dea6a7f429e0
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 <behlendorf1@llnl.gov>
Closes: #76
Closes: zfsonlinux/zfs#463
config/spl-build.m4
configure
include/linux/rwsem_compat.h
include/sys/rwlock.h
spl_config.h.in