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
This commit is contained in:
parent
ca5187056b
commit
9409417d1e
4
inode.c
4
inode.c
@ -6,6 +6,7 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/pagemap.h>
|
#include <linux/pagemap.h>
|
||||||
|
#include <linux/slab.h>
|
||||||
|
|
||||||
#include "fpgafs.h"
|
#include "fpgafs.h"
|
||||||
|
|
||||||
@ -279,11 +280,8 @@ static void fpgafs_init_once(void *p, struct kmem_cache * cachep,
|
|||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
{
|
{
|
||||||
struct fpgafs_inode_info *fsi = p;
|
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 ... */
|
/* init exit functions ... */
|
||||||
int __init fpgafs_init(void)
|
int __init fpgafs_init(void)
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
static char src[] = { 0x12, 0x34, 0x56, 0x78, 0x90};
|
static unsigned char src[] = { 0x12, 0x34, 0x56, 0x78, 0x90};
|
||||||
static char des[] = { 0x0, 0x0, 0x0, 0x0, 0x0};
|
static unsigned char des[] = { 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LOAD WRITE/READ TEST
|
* LOAD WRITE/READ TEST
|
||||||
|
Loading…
Reference in New Issue
Block a user