From: Kalle Valo <kvalo@codeaurora.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>,
Helmut Schaa <helmut.schaa@googlemail.com>,
Mathias Kresin <dev@kresin.me>,
linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rt2500usb: don't mark register accesses as inline
Date: Wed, 15 Feb 2017 07:49:38 +0200 [thread overview]
Message-ID: <8760kcovf1.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <20170214212846.2809141-1-arnd@arndb.de> (Arnd Bergmann's message of "Tue, 14 Feb 2017 22:28:33 +0100")
Arnd Bergmann <arnd@arndb.de> writes:
> When CONFIG_KASAN is set, we get a rather large stack here:
>
> drivers/net/wireless/ralink/rt2x00/rt2500usb.c: In function 'rt2500usb_set_device_state':
> drivers/net/wireless/ralink/rt2x00/rt2500usb.c:1074:1: error: the frame size of 3032 bytes is larger than 100 bytes [-Werror=frame-larger-than=]
>
> If we don't force those functions to be inline, the compiler can figure this
> out better itself and not inline the functions when doing so would be harmful,
> reducing the stack size to a merge 256 bytes.
>
> Note that there is another problem that manifests in this driver, as a result
> of the typecheck() macro causing even larger stack frames.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[...]
> -static inline void rt2500usb_register_multiread(struct rt2x00_dev *rt2x00dev,
> - const unsigned int offset,
> - void *value, const u16 length)
> -{
> - rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ,
> - USB_VENDOR_REQUEST_IN, offset,
> - value, length);
> -}
> -
I guess you removed this because it was not actually used anywhere? Just
checking.
--
Kalle Valo
next prev parent reply other threads:[~2017-02-15 5:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 21:28 [PATCH] rt2500usb: don't mark register accesses as inline Arnd Bergmann
2017-02-15 5:49 ` Kalle Valo [this message]
2017-02-15 7:48 ` Arnd Bergmann
2017-02-15 9:16 ` Kalle Valo
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=8760kcovf1.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@codeaurora.org \
--cc=arnd@arndb.de \
--cc=dev@kresin.me \
--cc=helmut.schaa@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sgruszka@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.