Mercurial > ecos
changeset 1939:8015ad561ce5
* include/linux/kernel.h (PTR_ERR): Should be an unsigned long,
not an intager, at least that is what Linux uses.
| author | asl |
|---|---|
| date | Sun, 27 Mar 2005 18:28:51 +0000 |
| parents | 389f2895cea2 |
| children | f8eb05ed2de5 |
| files | packages/compat/linux/current/ChangeLog packages/compat/linux/current/include/linux/kernel.h |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/compat/linux/current/ChangeLog +++ b/packages/compat/linux/current/ChangeLog @@ -1,3 +1,8 @@ +2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch> + + * include/linux/kernel.h (PTR_ERR): Should be an unsigned long, + not an intager, at least that is what Linux uses. + 2005-01-22 Andrew Lunn <andrew.lunn@ascom.ch> * include/linux/spinlock.h (DEFINE_SPINLOCK): Added.
--- a/packages/compat/linux/current/include/linux/kernel.h +++ b/packages/compat/linux/current/include/linux/kernel.h @@ -5,7 +5,7 @@ #define jiffies 100 #define ERR_PTR(err) ((void*)(err)) -#define PTR_ERR(err) ((cyg_int32)(err)) +#define PTR_ERR(err) ((unsigned long)(err)) #define IS_ERR(err) ((unsigned long)err > (unsigned long)-1000L) #define CURRENT_TIME cyg_timestamp()
