Remove classmate debug patch
[lcapit-linux-patches.git] / 2.6.27-ncc / 0008-NCC-moduleparam.h-Completely-disable-module_param_.patch
blobb7113805290ed106742d83639671a04869b3dbb7
1 From 15567bb831bc6e50c305a318fc7ef56fbd467746 Mon Sep 17 00:00:00 2001
2 From: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
3 Date: Fri, 10 Oct 2008 13:47:19 -0300
4 Subject: [PATCH] NCC: moduleparam.h: Completely disable module_param_call
6 Otherwise ncc will fail with the following message:
8 """
9 ncc-error : designator
10 /home/lcapitulino/src/kernels/upstream/linux-2.6-ncc/drivers/char/vt.c (1036): syntax error:"kernel_param const __param_default_red = { __param_str_default_red , ( 256 | 32 | 4 ) | 128 , param_array_set , param_array_get , { . arr = & __param_arr_default_red } } ; ; static const struct kparam_array __param_arr_default_grn = { ( sizeof ( default_grn ) / sizeof ( ( default_grn ) [ "
11 make[1]: *** [drivers/char/vt.o] Error 1
12 make: *** [_module_drivers/char] Error 2
13 """
15 Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
16 ---
17 include/linux/moduleparam.h | 4 ++++
18 1 files changed, 4 insertions(+), 0 deletions(-)
20 diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
21 index ec62438..a78f4d7 100644
22 --- a/include/linux/moduleparam.h
23 +++ b/include/linux/moduleparam.h
24 @@ -86,8 +86,12 @@ struct kparam_array
25 __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) \
26 = { __param_str_##name, perm, set, get, { arg } }
28 +#ifdef __NCC__
29 +#define module_param_call(name, set, get, arg, perm)
30 +#else
31 #define module_param_call(name, set, get, arg, perm) \
32 __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm)
33 +#endif
35 /* Helper functions: type is byte, short, ushort, int, uint, long,
36 ulong, charp, bool or invbool, or XXX if you define param_get_XXX,
37 --
38 1.5.6