Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4475496rwb; Mon, 31 Jul 2023 07:27:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFR9f4zvtUw8mxN8wXjBl7NZJ8QKhqQ2JV06kUoYDbgnRfANePd48OLaHzIsy5qn186FrWy X-Received: by 2002:a17:90a:d515:b0:268:dd0:3495 with SMTP id t21-20020a17090ad51500b002680dd03495mr8866040pju.42.1690813654612; Mon, 31 Jul 2023 07:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690813654; cv=none; d=google.com; s=arc-20160816; b=h4i2ngE2IrKIOaCzYYNm6Mz042Ngw59hRclGM9mSL3gKcfpcVjOhGcoFT3muoDpAYI b1enQmqZ9EMCH/psXO4SkfPnJvcdchcLXS9ZxuZefAcprGYVU9HAtCcGfFfoHTRFTyw2 OHmOldX9xEbqkjDqsa4FlQwDXdH/yrNsva3z7Mdkjn+8fDMRTZPy9TK1RiExK12L5JeY CCz3Hxj+fO2tK7ujoF+Sxm8xpmVmEjCY+y717/d7WFXfYwIWbmV1A7WIGFFqSiOvKhTm VoJLWSWOChaWa7bv/1tgxaMXTogeLLYRtFWDdE7RqHM5FLAwXGE63xkgAB55tRYEbW6i UvNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=BM1Yngxq4WCL5TZXrVlUQZbJCiZwR9eXRpiEj4dplEU=; fh=RLLwE7uSQVzIA5kPidoj8Ckgf5R2ZEZsk+EPbSQzPGU=; b=RkTS/HCFiXdFkU8x4F5HDwPVMjjXHfdVXe5zcIoPC2uDmJD6G9x5nXbs+ipeeU/Glg aPqrJaDmwLaIEdaWVyfkuDEsN3P0jvR2pwF6P4wENvGPhOPbf8O6JarpBpViAKyds4Ay J3lm1GlQGDPJfyZaDN2Dj6FkTXvkukcKYd9UAvV1LaIy/8Pn4PoFbiEOAm8NI+HuPn2f VnmcmcOlLN6Ct3DHuEijRgMxfh+N1wNfrAWMZg0/jhC9kaKEZhj3PvO2NHAsBulbnhw4 01HrG0pdk6CD24SCNzh3Ogakdu9s3yHI+s5F2ULzdlU2QS1FZImq+lmZGJJsTB2ljMAw eB5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=jy4RS8jD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z31-20020a17090a6d2200b00267bb4cfaa7si4434224pjj.88.2023.07.31.07.27.21; Mon, 31 Jul 2023 07:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=jy4RS8jD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbjGaNIU (ORCPT + 99 others); Mon, 31 Jul 2023 09:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232982AbjGaNH6 (ORCPT ); Mon, 31 Jul 2023 09:07:58 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 290F510DF; Mon, 31 Jul 2023 06:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1690808836; x=1691413636; i=deller@gmx.de; bh=I5E7In3qLeawhm32r5BW4CB4+4g3GLRaXOk7wIj51uQ=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=jy4RS8jDrPWTY6SPcrgNBJ1FF1cWboSWULhoDUdhJmNGCdgEyaKuo0336hWU3juf3tLZ3vJ dzDKhqe6J8yuaOhl5K5WiapKQZCE9sukFIqeizRf+mScsK/loIAcHnYzApgG5puLbS96ynImV 9C8o+VgFoDF/0G54ZDu27FXqDdwfWHPe3yX2tJ+vrRHBol0cwG/VwRFUZe5Masxe0xpweZkXB oQzG05NQS5T6sx8OY62CkxgPaF5OQ6AmoBgiSaTRJlGxg4VEzb25L3a6yorOjqEajLkf/QvOx C9j+101Nsad20clG95wdIH2KluYlnBYQwUHguXtTobC2NgvF4Wrw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.159.238]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfHEP-1pwtId2EpP-00gnhA; Mon, 31 Jul 2023 15:07:16 +0200 Message-ID: <0cb2ab66-ca30-b2ab-47f7-04208b2400cd@gmx.de> Date: Mon, 31 Jul 2023 15:07:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] fbdev: fbmem: mark registered_fb static Content-Language: en-US To: Min-Hua Chen , Daniel Vetter Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230714003748.91129-1-minhuadotchen@gmail.com> From: Helge Deller In-Reply-To: <20230714003748.91129-1-minhuadotchen@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: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qdn5ulT12Q1+G ooqmWcx4bYiP83HqtMIEV4UuWy1YnxAp5S1XLfHOTS1bFenHUgn5+Utpl4crTKkA+km8Z6/nw CSJvcGrZ90mnDICj6QSKVfH4zuleJ3jvFSy2Qc0X4ZAs/ubkmWUAv7THHkIOMNw6vGkLIDUDV fWgheuawauKKUgBy8Si/qpr+Ez0= X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/23 02:37, Min-Hua Chen wrote: > Mark registered_fb, num_registered_fb, fbcon_registered_fb, and > fbcon_num_registered_fb static to fix the following sparse > warnings: > > drivers/video/fbdev/core/fbmem.c:51:16: sparse: warning: symbol 'registe= red_fb' was not declared. Should it be static? > drivers/video/fbdev/core/fbmem.c:52:5: sparse: warning: symbol 'num_regi= stered_fb' was not declared. Should it be static? > drivers/video/fbdev/core/fbcon.c:105:16: sparse: warning: symbol 'fbcon_= registered_fb' was not declared. Should it be static? > drivers/video/fbdev/core/fbcon.c:106:5: sparse: warning: symbol 'fbcon_n= um_registered_fb' was not declared. Should it be static? > > No functional change intended. num_registered_fb is still used in: drivers/staging/olpc_dcon/olpc_dcon.c: if (num_registered_fb < 1) { Helge