Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp499984rdb; Sat, 19 Aug 2023 10:08:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIInY1czlcK1sX3Ef7TJ2kxq15NS1nqf1Nb55okfUnHlhNzOX6DqZUOJdgUBMFYSrU/oHC X-Received: by 2002:a05:6a21:78aa:b0:133:7a67:b477 with SMTP id bf42-20020a056a2178aa00b001337a67b477mr3658520pzc.1.1692464926029; Sat, 19 Aug 2023 10:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692464926; cv=none; d=google.com; s=arc-20160816; b=nz5Y4KlZZm7HTfR8d+Ex/7LuMjxRvSd8Y7Ze6XXvUySXIgNtOvFiw7OD3iqJXJt9KO dpUHx6Mc3dvsJVz9R36tjxyjk1uvaHw/B4DDiJ9ywhVItKBjq8M/UTMxuDzf70yobxQa iWZw+yMf9M/zche62iz1juorPa5D70wWHZU7bE4bXVEXVpHd80z9mLPwGfvy0o7m1IeA D6lUi8JoYO62Y4lDZawc46kG74pcazWAXFH6Jc9f+Lcofx81koIdQA6+5ruWlOZyZQFF +f9P2wQvY2+jhRHASNJM7fQTjKIZ9L2bmLN7OmuYGzIgdl5yISBPHmbcjw1wV78NAvNU dEgQ== 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=mNzzqw32W8O7SLjNcKb23MGDVRiUSvqSqhOf3zrfZRc=; fh=RLLwE7uSQVzIA5kPidoj8Ckgf5R2ZEZsk+EPbSQzPGU=; b=DbL4KSravAKEln167nPK5ZhIddLgG2h92Av4xOh1iauaQs313wWWblmi5VFIn4j8jX iknBy1PuAHSfKVbxn96dK7HRbTzYDv2YMjtvtvISyxLUabK+BJJgVVTQj5hE6Qle1fmU SI3+HVNCofK+tEO0VrpNXVrKSkBWlHzMwuHIO1syaOMtQm+KuJRuwZR1Kh7GtHuxitjl FajkByE09E4XIXXQDERTRxeDhJKqkJKtqouPAC14M+0axnPgJbHgVhbh9NhK2J4mO/33 EcX/pCBfspG1tTDXfS2b58fVXnZpVYyesuUWmahejC1rpyNZq+BsVdmeeoSXB9i9z238 5fFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=Wq9BrPns; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x66-20020a636345000000b00563eda6a8e6si3611264pgb.613.2023.08.19.10.08.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 10:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=Wq9BrPns; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B4AC12942D; Sat, 19 Aug 2023 01:54:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240266AbjHOVek (ORCPT + 99 others); Tue, 15 Aug 2023 17:34:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240288AbjHOVeU (ORCPT ); Tue, 15 Aug 2023 17:34:20 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86AAE1BD1; Tue, 15 Aug 2023 14:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1692135253; x=1692740053; i=deller@gmx.de; bh=E9CckG6XcdFR8HPPz/iR9yKn0KhZK9QhCyWiDWcz09Q=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Wq9BrPnssV/EenoS0RCM0prLNu0jYmlaycFHYYri5AjAIjlCe+myxc7cdk5vX90cyXMP7zr sPhfc9jcLA4J62SKeFJ6Ah+bmcWPRGwh0MnaLFeS3Lz9KR2WNju5v3vxoJGxPmp4XzMkZMPdJ cbPPIuo+p0dfBfYUNBDWFtWpfGpQF2DGRNsSLhu39TQEGlhUNwbJvfZYpWqFlvS7tmA8KDZGh 6Q7Xs68o50zhUgdx8yJX+0+m1SO2VuJEeosLgc8FTYMvuwsk3mk6arY5IqS6hYwENAHUWl6/6 gx8bGjgTuU/HZGbGn8M/eWqE6IU9GPHgCAAoATFN3+u6UYr5RkpA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.159.222]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMobO-1qFSCH1sA8-00IlXW; Tue, 15 Aug 2023 23:34:13 +0200 Message-ID: <0423ff9f-f783-0986-9867-7862560b8c59@gmx.de> Date: Tue, 15 Aug 2023 23:34:12 +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 v2] fbcon: mark fbcon_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: <20230804113237.51653-1-minhuadotchen@gmail.com> From: Helge Deller In-Reply-To: <20230804113237.51653-1-minhuadotchen@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:p6BM+Ff27coe+zLMg2wCwXzgpqVyC5WXdEQyoFGtRmHOqROCrt0 sC6IoF0xcSBdrWVwHXaIJq6kqhuhRVw//tdfPxoOkXs7oEG3od0ZW1Ta0lrgeSMZUrp2QhP FRROI6wauRG0C2CnobYXU0xY8TWUtDV/spdXxvQkAdahbIhyVFX+LU9DvgKlRT3Ew42oEP6 Cxw7ctFz2aaHkVdgLr0Mw== UI-OutboundReport: notjunk:1;M01:P0:YYDjm/h8/2Y=;3WRuj6txlGau774QBVBT7QGpwov 3XOZzXwjg6UKeMnjjyqwCu6jG926bKJb38+SmWGjyh/KKA66fWYQ6YLaHkXd2XskzR5JX6U76 nlvB0B7Bk+yr62EgrpY+e+B4K4mZ7SlYuBng2NUxFeB1ZJ2cvzB4lDDGLn+dM0sugwpk83ZFF SYl9KeYFjfauGPLsACx1djLIs5jo4APj0Oeorf0Bl1P4A/jRQUEDpCDdj8qD4KqyVnrYdI+wD UIQa1pqNZ6ckRbHRzg+o2hpdZZKood2LBYrANADalF43Ufos/G0sEHJ5Wjz70H4aREDzulUW4 umzWwV4Q5mSBqG+5etyyS4danQ9bQZ3ZgLWfo+lS/Y1oZsgLPQbxduDVHLhJcDQWLIANtyytp 278aog6uk+XtlAWdXGRe3xCdph6AScEbCQA5IkT5Ig6ln9gKSzPdqJpm71lFAQL3gTghNbgGy je+VAZPbxXr+cM7VBQVEY3tD1UxtU80yPHHVY0BSfCe0bP7lImLqHkLdDb29LVe0Egtq+pLDt qElaUD5g7YUX3VPXzY0cjMA4aX0aCMPDX7L3hBZk2b374GvqQ4ZlMkar4FOClLcNdAXJor8Rj PxopP/M+d1/pwYNTjpNH0NHRqotLxnyuBEmIgqMKYqUL0TfYIs5xMHfwXTwe4LS644B4fkOtG V1Uqk41JE+rz+ysPQi5w3zADud8JSRr9JE/Oa2It9f7InYGP4/9lljPIKXKPEYCVBniHJmRyT v7fD7sNBJ7ev5lepSJBF6y04wch/csBvfATMmYnWVr9HmaPByairjWfaiI8gJAs2qarUhT14h XOecrnad+ybtDljXsSUzbWpsE0r0hgkqssZ3Q5oILv/Hrmnr22VbzskD3zlObI7DhE6Rn0uoJ WoUstQ7i0ndfLh0t3w16SMj04jW4xHjLmj4TnrKetgcopoLObFZjTm+CBlrBqGwhaIr1tWHVJ mtXO7VMMTBdKenfgdTIyaeGEyfY= X-Spam-Status: No, score=-3.1 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_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 8/4/23 13:32, Min-Hua Chen wrote: > Mark fbcon_registered_fb, and fbcon_num_registered_fb static > to fix the following sparse warnings: > > 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. > > Cc: Helge Deller > Signed-off-by: Min-Hua Chen applied to the for-next-6.6 branch. Thanks, Helge > > --- > > change since v1: > 1. registered_fb and num_registered_fb are still used in drivers/staging= /olpc_dcon, > so do keep them as-is. > 2. change the subject to fbcon: mark fbcon_registered_fb static > --- > drivers/video/fbdev/core/fbcon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core= /fbcon.c > index 887fad44e7ec..976900d6893c 100644 > --- a/drivers/video/fbdev/core/fbcon.c > +++ b/drivers/video/fbdev/core/fbcon.c > @@ -102,8 +102,8 @@ enum { > > static struct fbcon_display fb_display[MAX_NR_CONSOLES]; > > -struct fb_info *fbcon_registered_fb[FB_MAX]; > -int fbcon_num_registered_fb; > +static struct fb_info *fbcon_registered_fb[FB_MAX]; > +static int fbcon_num_registered_fb; > > #define fbcon_for_each_registered_fb(i) \ > for (i =3D 0; WARN_CONSOLE_UNLOCKED(), i < FB_MAX; i++) \