Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1827455ybi; Mon, 1 Jul 2019 00:55:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyneaKCuUE9h0OarZA2KeNI9XfOQFxDTBZwI/9G+NoJIoAlyMzhp5curHr7oWUkNzi5oO2C X-Received: by 2002:a63:4d4a:: with SMTP id n10mr22859398pgl.396.1561967755614; Mon, 01 Jul 2019 00:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561967755; cv=none; d=google.com; s=arc-20160816; b=tMFqihGC96sHiMvPnOc5edyOKEITIvsbP9ZgaRY4F1jITqkAiSe9mP6k1irJtjnZ43 io43V6fuYyW+bOKc1893afVYlYPPsOyNTRl/YdrsZ2maoNH1x5//JxCqGjvUtnrZvarT 4/Sw2vBkXJg+lnqkq8BC/DSht6SA6Kt/0TG7G7ZTBii+mGpqQLD4qM3OOI6lWLSKZzF3 sV753AKRrRvgoqqiwJrK3dPfKeRye6Hex9dkFVPpbIgaDAgZeWIK4hCEmPaWmqWUezIY nW1AILvI9CwyxKCfdr3me/r2I6thUoillosMKCF+enjCn0EMH9tCE1UU1mKfDI5Fd+IS hk2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=koq/GRWQMeEweaKfTTrov2JShUctQaBhesDrYac2uLM=; b=aRjCBhnAq42HjlEeZORVtSMu1pEfVQus1+aZeXu6BzWyGQylRYsM2ZaYaE4JHYpaBY RSVVEw4QDZ7vMN1502NsBBLghP5KxVsiA8w6w9GhNZLYWYkMCFyC8iu6QHPhiVPRbJkk fzS5S/CkrW8aM7QeT39JQaf/BUqLiMzWZadPckelNNr+eIFL5f41ZrrWkzCIMztfHf3T 9JCIzm7cbDJ99BSh3TqVF1+QYXAFIJeEMu0vZskr9E5HDA4OhgHiLeJZNp9oMzbqbj0y jsQY1yihl2B6BlJAGCXfCc++PRHToSF9eiEJs3ASerO6uJ4fGK20+BsG+hRWgWOYCwvc tWAQ== 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 j2si10413459pff.230.2019.07.01.00.55.40; Mon, 01 Jul 2019 00:55:55 -0700 (PDT) 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 S1727374AbfGAHvj (ORCPT + 99 others); Mon, 1 Jul 2019 03:51:39 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:37531 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbfGAHvi (ORCPT ); Mon, 1 Jul 2019 03:51:38 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.ripard@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 5D67724000A; Mon, 1 Jul 2019 07:51:29 +0000 (UTC) Date: Mon, 1 Jul 2019 09:51:29 +0200 From: Maxime Ripard To: Arnd Bergmann Cc: Maarten Lankhorst , Sean Paul , David Airlie , Daniel Vetter , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/selftests: reduce stack usage Message-ID: <20190701075129.wu5q5j2cl6fkkzxp@flea> References: <20190628121712.1928142-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k3xrq2kk3vkmur5d" Content-Disposition: inline In-Reply-To: <20190628121712.1928142-1-arnd@arndb.de> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --k3xrq2kk3vkmur5d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jun 28, 2019 at 02:16:45PM +0200, Arnd Bergmann wrote: > Putting a large drm_connector object on the stack can lead to warnings > in some configuration, such as: > > drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:18:12: error: stack frame size of 1040 bytes in function 'drm_cmdline_test_res' [-Werror,-Wframe-larger-than=] > static int drm_cmdline_test_res(void *ignored) > > Since the object is never modified, just declare it as 'static const' > and allow this to be passed down. > > Fixes: b7ced38916a9 ("drm/selftests: Add command line parser selftests") > Signed-off-by: Arnd Bergmann Applied, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --k3xrq2kk3vkmur5d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXRm7gAAKCRDj7w1vZxhR xSj3AQD883LdPCF2VHnJQSOigD1rze6Ji5RXavfZBuw0Wl+AFwEAhNezyMQujyQ9 tnGzcooJ6/8XWBIhPBIfP0Hs3nkamwk= =tsnW -----END PGP SIGNATURE----- --k3xrq2kk3vkmur5d--