summaryrefslogtreecommitdiffstats
path: root/spl_config.h.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-03-13 13:38:43 -0700
committerBrian Behlendorf <[email protected]>2009-03-13 13:38:43 -0700
commit8123ac4f0d7409cae209858d01803fb2744b51b6 (patch)
tree7e2c28b3215d47eff289fcd309a62224427621fb /spl_config.h.in
parenta0b5ae8acaaf63fa2378a6d062e66fdf99387625 (diff)
Added SPL_AC_5ARGS_DEVICE_CREATE autoconf configure check
As of 2.6.27 kernels the device_create() API changed to include a private data argument. This check detects which version of device_create() function the kernel has and properly defines spl_device_create() to use the correct prototype.
Diffstat (limited to 'spl_config.h.in')
-rw-r--r--spl_config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in
index 931539c81..f2895054d 100644
--- a/spl_config.h.in
+++ b/spl_config.h.in
@@ -21,6 +21,9 @@
/* on_each_cpu wants 3 args */
#undef HAVE_3ARGS_ON_EACH_CPU
+/* device_create wants 5 args */
+#undef HAVE_5ARGS_DEVICE_CREATE
+
/* kernel defines atomic64_t */
#undef HAVE_ATOMIC64_T