qubes-linux-kernel/patches.suse/kdb-build-fixes

38 lines
1.1 KiB
Plaintext
Raw Normal View History

From: Jeff Mahoney <jeffm@suse.com>
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 <jeffm@suse.com>
---
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 <linux/swapops.h>
#include <linux/slab.h>
-#include <scsi.h>
+#include <scsi/scsi.h>
+#include <scsi/scsi_cmnd.h>
+#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <asm/pgtable.h>
@@ -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