From 9409417d1e2f9345cb846ea4b42e6d638b1693e5 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 18 Jul 2007 18:12:10 +0000 Subject: [PATCH] use unsigned instead of signed, slab defines was removed in 2.6.22 git-svn-id: svn+ssh://en.codiert.org/home/staff/ben/dev/misc.svn/projects/fpgafs@365 766a2236-cff9-0310-b0c0-a81a5f92509a --- inode.c | 6 ++---- test/load_rw.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/inode.c b/inode.c index afbccc3..a731dec 100644 --- a/inode.c +++ b/inode.c @@ -6,6 +6,7 @@ #include #include #include +#include #include "fpgafs.h" @@ -279,10 +280,7 @@ static void fpgafs_init_once(void *p, struct kmem_cache * cachep, unsigned long flags) { struct fpgafs_inode_info *fsi = p; - if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == - SLAB_CTOR_CONSTRUCTOR) { - inode_init_once(&fsi->vfs_inode); - } + inode_init_once(&fsi->vfs_inode); } /* init exit functions ... */ diff --git a/test/load_rw.c b/test/load_rw.c index a9bfa0a..7ef6821 100644 --- a/test/load_rw.c +++ b/test/load_rw.c @@ -5,8 +5,8 @@ #include #include -static char src[] = { 0x12, 0x34, 0x56, 0x78, 0x90}; -static char des[] = { 0x0, 0x0, 0x0, 0x0, 0x0}; +static unsigned char src[] = { 0x12, 0x34, 0x56, 0x78, 0x90}; +static unsigned char des[] = { 0x0, 0x0, 0x0, 0x0, 0x0}; /* * LOAD WRITE/READ TEST