Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF525C433E2 for ; Sun, 13 Sep 2020 12:00:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 167C12158C for ; Sun, 13 Sep 2020 12:00:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 167C12158C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sigxcpu.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 23E536E182; Sun, 13 Sep 2020 12:00:22 +0000 (UTC) Received: from honk.sigxcpu.org (honk.sigxcpu.org [24.134.29.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB5436E17F for ; Sun, 13 Sep 2020 12:00:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 474D9FB03; Sun, 13 Sep 2020 14:00:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ESA5FQ6H5NID; Sun, 13 Sep 2020 14:00:15 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 4503E45DBB; Sun, 13 Sep 2020 14:00:14 +0200 (CEST) Date: Sun, 13 Sep 2020 14:00:14 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Jason Yan Subject: Re: [PATCH] drm/panel: st7703: Make jh057n00900_panel_desc static Message-ID: <20200913120014.GA10607@bogon.m.sigxcpu.org> References: <20200912033809.142773-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200912033809.142773-1-yanaijie@huawei.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: megous@megous.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, Hulk Robot , thierry.reding@gmail.com, sam@ravnborg.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, On Sat, Sep 12, 2020 at 11:38:09AM +0800, Jason Yan wrote: > This eliminates the following sparse warning: > = > drivers/gpu/drm/panel/panel-sitronix-st7703.c:156:26: warning: symbol > 'jh057n00900_panel_desc' was not declared. Should it be static? > = > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- > drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/= drm/panel/panel-sitronix-st7703.c > index c22e7c49e077..7c07a8fc8506 100644 > --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c > +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > @@ -153,7 +153,7 @@ static const struct drm_display_mode jh057n00900_mode= =3D { > .height_mm =3D 130, > }; > = > -struct st7703_panel_desc jh057n00900_panel_desc =3D { > +static struct st7703_panel_desc jh057n00900_panel_desc =3D { Can we even make it `static const`? With that Reviewed-by: Guido G=FCnther Cheers, -- Guido > .mode =3D &jh057n00900_mode, > .lanes =3D 4, > .mode_flags =3D MIPI_DSI_MODE_VIDEO | > -- = > 2.25.4 > = _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel