diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-10-28 21:49:02 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-10-28 21:49:02 +0000 |
commit | cb2fd65e3da7a68ef11d458e9ca99463f90b32a0 (patch) | |
tree | 8acd0b016433ced01fd64876a031381c822c30aa /drivers/dahdi/dahdi_dynamic_eth.c | |
parent | 8b0e06e5f588d24af0666b1d605084a83c7c8c25 (diff) |
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
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic_eth.c')
-rw-r--r-- | drivers/dahdi/dahdi_dynamic_eth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/dahdi/dahdi_dynamic_eth.c b/drivers/dahdi/dahdi_dynamic_eth.c index 7017f75..ff26420 100644 --- a/drivers/dahdi/dahdi_dynamic_eth.c +++ b/drivers/dahdi/dahdi_dynamic_eth.c @@ -59,7 +59,7 @@ static struct ztdeth { struct ztdeth *next; } *zdevs = NULL; -struct dahdi_span *ztdeth_getspan(unsigned char *addr, unsigned short subaddr) +static struct dahdi_span *ztdeth_getspan(unsigned char *addr, unsigned short subaddr) { unsigned long flags; struct ztdeth *z; @@ -207,9 +207,9 @@ static int ztdeth_flush(void) } static struct packet_type ztdeth_ptype = { - type: __constant_htons(ETH_P_DAHDI_DETH), /* Protocol */ - dev: NULL, /* Device (NULL = wildcard) */ - func: ztdeth_rcv, /* Receiver */ + .type = __constant_htons(ETH_P_DAHDI_DETH), /* Protocol */ + .dev = NULL, /* Device (NULL = wildcard) */ + .func = ztdeth_rcv, /* Receiver */ }; static int digit2int(char d) @@ -409,7 +409,7 @@ static struct dahdi_dynamic_driver ztd_eth = { }; static struct notifier_block ztdeth_nblock = { - notifier_call: ztdeth_notifier, + .notifier_call = ztdeth_notifier, }; static int __init ztdeth_init(void) |