From patchwork Tue Feb 19 17:01:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 158725 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3891847jaa; Tue, 19 Feb 2019 09:02:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IZquR/dOvFI2Jh5pisZ158R+ZYjBO7YtGFscSQvBpvYMW9JIgEMdmychNUswus2BvokIwKB X-Received: by 2002:a17:902:7686:: with SMTP id m6mr23198972pll.262.1550595771710; Tue, 19 Feb 2019 09:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550595771; cv=none; d=google.com; s=arc-20160816; b=yPvdsXWZiCprqJ60lxO/u/CzjxcKFE4bR6uieyz4nIBRl4IBOAbtJXAx6TN7pT87bJ rMleZovXO1N5CdTuqkM1xMmP7UIAXJm14dhYyVca2AUeWqi1eD4VzyH4eENU57lFMgNz 9Ua9Pg+Ket2CmyQEfGT48kxJjujlVSl74jdtz5NGRPswGLkz5Hbso3cFidm58O3IFITd hoPQBVet90WLJgNOyNZAnsLj+YlDaQjOWTmt1L9PU+x8pOxB0i47QnM/SZ/20rmA3gmM SU9Qw/CE5xALjJibpOVlsO7NWxi55gtWkgXw2d+wt13G8h+Yq4PSMn6PlESoy2DhKb1I JBFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=18tu/SEQI4rktR04YViNcj0GJKEHcDkMaBLXa8IPqqc=; b=aPPvrIug/414SxSBJqifGx/oRi5nwio2hq+A2/EuUYMgLz3ojhgXXpnYnRBMDsNMA5 e2dcx6wDaroyr5sYldein7IXa6PqLBfGFVlWVCbrHn1E0jzXF5BAvXXxfol61rMMZMZo 2XMkHoDv4aIPmcHFmTHgIBFDE1qfkwRlYAOqOZQB3r+T50Yz5ID7UwaZI+o1iYkuykAK IioYXCsEGI3oxKYU4GRuOM9dkex0+dxgou7i8KOt6Hw0Q+iulYyNpQnRfTHOqzuSSPqt MS5g/jEa8kqbstbS/5M0hjuF+CL1DWVReWsRBLINSVSKkPwouqkpi1o2c3OFmpp701F8 qI1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f40si17835828plb.60.2019.02.19.09.02.50; Tue, 19 Feb 2019 09:02:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729699AbfBSRCt (ORCPT + 32 others); Tue, 19 Feb 2019 12:02:49 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:37909 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbfBSRCr (ORCPT ); Tue, 19 Feb 2019 12:02:47 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N8GhM-1h9Uhq43Oq-014DH7; Tue, 19 Feb 2019 18:02:39 +0100 From: Arnd Bergmann To: Hans Verkuil , Mauro Carvalho Chehab Cc: Nick Desaulniers , Mark Brown , Nathan Chancellor , Arnd Bergmann , Kees Cook , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] media: go7007: avoid clang frame overflow warning with KASAN Date: Tue, 19 Feb 2019 18:01:58 +0100 Message-Id: <20190219170209.4180739-3-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190219170209.4180739-1-arnd@arndb.de> References: <20190219170209.4180739-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:t3/mjdv6wD7/tRWMcKiA8p4QjJ/EUzxVvcV1M/rdrL5rgjq1TlX KfM4Vr+jOGWw+vH4oZ7k1IcyafTsF90+y1m/tMfUKBnkDiaa/2yMXP2B9gOm5Fbkd31+KGT qyguvIHRu6rqgEIjRJTeXaNL6r+iLIEEEOHgb9HyZi4zPeAOuusvzc+Ph7yE9LUOJ5oFRfG FLaHWGwMZkWJgJVrylW8w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:/iscvYMUj2s=:D6jkiQZZlLvU2DbWwLGRka s/wTwku8APxSue3R5LdgNBEeW9OYL6Y4YYeXdUUrv01//8VCHSopg3kmQ5VbaPXW6R1VsFk30 yaxuWQ/zaR4FmTqAtBJvGVgtxiHg6+eBDilyn6p1hHEbwK//Hyj0/fL0Ti+Qh/SR3xf+nqRT5 qgfmtJ/E7L2OwVyacTkuf+bLU08lZq7dD66X5SX9H5KJzhWnswOhRLCiPwZ2chD6+Jd3HFqJl aHWB0GycawCgV+pUkgxAAy5zKfMZEG4saQZfIgYV9AaD5Lgw50A6RkbtCTI+opV/vjcsR4D44 IEUZoSARl8wUa2+FMGYsb8GJ0jQsrhpJIWJQnt1OIQTtTEiOYR0875WhFWlknhdxYKGBOHFqz kAkkUKgiPjtMcZ9SpZg2yhvZBJx2iniRcjoj1v5oGPfXk+RwGuqzjrC6OLwT7pU50fxtGRCE0 5fkekKDcFknmCld9FDO9QXfiEgYyJenKRGW/8rpdwUM4bWkAsVqd5my1SiPEP/iNHRbNz/ITB TF9IdZHxRKrsrhsASfAZrOB8H8XnLqIrcYeoigkPxNAqwovIft3bVpoCDXbyApuThpQspL4/6 eKQ3pARJo1MvLbBG4tuHrOjExNiN56U4z15p8iA6YeM/0ZqzH5hoYiWpWwf8ZDyoYjov8+PXR 4unNRFjTQpOewaT5x0jWXyPju9yeyirwnzdgpC1/o7ctQ+YYduPIkbiR1peY/OuxC15J9xhjD 7JOWeeO02EijN58g1iXmhgBAjGCkQutNxzVTkw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang-8 warns about one function here when KASAN is enabled, even without the 'asan-stack' option: drivers/media/usb/go7007/go7007-fw.c:1551:5: warning: stack frame size of 2656 bytes in function I have reported this issue in the llvm bugzilla, but to make it work with the clang-8 release, a small annotation is still needed. Link: https://bugs.llvm.org/show_bug.cgi?id=38809 Signed-off-by: Arnd Bergmann --- drivers/media/usb/go7007/go7007-fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/media/usb/go7007/go7007-fw.c b/drivers/media/usb/go7007/go7007-fw.c index 24f5b615dc7a..c7201e93c331 100644 --- a/drivers/media/usb/go7007/go7007-fw.c +++ b/drivers/media/usb/go7007/go7007-fw.c @@ -1499,7 +1499,7 @@ static int modet_to_package(struct go7007 *go, __le16 *code, int space) return cnt; } -static int do_special(struct go7007 *go, u16 type, __le16 *code, int space, +static noinline_for_stack int do_special(struct go7007 *go, u16 type, __le16 *code, int space, int *framelen) { switch (type) {