Remove classmate debug patch
[lcapit-linux-patches.git] / 2.6.27-ncc / 0002-NCC-kernel.h-undef-__FUNCTION__.patch
blob8ac676182139b3587bdcab8658fd4d8893c96d74
1 From 35c5bf2f9bbbbf116c44f8964e95ffeb52e8df10 Mon Sep 17 00:00:00 2001
2 From: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
3 Date: Fri, 10 Oct 2008 10:20:18 -0300
4 Subject: [PATCH] NCC: kernel.h: undef __FUNCTION__
6 ncc doesn't like it, change from Stelios Xanthakis.
8 Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
9 ---
10 include/linux/kernel.h | 3 +++
11 1 files changed, 3 insertions(+), 0 deletions(-)
13 diff --git a/include/linux/kernel.h b/include/linux/kernel.h
14 index 2651f80..c8f5383 100644
15 --- a/include/linux/kernel.h
16 +++ b/include/linux/kernel.h
17 @@ -477,6 +477,9 @@ struct sysinfo {
18 #define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
20 /* Trap pasters of __FUNCTION__ at compile-time */
21 +#ifdef __NCC__
22 +#undef __FUNCTION__
23 +#endif
24 #define __FUNCTION__ (__func__)
26 /* This helps us to avoid #ifdef CONFIG_NUMA */
27 --
28 1.5.6