Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp330125imn; Thu, 28 Jul 2022 01:48:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRIW/Ws0Tn6QNaFtZNyh8e6ZwaEH1x2klSI3ee3FL7GQu2kLEFNWqEWfoyNeHSU53KG/Jb X-Received: by 2002:a17:907:2724:b0:72b:526f:6389 with SMTP id d4-20020a170907272400b0072b526f6389mr7417823ejl.289.1658998130003; Thu, 28 Jul 2022 01:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658998129; cv=none; d=google.com; s=arc-20160816; b=DJaN3db1Rc5PN5rqNJNDu1ytpclyEAD/q4MjDHf7sEYURrh+I8Pfdk+fRWu7+PZ54G R9Oko0Jow5blc4qajsk5hElV+QQOwErao9RfSQGIj2cE6RLmn4+slQZ1YKowiY1hmlDe hnPdW7t2K8HuoqvlXS5CzJKn9RXQZp2+RR77QorGU2lkaoKawNYBSkNnvgiAyfWl/P8A 3u797IwoSdDzHkcuXxbEhKzKHXjhWLiaWzc6ueVE8l5Iz9C3BPxPwi1+JaGHwsAt7jDZ vpR8MxfsmlhYOjnRfHTO19RqNYUOcDVca08i1gFrKF2LiA+6HUHzOWb7XYehKviRBo5j Y9LA== 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=q4S0I7f04jTl37DBpdqpwlnKME2Sr1XHH3igIh585uU=; b=xhVskp7bhcQuGJBdksaxh6Mr5odVv0jbkvTAUmtjmWk2On9a+nv1E/My15eT37PFpr 9QfIPukSsFXGbOB04mHlX9yBjHTKGNiO5ntcx50TD9+OuicQvFIWfj3XDr2yCtXX9Gmt xictGAbq0Fp8SCMY2y1QOltaBwBnFYVu7SMcU9wwCkKYbon7MkdsAFKHh+GhdudnMIKo Z1gAUW8qgnLgRWASJoVS/mAsCeXJxa96YgL94nsu9dUydKw5R9ZnCacIWjXr/IFDVdrT JiBnc9EHq5MYvabQe7Qk/jAl/bCr6RxVQ0rRNhhTZUHB+msBiEwy27zI0so8DjwLl04n iMLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZpNAlTLj; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vf4-20020a170907238400b00726d03899basi195444ejb.344.2022.07.28.01.48.25; Thu, 28 Jul 2022 01:48:49 -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=@linuxfoundation.org header.s=korg header.b=ZpNAlTLj; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232973AbiG1I0Q (ORCPT + 99 others); Thu, 28 Jul 2022 04:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234026AbiG1I0O (ORCPT ); Thu, 28 Jul 2022 04:26:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 579225A899; Thu, 28 Jul 2022 01:26:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F115D61BB0; Thu, 28 Jul 2022 08:26:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1499C433D6; Thu, 28 Jul 2022 08:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658996773; bh=BE1Uf+u1Zq72ZASnCeBKBLimp68pHrCgnFdgo08tN54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZpNAlTLjLV4qOnyUNzXseY2L3I4tIZRxIiIHi304cDyWHFa1ZfCLGo22Rz/hworxb 2mr8AxqZLRaAqGvt+l6JNKNQxgXXc4Zklo/UXQxUfWQKV/WNwisSKUeNhChEAEkd/f g/NXEjIk6kfIzf+bfvGD3ZjW9ZWdFe//6UrahDRY= Date: Thu, 28 Jul 2022 10:26:10 +0200 From: Greg KH To: Xingrui Yi Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vt: remove old FONT ioctls definitions in uapi Message-ID: References: <20220722061133.7765-1-yixingrui@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722061133.7765-1-yixingrui@linux.alibaba.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Fri, Jul 22, 2022 at 02:11:33PM +0800, Xingrui Yi wrote: > As was demonstrated by commit ff2047fb755d ("vt: drop old FONT ioctls"), > old font ioctls like PIO_FONT have been deleted and KDFONTOP ioctl is used > for years instead. > > However, unused definitions of these ioctl numbers and "strut > consolefontdesc" still exist in a uapi header. They could have been removed > since no userspace was using them. Otherwise they will become a > misleading for users, and users will fail with ENOTTY with wrong call. > > We are moving old font ioctl numbers definitions here to guide users to > use KDFONTOP. > > Signed-off-by: Xingrui Yi > --- > include/uapi/linux/kd.h | 13 ------------- > 1 file changed, 13 deletions(-) > > diff --git a/include/uapi/linux/kd.h b/include/uapi/linux/kd.h > index ee929ece4112..d739b17fc942 100644 > --- a/include/uapi/linux/kd.h > +++ b/include/uapi/linux/kd.h > @@ -6,19 +6,6 @@ > > /* 0x4B is 'K', to avoid collision with termios and vt */ > > -#define GIO_FONT 0x4B60 /* gets font in expanded form */ > -#define PIO_FONT 0x4B61 /* use font in expanded form */ > - > -#define GIO_FONTX 0x4B6B /* get font using struct consolefontdesc */ > -#define PIO_FONTX 0x4B6C /* set font using struct consolefontdesc */ > -struct consolefontdesc { > - unsigned short charcount; /* characters in font (256 or 512) */ > - unsigned short charheight; /* scan lines per character (1-32) */ > - char __user *chardata; /* font data in expanded form */ > -}; > - > -#define PIO_FONTRESET 0x4B6D /* reset to default font */ > - > #define GIO_CMAP 0x4B70 /* gets colour palette on VGA+ */ > #define PIO_CMAP 0x4B71 /* sets colour palette on VGA+ */ > Did you rebuild a distribution like Debian to verify that these values and structure are not used anywhere? thanks, greg k-h