From: Jeff Mahoney Subject: kdb: Build fixes Patch-mainline: not yet, whenever KDB is upstream The includes as provided don't work when building out-of-tree, as we do while packaging. Also, struct file->f_count is an atomic_long_t. Signed-off-by: Jeff Mahoney --- kdb/modules/kdbm_vm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- a/kdb/modules/kdbm_vm.c +++ b/kdb/modules/kdbm_vm.c @@ -16,7 +16,9 @@ #include #include -#include +#include +#include +#include #include #include @@ -749,9 +751,8 @@ kdbm_filp(int argc, const char **argv) kdb_printf(" f_dentry = 0x%p f_vfsmnt = 0x%p f_op = 0x%p\n", f.f_dentry, f.f_vfsmnt, f.f_op); - kdb_printf(" f_count = " kdb_f_count_fmt - " f_flags = 0x%x f_mode = 0x%x\n", - atomic_long_read(&f.f_count), f.f_flags, f.f_mode); + kdb_printf(" f_count = %ld f_flags = 0x%x f_mode = 0x%x\n", + f.f_count, f.f_flags, f.f_mode); kdb_printf(" f_pos = %Ld\n", f.f_pos); #ifdef CONFIG_SECURITY