]> git.proxmox.com Git - mirror_spl.git/commit - include/linux/compiler_compat.h
Fix compilation error due to undefined ACCESS_ONCE macro.
authorRicardo M. Correia <ricardo.correia@oracle.com>
Tue, 20 Jul 2010 20:47:37 +0000 (13:47 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Jul 2010 20:47:52 +0000 (13:47 -0700)
commit22cd0f19b170394ac98ca3984e8f5b119fa32c7e
tree9a5e01e21799216e2f47be328cdd845c5ad5e2e1
parentb17edc10a9c66543bef54b08e4655832aefe8939
Fix compilation error due to undefined ACCESS_ONCE macro.

When CONFIG_DEBUG_MUTEXES is turned on in RHEL5's kernel config, the mutexes
store the owner for debugging purposes, therefore the SPL will enable
HAVE_MUTEX_OWNER. However, the SPL code uses ACCESS_ONCE() to access the
owner, and this macro is not defined in the RHEL5 kernel, therefore we define it
ourselves in include/linux/compiler_compat.h.

Signed-off-by: Ricardo M. Correia <ricardo.correia@oracle.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/linux/compiler_compat.h [new file with mode: 0644]
include/sys/mutex.h