Revert "[media] siano: apply debug flag to module level"
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 26 Sep 2011 19:49:01 +0000 (16:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 26 Sep 2011 19:50:14 +0000 (16:50 -0300)
This reverts commit ea3709435c7f2da8852c3d676874cd727253fc60.

As reported by Stephen Rothwell:

After merging the v4l-dvb tree, today's linux-next build (x86_64
allmodconfig) failed like this:

ERROR: "sms_dbg" [drivers/media/dvb/siano/smsusb.ko] undefined!
ERROR: "sms_dbg" [drivers/media/dvb/siano/smsdvb.ko] undefined!

Caused by commit ea3709435c7f ("[media] siano: apply debug flag to module
level").

Relevant config:
CONFIG_SMS_SIANO_MDTV=m
CONFIG_SMS_USB_DRV=m
CONFIG_SMS_SDIO_DRV=m

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/sms-cards.c
drivers/media/dvb/siano/smscoreapi.c
drivers/media/dvb/siano/smscoreapi.h
drivers/media/dvb/siano/smsdvb.c
drivers/media/dvb/siano/smsusb.c

index cf442dc4c191f1d3b44c57be29fa379943db932a..af121db88ea002318bf28cb4135c7955ff334927 100644 (file)
 #include "sms-cards.h"
 #include "smsir.h"
 
+static int sms_dbg;
+module_param_named(cards_dbg, sms_dbg, int, 0644);
+MODULE_PARM_DESC(cards_dbg, "set debug level (info=1, adv=2 (or-able))");
+
 static struct sms_board sms_boards[] = {
        [SMS_BOARD_UNKNOWN] = {
                .name   = "Unknown board",
index c0acacc42dc63cb7e25e582b12cd840f1379fb5b..7331e8450d1a7d96caa64b2ba88e3d13be622b6f 100644 (file)
@@ -39,7 +39,7 @@
 #include "smsir.h"
 #include "smsendian.h"
 
-int sms_dbg;
+static int sms_dbg;
 module_param_named(debug, sms_dbg, int, 0644);
 MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
 
index bd1cafc2224bc3aa466e2aa0e5d523ccbe5f53c3..c592ae090397932f24168267bb937261248a71ac 100644 (file)
@@ -751,7 +751,6 @@ int smscore_led_state(struct smscore_device_t *core, int led);
 
 
 /* ------------------------------------------------------------------------ */
-extern int sms_dbg;
 
 #define DBG_INFO 1
 #define DBG_ADV  2
index b1f4911e835972c1c3b866cfb66661211b45168b..37c594f827825af53364797fea1c8b219588af30 100644 (file)
@@ -60,6 +60,10 @@ struct smsdvb_client_t {
 static struct list_head g_smsdvb_clients;
 static struct mutex g_smsdvb_clientslock;
 
+static int sms_dbg;
+module_param_named(debug, sms_dbg, int, 0644);
+MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
+
 /* Events that may come from DVB v3 adapter */
 static void sms_board_dvb3_event(struct smsdvb_client_t *client,
                enum SMS_DVB3_EVENTS event) {
index f8dca557fef9d8149c04435df8c2fe681058e63a..0c8164a2cc36caf271c34848049290068b4ba855 100644 (file)
@@ -29,6 +29,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "sms-cards.h"
 #include "smsendian.h"
 
+static int sms_dbg;
+module_param_named(debug, sms_dbg, int, 0644);
+MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
+
 #define USB1_BUFFER_SIZE               0x1000
 #define USB2_BUFFER_SIZE               0x4000