From patchwork Thu May 4 20:51:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 98569 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp806343qgd; Thu, 4 May 2017 13:52:21 -0700 (PDT) X-Received: by 10.84.218.14 with SMTP id q14mr58755458pli.80.1493931141566; Thu, 04 May 2017 13:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1493931141; cv=none; d=google.com; s=arc-20160816; b=NELk67ND6BaXnDm97QDhI4a8rBzZAflidDtL9ESGE6lQ/00zMrvaGoVjIgy3aLhlDL OG0I2Zkl/JQzokEb+keOUF5eQSiRE8EIs4yu9W5xjQklz2Yz/xettCBtTa0fakHn7HnF wcp/pEi4N2u+EcJCvNSw5SmdoiL3PIxDOCcwfDK+ZpizSp72U2svnqJnEwYoJutfFcTN 5h+0wxryG5xo3bc/Qqj/8D3Fbp+3YEl6wjHnhdGkw3vFvHEiSHMHnjUX7MEr3ReboDX7 Jx682tUK5HZAF1X7r8Xx4SvA2lnjUfKCQF74XJX1fEhTmL4mg0xjxKeE28PLUuudgIsR nNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=JYCWZysKxGhvVGHv39m+ULOw/R/ym7A/BcoBLM428oc=; b=HSupA2yq60U3d/fRoN0LMCVtRNIC7P7Zkhc3RXeFvM3muFyjFYZPDUW7gXebuYqwIf YF7okW3ydauJT1PWpk9pk9lrzHomfLADVbWgFPeKDPyJiZ1c2OcQqwsWYZ/1ierTHPeW 3KbsJ6CSXysRsLgc/noiDJy9BEVv0b2Yd0jinkVW8WV+jIUN95Q8nzdRM8nOSHS7U2Gu ZKytl7qw7ZeiVrWMPXiPGBdvfZiP8RYKMeGQYv837qOLjjCVp8uZa1MBphuzUHvgYFeh gF29n4s96aZ9RLKlpgLcauQJOZCRQl1xh+8fJSDDcZatVmLlzQfeudnFL90YhxKqo2ju oO4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 x7si3136031pls.89.2017.05.04.13.52.21; Thu, 04 May 2017 13:52:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751249AbdEDUwU (ORCPT + 6 others); Thu, 4 May 2017 16:52:20 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57740 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbdEDUwU (ORCPT ); Thu, 4 May 2017 16:52:20 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MA0VM-1dD1a41wU4-00B27d; Thu, 04 May 2017 22:52:16 +0200 From: Arnd Bergmann To: gregkh@linuxfoundation.org Cc: stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 01/13] [3.18-stable] ARM: cns3xxx: shut up frame size warning Date: Thu, 4 May 2017 22:51:57 +0200 Message-Id: <20170504205209.498721-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170504205209.498721-1-arnd@arndb.de> References: <20170504205209.498721-1-arnd@arndb.de> X-Provags-ID: V03:K0:CABgUcPqvDGK336RTiMNC1wzIO6ReYvYKV+fGyhsqBXB7whY+ok LgX6DLSCotYTDG5b4l93TD/vgQJu8zkxv1+fGMht2U91ujYPxftsIYfGXxFdAlEA387F5yh 1cBDpX8+7obkMLMzhRTsWxbRA+pn9+DihcN4R1LPR/NLBRZ+tGGaYbDId3Nd1kXawerOuU5 JxIluF31qP1at0mNLGZJQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:MADKrGKNzOM=:QMW+th3TPjUZOKzGFtyM8z NMjaC5FbaXAamXuUBIFeOTVAJnhqHKHEyA7jlTLcWVMYxXBq68aLJttWYMzrvpjvaUeLJNoTR ZjlKk0fmGGlzliYYd3+xBBtapv5ohE4vt+7C1+b8nY5XGLPzbBfNsh/DBIPnAD7PN1rlC42kt dRkxfqTtM9INQ2sg6BGZVkxxRB4XKlxp6Do9qbQFvbc/uEupphSK4RDLDMuSBHPX6M32ulQET k4EzvyT312y5J+gGHOlMMDm3CmgtC5EyNLu2J+xaMRbFToR5jSRkh9Thjj7NYYAemTfhEAPze /Povu0Zx2S0QKP3oE4OGwmfmyBQi+EX8+Iy8iy33xlnQFcLAEZA8EEcCmOcazXAFTyhfrOpN5 hkQA5uu97KcbAP30dTSABMhMEGCvFFBO6MQEYZ2NjEM8milCAnpK8uZuEOzPecdy2d95wGD3d E3bVW/S1vWOstROn7ZpOQOdjJ1EEq1uxHtVAkuh4W5LRk3IC1JP3UkjAM7v0/lrwDqjIf4jwi 5T+9vzVl0Zs/IECDmvO0Mg2OGBUYslG9o4ylL+MqXS+z2E2xjgj2Vzswfm+yTd3sA1jZm/StG OlNeanZyEQ54NICSpIsrV5nSbrmiMSTMxNexOgiW4yulZ3KsIEQhQ80QmFg91UqFEQTmbAvdt yxYhdtzAiyyxYFrai+ynirYI7QCvUbHYZIkhSdKEXk1/Vv6RTqds/3BiVH7vlm/ZYT3c= Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This shuts up a warning in the 3.18-stable series that has been fixed in newer kernels with commit 498a92d42596 ("ARM: cns3xxx: pci: avoid potential stack overflow"): arch/arm/mach-cns3xxx/pcie.c: In function 'cns3xxx_pcie_hw_init': arch/arm/mach-cns3xxx/pcie.c:313:1: error: the frame size of 1080 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] The fix that went into v4.4 is known to be buggy and was later fixed again with commit 88e9da9a2a70 ("CNS3xxx: Fix PCI cns3xxx_write_config()"). While we could backport both to 3.18, they are fairly invasive and the warning is definitely harmless here as the call chain is known to not overflow the stack of the init task. This simply adds a Makefile flag to extend the limit for this one file. Signed-off-by: Arnd Bergmann --- We do want 88e9da9a2a70 ("CNS3xxx: Fix PCI cns3xxx_write_config()") backported into v4.4 though. --- arch/arm/mach-cns3xxx/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 diff --git a/arch/arm/mach-cns3xxx/Makefile b/arch/arm/mach-cns3xxx/Makefile index a1ff10848698..fd610561616e 100644 --- a/arch/arm/mach-cns3xxx/Makefile +++ b/arch/arm/mach-cns3xxx/Makefile @@ -2,4 +2,5 @@ obj-$(CONFIG_ARCH_CNS3XXX) += cns3xxx.o cns3xxx-y += core.o pm.o cns3xxx-$(CONFIG_ATAGS) += devices.o cns3xxx-$(CONFIG_PCI) += pcie.o +CFLAGS_pcie.o += -Wframe-larger-than=1536 # override default 1024, this is safe here cns3xxx-$(CONFIG_MACH_CNS3420VB) += cns3420vb.o