From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] staging: rtl8712: reduce stack usage
Date: Thu, 18 Feb 2016 10:21:48 +0100 [thread overview]
Message-ID: <3642222.ppVDPONLa4@wuerfel> (raw)
In-Reply-To: <56C52A5F.2030302@lwfinger.net>
On Wednesday 17 February 2016 20:20:15 Larry Finger wrote:
> > ---
> > drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> As there is no reason for translate_scan() to be inlined, this patch seems
> reasonable The largest user of stack likely comes from the line "struct iw_event
> iwe". Changing that to a pointer, and using kalloc to acquire the space would
> likely clear the compile message, but that would require many more changes.
>
> Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
>
>
Thanks!
I believe that the problem is the combination of "struct iw_event"
and the two buffers "u8 wpa_ie[255], rsn_ie[255];" and "u8 wps_ie[512];".
Just to document this better: if we ever decide to use a dynamic allocation,
I would allocate all of the above together.
Arnd
next prev parent reply other threads:[~2016-02-18 9:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 8:32 [PATCH] staging: rtl8712: reduce stack usage Arnd Bergmann
2016-02-18 2:20 ` Larry Finger
2016-02-18 9:21 ` Arnd Bergmann [this message]
2016-02-19 10:15 ` Dan Carpenter
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=3642222.ppVDPONLa4@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).