From: Luciano Coelho <coelho@ti.com>
To: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] wl12xx: alloc buffer in driver_state_read to prevent compilation warning
Date: Thu, 15 Dec 2011 16:23:42 +0200 [thread overview]
Message-ID: <1323959022.2800.186.camel@cumari> (raw)
In-Reply-To: <1323953888-10988-1-git-send-email-coelho@ti.com>
On Thu, 2011-12-15 at 14:58 +0200, Luciano Coelho wrote:
> 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>
> ---
Applied.
--
Cheers,
Luca.
prev parent reply other threads:[~2011-12-15 14:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 12:58 [PATCH] wl12xx: alloc buffer in driver_state_read to prevent compilation warning Luciano Coelho
2011-12-15 14:23 ` Luciano Coelho [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323959022.2800.186.camel@cumari \
--to=coelho@ti.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox