]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: alloc buffer in driver_state_read to prevent compilation warning
authorLuciano Coelho <coelho@ti.com>
Thu, 15 Dec 2011 12:58:08 +0000 (14:58 +0200)
committerLuciano Coelho <coelho@ti.com>
Thu, 15 Dec 2011 14:11:29 +0000 (16:11 +0200)
commit18e19f8afe37556cae35e52205a7a0b94fdb1f76
tree8e756b0ad439741eb6ef42965887d3fe91ab3524
parentf828408b754af522c7a93b4be9568d0ce2da9c73
wl12xx: alloc buffer in driver_state_read to prevent compilation warning

When compiling wl12xx for x86, there was a warning complaining about
the size of the buffer we were allocating in the stack:

drivers/net/wireless/wl12xx/debugfs.c: In function 'driver_state_read':
drivers/net/wireless/wl12xx/debugfs.c:380:1: warning: the frame size of 1040 bytes is larger than 1024 bytes

To prevent this, allocate the buffer in the heap instead.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/debugfs.c