Whamcloud - gitweb
LU-5275 lprocfs: reduce scope of params_tree.h 25/13225/3
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 31 Dec 2014 17:38:14 +0000 (11:38 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Jan 2015 04:39:47 +0000 (04:39 +0000)
commitf9920b4924edce1bd341622eee4281fdcd41845a
tree474d348dddca18647588c77bea0c01a562f4c023
parent392fb6e4b8c471b387b6dfb6a802a88949cd9d89
LU-5275 lprocfs: reduce scope of params_tree.h

Only include libcfs/params_tree.h for kernel builds. Eliminate the
include cycle between libcfs.h and params_tree.h. Remove nonsensical
stub definitions for struct file, struct inode, and others. Remove
several uses of PDE() by modifying LPROCFS_ENTRY_CHECK() to accept a
struct inode * rather than a struct proc_dir_entry *. Correct several
nop uses of LPROCFS_ENTRY_CHECK().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib70575b05366565c95c1db857023c5481325308a
Reviewed-on: http://review.whamcloud.com/13225
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/params_tree.h
lnet/klnds/gnilnd/gnilnd_proc.c
lustre/fid/lproc_fid.c
lustre/fld/lproc_fld.c
lustre/include/lprocfs_status.h
lustre/lov/lproc_lov.c
lustre/obdclass/lprocfs_jobstats.c
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/quota/lproc_quota.c