Whamcloud - gitweb
LU-4287 autoconf: Improve test for proc write and read functions 82/8482/6
authorJames Simmons <uja.ornl@gmail.com>
Fri, 6 Dec 2013 16:18:46 +0000 (11:18 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 16 Dec 2013 03:17:49 +0000 (03:17 +0000)
commit1e60ce443bdb4d1211758b0e53aea597bbdbc22d
tree53c20b9e046d0d1fcf68910d1c2c2cd3c1f9580f
parentb4d3116f44b6613a65ed259bf2f41c1eb41e2ba4
LU-4287 autoconf: Improve test for proc write and read functions

For newer kernels the proc api has changed to using only
seq_files. To detect this I tested the presence of PDE_DATA
to determine if it was a newer kernel. Now in RHEL6.5 this
macro has been backported but the rest of the changes have
not so it has broken the build. This patch moves from
testing PDE_DATA to testing if you can call write_proc_t
in struct proc_dir_entry. In newer kernels that function
is missing.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I96d21ae5f055d5077da69acdcc4948ec160dd63a
Reviewed-on: http://review.whamcloud.com/8482
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/autoconf/lustre-core.m4