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
					
				
							
								
								
									
										6
									
								
								inode.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								inode.c
									
									
									
									
									
								
							@ -6,6 +6,7 @@
 | 
			
		||||
#include <linux/init.h>
 | 
			
		||||
#include <linux/fs.h>
 | 
			
		||||
#include <linux/pagemap.h>
 | 
			
		||||
#include <linux/slab.h>
 | 
			
		||||
 | 
			
		||||
#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 ... */
 | 
			
		||||
 | 
			
		||||
@ -5,8 +5,8 @@
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
#include <errno.h>
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user