zfs/config
Brian Behlendorf dd3678fc29 Fix atomic64_* autoconf checks
The SPL_AC_ATOMIC_SPINLOCK, SPL_AC_TYPE_ATOMIC64_CMPXCHG, and
SPL_AC_TYPE_ATOMIC64_XCHG were all directly including the
'asm/atomic.h' header.  As of Linux 3.4 this header was removed
which results in a build failure.

The right thing to do is include 'linux/atomic.h' however we
can't safely do this because it doesn't exist in 2.6.26 kernels.
Therefore, we include 'linux/fs.h' which in turn includes the
correct atomic header regardless of the kernel version.

When these incorrect APIs are used in ZFS the following build
failure results.

  arc.c:791:80: warning: '__ret' may be used uninitialized
  in this function [-Wuninitialized]
  arc.c:791:1875: error: call to '__cmpxchg_wrong_size'
  declared with attribute error: Bad argument size for cmpxchg

Since this is all Linux 2.6.24 compatibility code there's
an argument to be made that it should be removed because
kernels this old are not supported.  However, because we're
so close to a release I'm going to leave it in place for now.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes zfsonlinux/zfs#814
Closes zfsonlinux/zfs#1254
2013-02-05 10:05:46 -08:00
..
.gitignore Remove autotools products 2012-08-27 11:46:23 -07:00
Rules.am Support custom build directories 2010-09-05 21:49:05 -07:00
arch.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00
config.awk Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
deb.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00
rpm.am Support building a spl-modules-dkms sub package 2012-08-08 13:49:40 -07:00
spl-build.m4 Fix atomic64_* autoconf checks 2013-02-05 10:05:46 -08:00
spl-meta.m4 Public Release Prep 2010-05-17 15:18:00 -07:00
tgz.am Don't build packages that haven't been selected. 2012-07-26 14:54:32 -07:00