From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751745AbdBOJQ2 (ORCPT ); Wed, 15 Feb 2017 04:16:28 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:46708 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbdBOJQZ (ORCPT ); Wed, 15 Feb 2017 04:16:25 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9D384607E6 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: rt2500usb: don't mark register accesses as inline From: Kalle Valo In-Reply-To: <20170214212846.2809141-1-arnd@arndb.de> References: <20170214212846.2809141-1-arnd@arndb.de> To: Arnd Bergmann Cc: Stanislaw Gruszka , Helmut Schaa , Arnd Bergmann , Mathias Kresin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20170215091624.6F1AB608EA@smtp.codeaurora.org> Date: Wed, 15 Feb 2017 09:16:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann wrote: > 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 Patch applied to wireless-drivers-next.git, thanks. 727241660912 rt2500usb: don't mark register accesses as inline -- https://patchwork.kernel.org/patch/9572947/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches