]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Linux 2.6.32 compat, proc_handler() API change
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Mar 2010 20:14:56 +0000 (12:14 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Mar 2010 20:14:56 +0000 (12:14 -0800)
commit3977f8370f8caf57600deff6795894410f0e715e
treee03e58e08aa6e97cbeeb6e9c7fd2ce6ae510eb82
parent694921bc49b3267b3fc0bc3a9e753fbc206e1a61
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.
config/spl-build.m4
configure
include/linux/sysctl_compat.h [new file with mode: 0644]
include/sys/types.h
module/spl/spl-proc.c
spl_config.h.in