Mercurial > flash_v2
changeset 1138:0f92f267b392
* 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.
| author | asl |
|---|---|
| date | Sun, 27 Jul 2003 13:58:42 +0000 |
| parents | f0a0a4cc898b |
| children | e38842dfa4cc |
| files | packages/compat/linux/current/ChangeLog packages/compat/linux/current/include/linux/kernel.h |
| diffstat | 2 files changed, 19 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/compat/linux/current/ChangeLog +++ b/packages/compat/linux/current/ChangeLog @@ -1,3 +1,15 @@ +2003-07-27 Andrew Lunn <andrew.lunn@ascom.ch> + + * include/linux/init.h: + * include/linux/vmalloc.h: New dummy files so that jffs2 will + compile. + +2003-07-27 Michael Checky <Michael_Checky@ThermoKing.com> + Andrew Lunn <andrew.lunn@ascom.ch> + + * 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 <andrew.lunn@ascom.ch> * include/linux/stat.h: Removed #defines which has been added to
--- 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__ */ + + + +
