From d930823b171bfd525866ed7ce2c80bca54f69b25 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 28 Nov 2012 12:55:37 +0100 Subject: [PATCH] all: fix warning on __exit annotations --- brick.h | 5 +++++ brick_mem.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/brick.h b/brick.h index 1a25c29d..a5a77716 100644 --- a/brick.h +++ b/brick.h @@ -628,6 +628,11 @@ extern void brick_thread_stop_nowait(struct task_struct *k); // init +#ifdef CONFIG_MARS_HAVE_BIGMODULE +#undef __exit +#define __exit /*empty*/ +#endif + extern int init_brick(void); extern void exit_brick(void); diff --git a/brick_mem.h b/brick_mem.h index e3527df6..6d2e3338 100644 --- a/brick_mem.h +++ b/brick_mem.h @@ -65,6 +65,11 @@ extern int brick_mem_reserve(struct mem_reservation *r); // init +#ifdef CONFIG_MARS_HAVE_BIGMODULE +#undef __exit +#define __exit /*empty*/ +#endif + extern int init_brick_mem(void); extern void exit_brick_mem(void);