Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1506287pxb; Fri, 13 Nov 2020 14:49:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv1Z+EZNZHEdiJnzSVmHd5HbJ/tFF72cDRP/Sj2Yz0iXmq+rQH3wi+tBH+43unVe0Tdw4c X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr4084176eje.229.1605307758346; Fri, 13 Nov 2020 14:49:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605307758; cv=none; d=google.com; s=arc-20160816; b=XoHurfPFPbZWKC9i7Haq8cM7u5utBrHRAKPQRO6lP0YBHqevDPum5Fy45Dk7BsAXoL 6WK5cL2JI3mI9KSQ0h1dqAqKJX5oo6TtKXHSn897iPuNprszKlsdpxPc6DjHI2o+SDvx p5Sq4dFEjxpt1dQSQMAPf3LxS+NPkC18UtJJGGsiPcpkY4kaNB8wwfDD35jUg5KvRwZC En6MJBpygugyOl52BTlGSOs1YW6+zX3ZzgzKLijTi46X0YACPaC9sDkgHLYc4TBvXdWc yy8B6YnGQ8vd0Ymii1fIXvD+6lXNGxLCnV4UEQb+X62fQRogNwF4nkJOXBzqmVPDxDjh 0V5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=NxgtVVzc2aSkfyK8olTd5x0T5P4MtLi1joBzYtzQ3+0=; b=hortCB1CLfXPNQHLvpz/foNwv0HswZ7DDlUCQgONS9Ho8gXhHViJ57ggeWrOx4D9By e5J3ERvAbFb8F+vPt/EaojKfaEHnwipEluc20xywEIqrbG87tegA5BT/kL/LUpYJyQGa aOUry72HwLmK4I5Ph9UCZlGnJ9JUcdkfv/8D1CIkSnkqvuZqEhBlls5ySRQRzmkSt85P JujUllr6lx7zQSsKMMqm1AlnQpMy/A3V4ANbByWz0o0lTJJCHyAKsYgYChhRZZubE6eX Npo4NagjyPuzgaubXULFTX/nPO3JEugSP+/U5JPlaGJuZXSxV4JM55TN3xSKHUc8G6cX S2zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NYryAWT6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si7295546edm.376.2020.11.13.14.48.55; Fri, 13 Nov 2020 14:49:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NYryAWT6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726270AbgKMWq4 (ORCPT + 99 others); Fri, 13 Nov 2020 17:46:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:38386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbgKMWqz (ORCPT ); Fri, 13 Nov 2020 17:46:55 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5AC852222F; Fri, 13 Nov 2020 22:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605307614; bh=mrL0p+Bsz9/fxM2HbgiWUgT1fPwu1dJyQ2h/5u3OJNk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=NYryAWT6CwWzB1rPlCYpRNJsYOJjneOQ3BeqQ+F/7LBwWIzlj9y6vK7yK0Lw7JCDQ 5C3PKfustD80DXUx38QvAHi7mtwK5Sbpszv1XDpSUIRqZjJLv38IclNxTHFqA1K+do XKIj8zbvM5EUHLzGnJZ9XyKa65Fk3N85HDbjw48Y= Date: Fri, 13 Nov 2020 23:47:51 +0100 From: Greg Kroah-Hartman To: Peilin Ye , Jiri Slaby , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c Message-ID: References: <20201113211633.GY401619@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201113211633.GY401619@phenom.ffwll.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 10:16:33PM +0100, Daniel Vetter wrote: > On Thu, Nov 12, 2020 at 07:02:21AM -0500, Peilin Ye wrote: > > Hi all, > > > > This is a collection of some miscellaneous clean-ups for fbcon and some > > console drivers. Since v2, I rebased them on linux-next, added some > > Reviewed-by: tags from Daniel and Greg, and rewrote the commit messages as > > suggested by Jiri. See [1] for v2 links. > > > > It does the following: > > > > - Garbage collect KD_FONT_OP_COPY callbacks since we disabled it > > recently. Mark it as obsolete. > > - Delete dummy con_font_op() callbacks. (Reviewed by Greg) > > > > - Add a charcount field to our new font descriptor, `struct font_desc`. > > (Reviewed by Daniel) > > - Do not use a hard-coded 256 for built-in font charcount in > > console/sticore.c, use the new charcount field of `struct font_desc` > > instead. (Reviewed by Daniel) > > - Similarly, in fbcon.c, avoid using the magic negative-indexing macro, > > FNTCHARCNT(). Set `vc->vc_font.charcount` properly and always use that > > instead. > > > > Daniel, hopefully [5/5] removes FNTCHARCNT() for ever, but I have not > > tested it sufficiently yet. I remember you mentioned elsewhere that > > "fbtest.c" is insufficient for framebuffer testing, then how should we > > test it? The first 4 patches should be fine. > > > > Please reference commit messages for more information. Thank you! > > > > [1] v2 links: > > > > 2/5: https://lore.kernel.org/lkml/c5563eeea36aae7bd72ea2e985bc610d585ece40.1604306433.git.yepeilin.cs@gmail.com/ > > 3/5: https://lore.kernel.org/lkml/20201028060533.1206307-1-yepeilin.cs@gmail.com/ > > 4/5: https://lore.kernel.org/lkml/c38042bbf5c9777c84900d56c09f3c156b32af48.1603788512.git.yepeilin.cs@gmail.com/ > > 5/5: https://lore.kernel.org/lkml/20201028155139.1220549-1-yepeilin.cs@gmail.com/ > > > > Peilin Ye (5): > > console: Delete unused con_font_copy() callback implementations > > console: Delete dummy con_font_set() and con_font_default() callback implementations > > Fonts: Add charcount field to font_desc > > parisc/sticore: Avoid hard-coding built-in font charcount > > fbcon: Avoid using FNTCHARCNT() and hard-coded built-in font charcount > > Patches all look good to me, if Greg is ok with me applying the entire > pile to drm-misc-next I'll do that next week. Yes, please do! Reviewed-by: Greg Kroah-Hartman