]> git.proxmox.com Git - mirror_spl-debian.git/commit
Linux compat 3.7.1, on_each_cpu()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Jan 2013 22:09:09 +0000 (14:09 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Jan 2013 18:28:28 +0000 (10:28 -0800)
commit050cd84e628e5d827a0b345cda12b97253fccd37
tree9c8faf1a9e073da94ea8b6d024d5dd9e7a92c24a
parent1c7b3eaf87492e875d7ad05f183e98fa306e48c2
Linux compat 3.7.1, on_each_cpu()

Some kernels require that we include the 'linux/irqflags.h'
header for the SPL_AC_3ARGS_ON_EACH_CPU check.  Otherwise,
the functions local_irq_enable()/local_irq_disable() will not
be defined and the prototype will be misdetected as the four
argument version.

This change actually include 'linux/interrupt.h' which in turn
includes 'linux/irqflags.h' to be as generic as possible.

Additionally, passing NULL as the function can result in a
gcc error because the on_each_cpu() macro executes it
unconditionally.  To make the test more robust we pass the
dummy function on_each_cpu_func().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #204
config/spl-build.m4