OpenCloudOS-Kernel/drivers/staging/vt6655
Konrad Zapalowicz 0c4df9c969 staging: vt6655: refactor iwctl_giwaplist() to avoid -Wframe-larger-than warn.
This commit refactors the iwctl_giwaplist() function so that the sparse
warning "the frame size of 1292 bytes is larger than 1024 bytes
[-Wframe-larger-than=]" is no more.

The root cause of this warning were two arrays allocated on the stack
and this commit changes this - these arrays are now kmalloc'ed. As a
result the function is refactored and hopefully stil working the same.

I were not able to test these changes so at least the carefull review
is more than welcomed.

Note that my changes has broadened the set of error codes that this
function can return. The new error code is ENOMEM. Luckily, this is
no issue.

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-28 14:10:46 -07:00
..
80211hdr.h vt6655: balance faulty parentheses in 80211hdr.h 2014-01-08 11:04:46 -08:00
80211mgr.c staging: vt6655: Fix line over 80 characters. 2014-03-16 19:45:52 -07:00
80211mgr.h
IEEE11h.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
IEEE11h.h
Kconfig
Makefile
TODO
aes_ccmp.c staging: vt6655: Remove unnecessary braces in aes_ccmp.c 2014-03-16 19:37:23 -07:00
aes_ccmp.h
baseband.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
baseband.h
bssdb.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
bssdb.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
card.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
card.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
channel.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
channel.h
country.h
datarate.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
datarate.h
desc.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
device.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
device_cfg.h
device_main.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
dpc.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
dpc.h
hostap.c staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
hostap.h
iocmd.h
ioctl.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
ioctl.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
iowpa.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
iwctl.c staging: vt6655: refactor iwctl_giwaplist() to avoid -Wframe-larger-than warn. 2014-05-28 14:10:46 -07:00
iwctl.h
key.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
key.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
mac.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
mac.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
mib.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
mib.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
michael.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
michael.h staging: vt6655: 64 bit fixes :TKIP mode micheal.c sizeof long. 2014-03-08 22:31:31 -08:00
power.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
power.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
rc4.c
rc4.h
rf.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
rf.h
rxtx.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
rxtx.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
srom.c
srom.h
tcrc.c
tcrc.h
test
tether.c Staging: vt6655: tether: fixed a brace coding style issue 2014-05-15 13:23:03 -07:00
tether.h
tkip.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
tkip.h
tmacro.h
ttype.h
upc.h
vntconfiguration.dat
vntwifi.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
vntwifi.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wcmd.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wcmd.h
wctl.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wctl.h
wmgr.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wmgr.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wpa.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wpa.h
wpa2.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wpa2.h
wpactl.c staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
wpactl.h vt6655: remove typedefs in wpactl.h 2014-01-08 11:05:20 -08:00
wroute.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wroute.h staging: vt6655: Removed C99 style comments 2013-10-14 09:15:26 -07:00