Re: [Tinyx-devel] [PATCH] Code cleanup on tinyx/kernel.h.
Status: Planning
Brought to you by:
davidcohen
From: Felipe B. <me...@fe...> - 2007-12-11 23:23:58
|
Good one, now we can use error codes and NULL everywhere. On Tue, 11 Dec 2007 19:08:24 -0400, David Cohen <da...@gm...> wrote: > Signed-off-by: David Cohen <da...@gm...> Acked-by: Felipe Balbi <me...@fe...> > --- > include/tinyx/kernel.h | 13 ++++++++----- > 1 files changed, 8 insertions(+), 5 deletions(-) > > diff --git a/include/tinyx/kernel.h b/include/tinyx/kernel.h > index 8a317b1..3b55653 100644 > --- a/include/tinyx/kernel.h > +++ b/include/tinyx/kernel.h > @@ -1,16 +1,19 @@ > #ifndef __TINYX_KERNEL_H > #define __TINYX_KERNEL_H > > +#include <asm/stddef.h> > +#include <tinyx/errno.h> > + > typedef int (*initcall_t)(void); > > #define __initcall(level, fn) \ > static initcall_t __initcall_##fn __attribute__ ((section > (".initcall." level ".init"))) = fn > > -#define first_init(fn) __initcall("0", fn) > -#define early_init(fn) __initcall("1", fn) > -#define standard_init(fn) __initcall("2", fn) > -#define late_init(fn) __initcall("3", fn) > -#define last_init(fn) __initcall("4", fn) > +#define first_init(fn) __initcall("0", fn) > +#define early_init(fn) __initcall("1", fn) > +#define standard_init(fn) __initcall("2", fn) > +#define late_init(fn) __initcall("3", fn) > +#define last_init(fn) __initcall("4", fn) > > #define __init __attribute__ ((__section__ (".init_functions"))) > > -- > 1.5.3.5 > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Tinyx-devel mailing list > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tinyx-devel -- Best Regards, Felipe Balbi http://felipebalbi.com me...@fe... |