diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2009-02-27 00:42:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:02 -0400 |
commit | 0d02efe486ef251e2f625fc846cb5f241eb57160 (patch) | |
tree | efe2ea128fb586d07c7b307837006e4135f15f2b /drivers/media/dvb/siano | |
parent | 9b76ede411145d7456ae5e467b65003ca7990b06 (diff) |
V4L/DVB (10772): siano: prevent duplicate variable declaration
Fix the following build error:
drivers/media/dvb/siano/smsusb.o: In function `get_order':
include/asm-generic/page.h:10: multiple definition of `sms_dbg'
drivers/media/dvb/siano/sms1xxx.o:include/asm-generic/page.h:10: first defined here
drivers/media/dvb/siano/smsdvb.o: In function `get_order':
include/asm-generic/page.h:10: multiple definition of `sms_dbg'
drivers/media/dvb/siano/sms1xxx.o:include/asm-generic/page.h:10: first defined here
Thanks to Mauro Carvalho Chehab for his original patch to address this issue.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/siano')
-rw-r--r-- | drivers/media/dvb/siano/sms-cards.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.h | 2 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smsdvb.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smsusb.c | 4 |
5 files changed, 13 insertions, 3 deletions
diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c index 66f591937ff5..63e4d0ec6583 100644 --- a/drivers/media/dvb/siano/sms-cards.c +++ b/drivers/media/dvb/siano/sms-cards.c | |||
@@ -19,6 +19,10 @@ | |||
19 | 19 | ||
20 | #include "sms-cards.h" | 20 | #include "sms-cards.h" |
21 | 21 | ||
22 | static int sms_dbg; | ||
23 | module_param_named(cards_dbg, sms_dbg, int, 0644); | ||
24 | MODULE_PARM_DESC(cards_dbg, "set debug level (info=1, adv=2 (or-able))"); | ||
25 | |||
22 | static struct sms_board sms_boards[] = { | 26 | static struct sms_board sms_boards[] = { |
23 | [SMS_BOARD_UNKNOWN] = { | 27 | [SMS_BOARD_UNKNOWN] = { |
24 | .name = "Unknown board", | 28 | .name = "Unknown board", |
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index efa7a4192648..7bd4d1dee2b3 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "smscoreapi.h" | 34 | #include "smscoreapi.h" |
35 | #include "sms-cards.h" | 35 | #include "sms-cards.h" |
36 | 36 | ||
37 | int sms_dbg; | 37 | static int sms_dbg; |
38 | module_param_named(debug, sms_dbg, int, 0644); | 38 | module_param_named(debug, sms_dbg, int, 0644); |
39 | MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); | 39 | MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); |
40 | 40 | ||
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h index e48cd1c98191..548de9056e8b 100644 --- a/drivers/media/dvb/siano/smscoreapi.h +++ b/drivers/media/dvb/siano/smscoreapi.h | |||
@@ -422,8 +422,6 @@ int smscore_led_state(struct smscore_device_t *core, int led); | |||
422 | 422 | ||
423 | /* ------------------------------------------------------------------------ */ | 423 | /* ------------------------------------------------------------------------ */ |
424 | 424 | ||
425 | extern int sms_dbg; | ||
426 | |||
427 | #define DBG_INFO 1 | 425 | #define DBG_INFO 1 |
428 | #define DBG_ADV 2 | 426 | #define DBG_ADV 2 |
429 | 427 | ||
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c index 36dc9f2d1172..ba080b95befb 100644 --- a/drivers/media/dvb/siano/smsdvb.c +++ b/drivers/media/dvb/siano/smsdvb.c | |||
@@ -50,6 +50,10 @@ struct smsdvb_client_t { | |||
50 | static struct list_head g_smsdvb_clients; | 50 | static struct list_head g_smsdvb_clients; |
51 | static struct mutex g_smsdvb_clientslock; | 51 | static struct mutex g_smsdvb_clientslock; |
52 | 52 | ||
53 | static int sms_dbg; | ||
54 | module_param_named(debug, sms_dbg, int, 0644); | ||
55 | MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); | ||
56 | |||
53 | static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) | 57 | static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) |
54 | { | 58 | { |
55 | struct smsdvb_client_t *client = (struct smsdvb_client_t *) context; | 59 | struct smsdvb_client_t *client = (struct smsdvb_client_t *) context; |
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c index 5bb8261721b1..71c65f544c07 100644 --- a/drivers/media/dvb/siano/smsusb.c +++ b/drivers/media/dvb/siano/smsusb.c | |||
@@ -27,6 +27,10 @@ | |||
27 | #include "smscoreapi.h" | 27 | #include "smscoreapi.h" |
28 | #include "sms-cards.h" | 28 | #include "sms-cards.h" |
29 | 29 | ||
30 | static int sms_dbg; | ||
31 | module_param_named(debug, sms_dbg, int, 0644); | ||
32 | MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))"); | ||
33 | |||
30 | #define USB1_BUFFER_SIZE 0x1000 | 34 | #define USB1_BUFFER_SIZE 0x1000 |
31 | #define USB2_BUFFER_SIZE 0x4000 | 35 | #define USB2_BUFFER_SIZE 0x4000 |
32 | 36 | ||