# HG changeset patch # User asl # Date 1059314322 0 # Node ID 0f92f267b392002ac1643a775822e15ca2763865 # Parent f0a0a4cc898b039cf792ea94f21603e3309cc9a5 * include/linux/init.h: * include/linux/vmalloc.h: New dummy files so that jffs2 will compile. * include/linux/kernel.h: Changed the #define IS_ERR to work correctly negative error values returned by the jffs2 code. diff --git a/packages/compat/linux/current/ChangeLog b/packages/compat/linux/current/ChangeLog --- a/packages/compat/linux/current/ChangeLog +++ b/packages/compat/linux/current/ChangeLog @@ -1,3 +1,15 @@ +2003-07-27 Andrew Lunn + + * include/linux/init.h: + * include/linux/vmalloc.h: New dummy files so that jffs2 will + compile. + +2003-07-27 Michael Checky + Andrew Lunn + + * include/linux/kernel.h: Changed the #define IS_ERR to work correctly + negative error values returned by the jffs2 code. + 2003-06-10 Andrew Lunn * include/linux/stat.h: Removed #defines which has been added to diff --git a/packages/compat/linux/current/include/linux/kernel.h b/packages/compat/linux/current/include/linux/kernel.h --- a/packages/compat/linux/current/include/linux/kernel.h +++ b/packages/compat/linux/current/include/linux/kernel.h @@ -4,9 +4,9 @@ #define jiffies 100 -#define ERR_PTR(err) (void*)(err) -#define PTR_ERR(err) (cyg_int32)(err) -#define IS_ERR(err) (err==NULL) +#define ERR_PTR(err) ((void*)(err)) +#define PTR_ERR(err) ((cyg_int32)(err)) +#define IS_ERR(err) ((unsigned long)err > (unsigned long)-1000L) #define CURRENT_TIME cyg_timestamp() @@ -26,3 +26,7 @@ #endif /* __LINUX_KERNEL_H__ */ + + + +