Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3204933pxx; Mon, 2 Nov 2020 02:55:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKzyYR9wzD5mZFxEEFkmDuwA5lvWJsrf3ZG+IJCQCp1OaxDndhcGmPLDbXpwoxvcPoFMnT X-Received: by 2002:a17:906:a04c:: with SMTP id bg12mr14389681ejb.317.1604314546392; Mon, 02 Nov 2020 02:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604314546; cv=none; d=google.com; s=arc-20160816; b=jkakZukz1YkhdsDShUytPCqI2iLh8JCfDUwpdTdRBjWSXCauGiHJlvGx7mIbagPtPu BQn8yw1+auc2eOjXjlvC8on1SFNTy/N4YfPdsGgausT0e8Y1cdYSgEz6efoDBQopFzub bOV3dqgxYbWGEPvNffWhpbkbIxYhFvu2IppMvvpVWgjRyFW1IEiKcBaybo0WgwXp63Ah +fogYw36iiiPc4PoNhUEuWnZOkugYP2LjYBAsaSpxMAAmda5J692pxbH5in4Hnr9P8yN zOtYms0iguwUGuzZzhBpAx29GKTPNosyVTvlNYMzCFbH3lMh6QI8wJWUvnG2HrUkjiAX Jw2Q== 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:cc:to:from:date:dkim-signature; bh=tIqjmuSJa/aLDfaBRrGmFrpGnbcflQTqm0uzq8ZOD5s=; b=AzA7jfBvyTSSOCHqdB7P5+AjYCu77JUkRyQtmscCcGoIacnU+/Q1gwoHDs3oDCJEGc TmvY8pR1mRRcsYvxzsh+GPwJbvNwV8EbVrrluG0LoxPiPqR0FmfCSG7tOoUN12P1UoF5 38cGU2FAlEbVWLHqE77UYNzhUz8eRa3VF8ZCR9DHvBgY4rrJ/xs81MQq8WBsjk554dje 5dhO2V3K5vbqUv6dYPQqzKc8kII5ckXMylDEXZzxfs1JDYzoqq521fKKfbnzrjsNfN1V aD1ssMW3uhHZ0uTzJ0d46XfkkFLVpGtVKaEfVbbs7x538T1bARfstwFHTB4iUoRQxRLe JGrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FrBvBKgl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si9854456ejz.386.2020.11.02.02.55.23; Mon, 02 Nov 2020 02:55:46 -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=@gmail.com header.s=20161025 header.b=FrBvBKgl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728362AbgKBKwi (ORCPT + 99 others); Mon, 2 Nov 2020 05:52:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbgKBKwi (ORCPT ); Mon, 2 Nov 2020 05:52:38 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A180C0617A6; Mon, 2 Nov 2020 02:52:38 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id t14so10475774pgg.1; Mon, 02 Nov 2020 02:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tIqjmuSJa/aLDfaBRrGmFrpGnbcflQTqm0uzq8ZOD5s=; b=FrBvBKgltnlkrDLjwRMFsHKFW/M/2huDzem/NZ0FwtAtqPL0TPrjBLiVj8xPtGqpQ6 ATYUKiz/HTWggIs5pJZWqPQ9EDiDeREb+qdRlnFXl6X6paEvBnXBcrtBnx36jFLyGRO2 DRLpVEi/SoMr1RyIeNKuI2Flvs1Z8ofaZTSqV3mwiljtjvH0NAPDLkJh6PxVB69Xmzbi /kwFctycSeRibulQBG1bTYt4hrgIu+Etz383kzjO/eaMhg88MgYE8KrGhQrhpGmjq6Uw iF7vgnZiP3WoWh/BJsiu4gHb3Dog63yxs6p4bJjF0QDEhG3skMCz/wKKB4RxzMoCBvvP k5xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tIqjmuSJa/aLDfaBRrGmFrpGnbcflQTqm0uzq8ZOD5s=; b=MfKkBm8Uj52JLY4h+ssdKktAEh6pdOt7GxJ8DRloXRhlQBEOz+5jexNH7yKraEkazT ibpmPz/xz4L7cBCrfd0B0OMrc10w3wkuDVpQsI6xPHNiIkg6pNCads8OwR4ODWbrdrrp HPfSA77k8sTaWReDjtRMVjNCA6SfXvY4z/EnDXz8PaorTv2SULFPtbM6FrIafe1TVuy0 xEQj/9N8NDoPsBP+88Hn6w1sch+91zCsT8xzi5VZaeLPJQ/8IAkQMlz7+ODDkR8U2+B3 MLApoE+kg9I0htE7k1QJ97Ojh9pLV8ilYDOOv3zrLEiMss2lFOKRHOTbvjHHxFGcHCLB bjEw== X-Gm-Message-State: AOAM531iY7MdRJYLEbJHd0QBZwvraUrSvh39EVkWGIOAoBKiZlr7Ra6n TjfnDQV2h8wQrOq58bL0SQ== X-Received: by 2002:a62:ddd4:0:b029:155:af54:3000 with SMTP id w203-20020a62ddd40000b0290155af543000mr21301123pff.64.1604314357575; Mon, 02 Nov 2020 02:52:37 -0800 (PST) Received: from PWN (59-125-13-244.HINET-IP.hinet.net. [59.125.13.244]) by smtp.gmail.com with ESMTPSA id 136sm13802489pfa.132.2020.11.02.02.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 02:52:36 -0800 (PST) Date: Mon, 2 Nov 2020 05:52:28 -0500 From: Peilin Ye To: Daniel Vetter , Jiri Slaby Cc: Greg Kroah-Hartman , Thomas Winischhofer , Bartlomiej Zolnierkiewicz , Nicolas Pitre , "Gustavo A . R . Silva" , Tetsuo Handa , George Kennedy , Nathan Chancellor , Peter Rosin , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v2 1/2] console: Remove dummy con_font_op() callback implementations Message-ID: <20201102105228.GA1558395@PWN> References: <20201102101347.GN401619@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201102101347.GN401619@phenom.ffwll.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 11:13:47AM +0100, Daniel Vetter wrote: > On Mon, Nov 02, 2020 at 10:47:55AM +0100, Jiri Slaby wrote: > > On 02. 11. 20, 10:36, Peilin Ye wrote: > > > `struct console_font` is a UAPI structure, thus ideally should not be > > > used for kernel internal abstraction. Remove some dummy .con_font_set, > > > .con_font_default and .con_font_copy `struct consw` callback > > > implementations, to make it cleaner. > > > > ESEMANTIC_ERROR. > > > > 1) What do you refer to with the last "it"? > > > > 2) What's the purpose of mentioning struct console_font at all? > > > > 3) Could you clarify whether you checked it is safe to remove the hooks? I see. I will try to elaborate in future patches, thank you! > > 4) All the hooks now return ENOSYS for both consoles (and not 0). Is this > > intentional? > > > > I know answers to the first 3 questions, but you need to elaborate a bit in > > the commit log to connect those sentences. Esp. for people not dealing with > > the code on a daily basis. Ad 4) I am not sure. > > Yup the behaviour change from 4) needs to be called out. I think this > should then also be done as part of the large patch series to remove the > dummy functions from all console drivers. > > I don't expect the errno change to cause trouble, and it's the more honest > errno - changing fonts not supported is the truth. But if it is, we can > patch that up appropriately when we get a regression report. That's kinda > unavoidable with old crufty uapi like this one here. > > Also a bikeshed: Additional information like the patch changelog or > reasons why you do something is imo best to include in the commit message > itself. It ends up looking a bit less tidy sometimes, but often there's > crucial information in these parts that was accidentally left out from the > commit message. Sure, I will try to include sufficient information for one to easily understand what I'm trying to do with a patch. Thank you, Peilin