From cb2fd65e3da7a68ef11d458e9ca99463f90b32a0 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 28 Oct 2008 21:49:02 +0000 Subject: fix a large number of warnings found by sparse, the kernel code sanity checking tool. some of these fixes are non-optimal (casting 'unsigned long' to '__user void *'), but are unavoidable in many cases. started from tzafrir's patch, did most of the work myself. (closes issue #13763) Reported by: tzafrir Patches: sparse_fixes_1.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5162 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct1xxp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'drivers/dahdi/wct1xxp.c') diff --git a/drivers/dahdi/wct1xxp.c b/drivers/dahdi/wct1xxp.c index 3b0f5b9..00aa0e3 100644 --- a/drivers/dahdi/wct1xxp.c +++ b/drivers/dahdi/wct1xxp.c @@ -165,7 +165,7 @@ struct t1xxp { #define CANARY 0xca1e -int debug = 0; /* doesnt do anything */ +static int debug = 0; /* doesnt do anything */ static struct t1xxp *cards[WC_MAX_CARDS]; @@ -1400,12 +1400,12 @@ static struct pci_device_id t1xxp_pci_tbl[] = { MODULE_DEVICE_TABLE(pci,t1xxp_pci_tbl); static struct pci_driver t1xxp_driver = { - name: "t1xxp", - probe: t1xxp_init_one, - remove: __devexit_p(t1xxp_remove_one), - suspend: NULL, - resume: NULL, - id_table: t1xxp_pci_tbl, + .name = "t1xxp", + .probe = t1xxp_init_one, + .remove = __devexit_p(t1xxp_remove_one), + .suspend = NULL, + .resume = NULL, + . id_table = t1xxp_pci_tbl, }; static int __init t1xxp_init(void) -- cgit v1.2.3