diff options
author | Brian Behlendorf <[email protected]> | 2010-03-04 12:14:56 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-03-04 12:14:56 -0800 |
commit | 3977f8370f8caf57600deff6795894410f0e715e (patch) | |
tree | e03e58e08aa6e97cbeeb6e9c7fd2ce6ae510eb82 /include/sys | |
parent | 694921bc49b3267b3fc0bc3a9e753fbc206e1a61 (diff) |
Linux 2.6.32 compat, proc_handler() API change
As of linux-2.6.32 the 'struct file *filp' argument was dropped from
the proc_handle() prototype. It was apparently unused _almost_
everywhere in the kernel and this was simply cleanup.
I've added a new SPL_AC_5ARGS_PROC_HANDLER autoconf check for this and
the proper compat macros to correctly define the prototypes and some
helper functions. It's not pretty but API compat changes rarely are.
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/types.h b/include/sys/types.h index 89cf115c0..407a1b0c5 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -19,6 +19,7 @@ extern "C" { #include <linux/kallsyms_compat.h> #include <linux/mutex_compat.h> #include <linux/module_compat.h> +#include <linux/sysctl_compat.h> #ifndef HAVE_UINTPTR_T typedef unsigned long uintptr_t; |