Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2489814lqz; Tue, 2 Apr 2024 21:55:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+P+T5fBIM7i54dkl6Z2UwjUNVPzd40F4BrEvjoA2JKRl/5OmLRz7Yref6tdNsA41wi5pFqHUEUMMOGgCm8Y5Mb+a5YZJEM+1ZOF0ZAw== X-Google-Smtp-Source: AGHT+IF5F7iQwJeJBqADoPfJuvqeLZbdVKptr2Tk0MkCDyJhoner3goML5iaTTTCfReUBXq0Dpv4 X-Received: by 2002:a50:aad7:0:b0:56d:fbdf:ae1 with SMTP id r23-20020a50aad7000000b0056dfbdf0ae1mr1156726edc.15.1712120121410; Tue, 02 Apr 2024 21:55:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712120121; cv=pass; d=google.com; s=arc-20160816; b=c9hvnYL2z4/pYtWSB4N1HC9309lt1VFAVMFXyFMo021vLpcw0JhL2rS3DJKPrx8VfJ cpq3QK63D0rkXyaoPxPwsJRXDE5XdSfF/EBXD/K+JJO/qy1vNi2U+yvPBx5q7gvkq9Bx odN+ZY19idEAXm96rT1X4aHSe+WYMNYcGXpwvV85M2mU+o7knDnWq2qa3BXbzsGjh9Fw 8BaFT+R4U+ISV+j4WWm0lFCEU4WGv6QbP3Kv7K7JMMq1XBEjJ/RyL2qFzivXQ1Q2wigi WNr/niSiykEy2SFJttvXkIAJMeP+I44W7uAaBczLPQBIef56dGEp9mNHRAJn4PsZdQWA B/pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=q4f9Vlc1c6fE4KJdHYEJYDiKQwWl9wsiA4GztUabZYM=; fh=MeWYX1jN/N6YiroLC2i+sZCbLgeKK6Mckx40lx9A1Xw=; b=nwHjJDPIXAF0E5bngoxM/vL/mGxOwQBInjcRR9e6JRJTCAU7RTiuCthssjoZAnO6dH K2q/u65p7eZdnqE0TEhZ9f4CaOeFZ0i45JfD2HecTiVZlOheY8xnAnTZeKzM2J4BWCwc 8FMekak8LX4qcT6dZY9g0Y1mxB/Bb8kpbzKirx8lFknHfg1P5BU8OYLpENL6hIrOENot pidymDQiHOgWUFbMV+QSi0TT9Ce2+cJFMROZXQtjLXNWwqJcf3OHQi01Xb6NMhaOwXDp oL8XtyyKXksc8Rwi3RLrSBiJOQS4kWLdih76OGf8LQWwLBXHZzCzQ/ZQxV0yd1JsT+jj n85A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aqEy1tPI; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-129044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y7-20020a056402440700b0056dc723873bsi3721041eda.163.2024.04.02.21.55.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 21:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aqEy1tPI; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-129044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 259E01F21D8D for ; Wed, 3 Apr 2024 04:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E727545C1C; Wed, 3 Apr 2024 04:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aqEy1tPI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7B4F17997; Wed, 3 Apr 2024 04:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712120112; cv=none; b=SvByVV+PfoYk9NuLjA9iym3DjcLFYwSvh6f8gLOjsPqdNbDR4DnQhMT88ju44BFJ9sSpIW3nxVlZBb+gjd3b3FCQsoRu9TZWTFTl7KxI/AGND1R+rVS8FmPTTFSt6o0z54otlOkolxW08g2ZPQklHqM+N0X9jqq1hGWPJuxaX3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712120112; c=relaxed/simple; bh=vazJuyjxoofb9Ekbi6HE7j4yNVxw4yDdMhz8fsrfbD8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y/1sGcelgOy/ThiTJT7CUTbyd9a4e3nviZPDGPkdDa1mGatqR1QfzU5pU8sVopUFbJJMO0JxhBwgEZY5Fgu1HN9Ibn0vz/0xWRb4H88Jyj8sA/I1asC/lxxqAK9fqVe5GlZa/DcIUuWHQGJJ1ufb5U0a/VbTpEME3tL8qF6NQ30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aqEy1tPI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC5EBC433F1; Wed, 3 Apr 2024 04:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712120111; bh=vazJuyjxoofb9Ekbi6HE7j4yNVxw4yDdMhz8fsrfbD8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aqEy1tPISGkUi+taHmCJF0UGi7x/IGRDep1+clsJP8SKVYwED8SnpttONe7u6OEZ9 x4QXAg5cGX/ldD1Tdlt+RhfaZOR1ocC16gaBuJYwpKjTSTNdeZVXisv5E1gpXFvT+g odZY3JDuQSAVhLkhB3wJgYsfn4dpgZdBUP3SHtdE= Date: Wed, 3 Apr 2024 06:55:08 +0200 From: Greg Kroah-Hartman To: Alexey Gladkov Cc: Jiri Slaby , LKML , kbd@lists.linux.dev, linux-api@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-serial@vger.kernel.org, Helge Deller Subject: Re: [PATCH v4 2/3] VT: Add KDFONTINFO ioctl Message-ID: <2024040306-unleash-scrubbed-1c2b@gregkh> References: <74ca50e0-61b1-4d4c-85dd-a5d920548c04@kernel.org> <7cd32f988a147d7617742c9e074c753de0c6bc1f.1712080158.git.legion@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7cd32f988a147d7617742c9e074c753de0c6bc1f.1712080158.git.legion@kernel.org> On Tue, Apr 02, 2024 at 07:50:45PM +0200, Alexey Gladkov wrote: > +struct console_font_info { > + unsigned int min_width, min_height; /* minimal font size */ > + unsigned int max_width, max_height; /* maximum font size */ > + unsigned int flags; /* KD_FONT_INFO_FLAG_* */ > +}; As Jiri said, this will not work for an ioctl structure at all, sorry. Please read the kernel documentation about how to write a new ioctl for how to do this correctly (hint, you can not use 'unsigned int' in a structure that crosses the kernel/user boundry for new ioctls.) thanks, greg k-h