diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-22 07:07:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-26 17:52:02 -0400 |
commit | 139adba64cdde218e6a679f1d5b675fee937a8d8 (patch) | |
tree | 44e5d303fab48fa86b3f6a6d6e21b67aa761561d | |
parent | 9842a417d46bf40f2d460120016b6392d3ac32c9 (diff) |
[media] s5p_mfc: don't use an external symbol called 'debug'
The 'debug' name is known to cause conflicts with allyesconfig
on several archs. So, localize its name.
>> drivers/built-in.o:(.bss+0xc7ee2c): multiple definition of `debug'
arch/x86/built-in.o:(.entry.text+0xf78): first defined here
ld: Warning: size of symbol `debug' changed from 86 in arch/x86/built-in.o to 4 in drivers/built-in.o
While here, fix a wrong file name reference
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc.c | 4 | ||||
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_debug.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index d35b0418ab37..89b5b4ad34d3 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c | |||
@@ -37,8 +37,8 @@ | |||
37 | #define S5P_MFC_DEC_NAME "s5p-mfc-dec" | 37 | #define S5P_MFC_DEC_NAME "s5p-mfc-dec" |
38 | #define S5P_MFC_ENC_NAME "s5p-mfc-enc" | 38 | #define S5P_MFC_ENC_NAME "s5p-mfc-enc" |
39 | 39 | ||
40 | int debug; | 40 | int mfc_debug_level; |
41 | module_param(debug, int, S_IRUGO | S_IWUSR); | 41 | module_param_named(debug, mfc_debug_level, int, S_IRUGO | S_IWUSR); |
42 | MODULE_PARM_DESC(debug, "Debug level - higher value produces more verbose messages"); | 42 | MODULE_PARM_DESC(debug, "Debug level - higher value produces more verbose messages"); |
43 | 43 | ||
44 | /* Helper functions for interrupt processing */ | 44 | /* Helper functions for interrupt processing */ |
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h b/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h index 8e608f5aa0d7..5936923c631c 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/media/platform/samsung/mfc5/s5p_mfc_debug.h | 2 | * drivers/media/platform/s5p-mfc/s5p_mfc_debug.h |
3 | * | 3 | * |
4 | * Header file for Samsung MFC (Multi Function Codec - FIMV) driver | 4 | * Header file for Samsung MFC (Multi Function Codec - FIMV) driver |
5 | * This file contains debug macros | 5 | * This file contains debug macros |
@@ -18,11 +18,11 @@ | |||
18 | #define DEBUG | 18 | #define DEBUG |
19 | 19 | ||
20 | #ifdef DEBUG | 20 | #ifdef DEBUG |
21 | extern int debug; | 21 | extern int mfc_debug_level; |
22 | 22 | ||
23 | #define mfc_debug(level, fmt, args...) \ | 23 | #define mfc_debug(level, fmt, args...) \ |
24 | do { \ | 24 | do { \ |
25 | if (debug >= level) \ | 25 | if (mfc_debug_level >= level) \ |
26 | printk(KERN_DEBUG "%s:%d: " fmt, \ | 26 | printk(KERN_DEBUG "%s:%d: " fmt, \ |
27 | __func__, __LINE__, ##args); \ | 27 | __func__, __LINE__, ##args); \ |
28 | } while (0) | 28 | } while (0) |