Commit 4f101b23 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: 2.6.11 updates

This patch makes some small changes that parallel changes in 2.6.11:
	The csum buffers are now unsigned char.
	Got rid of an unused define from pgtable-2level.h.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bf9f5763
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "linux/in6.h" #include "linux/in6.h"
#include "asm/uaccess.h" #include "asm/uaccess.h"
extern unsigned int csum_partial_copy_from(const char *src, char *dst, int len, extern unsigned int csum_partial_copy_from(const unsigned char *src, unsigned char *dst, int len,
int sum, int *err_ptr); int sum, int *err_ptr);
extern unsigned csum_partial(const unsigned char *buff, unsigned len, extern unsigned csum_partial(const unsigned char *buff, unsigned len,
unsigned sum); unsigned sum);
...@@ -23,7 +23,7 @@ extern unsigned csum_partial(const unsigned char *buff, unsigned len, ...@@ -23,7 +23,7 @@ extern unsigned csum_partial(const unsigned char *buff, unsigned len,
*/ */
static __inline__ static __inline__
unsigned int csum_partial_copy_nocheck(const char *src, char *dst, unsigned int csum_partial_copy_nocheck(const unsigned char *src, unsigned char *dst,
int len, int sum) int len, int sum)
{ {
memcpy(dst, src, len); memcpy(dst, src, len);
...@@ -31,7 +31,7 @@ unsigned int csum_partial_copy_nocheck(const char *src, char *dst, ...@@ -31,7 +31,7 @@ unsigned int csum_partial_copy_nocheck(const char *src, char *dst,
} }
static __inline__ static __inline__
unsigned int csum_partial_copy_from_user(const char *src, char *dst, unsigned int csum_partial_copy_from_user(const unsigned char *src, unsigned char *dst,
int len, int sum, int *err_ptr) int len, int sum, int *err_ptr)
{ {
return csum_partial_copy_from(src, dst, len, sum, err_ptr); return csum_partial_copy_from(src, dst, len, sum, err_ptr);
......
...@@ -11,8 +11,9 @@ unsigned int csum_partial(unsigned char *buff, int len, int sum) ...@@ -11,8 +11,9 @@ unsigned int csum_partial(unsigned char *buff, int len, int sum)
EXPORT_SYMBOL(csum_partial); EXPORT_SYMBOL(csum_partial);
unsigned int csum_partial_copy_to(const unsigned char *src, char __user *dst, unsigned int csum_partial_copy_to(const unsigned char *src,
int len, int sum, int *err_ptr) unsigned char __user *dst, int len, int sum,
int *err_ptr)
{ {
if(copy_to_user(dst, src, len)){ if(copy_to_user(dst, src, len)){
*err_ptr = -EFAULT; *err_ptr = -EFAULT;
...@@ -22,8 +23,9 @@ unsigned int csum_partial_copy_to(const unsigned char *src, char __user *dst, ...@@ -22,8 +23,9 @@ unsigned int csum_partial_copy_to(const unsigned char *src, char __user *dst,
return(arch_csum_partial(src, len, sum)); return(arch_csum_partial(src, len, sum));
} }
unsigned int csum_partial_copy_from(const unsigned char __user *src, char *dst, unsigned int csum_partial_copy_from(const unsigned char __user *src,
int len, int sum, int *err_ptr) unsigned char *dst, int len, int sum,
int *err_ptr)
{ {
if(copy_from_user(dst, src, len)){ if(copy_from_user(dst, src, len)){
*err_ptr = -EFAULT; *err_ptr = -EFAULT;
...@@ -32,14 +34,3 @@ unsigned int csum_partial_copy_from(const unsigned char __user *src, char *dst, ...@@ -32,14 +34,3 @@ unsigned int csum_partial_copy_from(const unsigned char __user *src, char *dst,
return arch_csum_partial(dst, len, sum); return arch_csum_partial(dst, len, sum);
} }
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
* adjust the settings for this buffer only. This must remain at the end
* of the file.
* ---------------------------------------------------------------------------
* Local variables:
* c-file-style: "linux"
* End:
*/
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
* we don't really have any PMD directory physically. * we don't really have any PMD directory physically.
*/ */
#define PTRS_PER_PTE 1024 #define PTRS_PER_PTE 1024
#define PTRS_PER_PMD 1
#define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE) #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
#define PTRS_PER_PGD 1024 #define PTRS_PER_PGD 1024
#define FIRST_USER_PGD_NR 0 #define FIRST_USER_PGD_NR 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment