Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2152578iof; Tue, 7 Jun 2022 21:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZVzfHupbsMYyEpukuMJyWx2y2Shs8RLVSo575CyjtdUWpHoUHq+WrRSW4lxOqtuBjHUTl X-Received: by 2002:a05:6a00:1688:b0:517:cf7b:9293 with SMTP id k8-20020a056a00168800b00517cf7b9293mr100737181pfc.7.1654662655734; Tue, 07 Jun 2022 21:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662655; cv=none; d=google.com; s=arc-20160816; b=kHOvZ776qCqsUMGv3ORoCAQ0h/cJRLAt5iTonywbP4nYcg0qTpUHR2En4yqHW4ghTK lgcIvnLeyapRwrV0Ruy6usEE9uai6w+a6BS4JGniG7DHv26MpgICF6ngtnsmMRH2cf39 h9sk69zTS5FTOZi3iPPLT80JUFVqqTCdXWBs+hmJgiY755V585BReYcECrJXJGuseIRx 7LEDfpVEhFEAPy53p9atuAzZ0C1mVcKWqkIoFVM1uRF0vulVnJGbA495uu+9KqJ7gYlz jX8aiwXhy9CPMWuyPUY9WDQvJl9KdtuWrTyQk4VRalulLG4g2IdvkyDCq21wVdYmFjnj iMPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=He4kctfmL3tRI0olic+g7BxXWSHbLP7Hn7WoRSezVTw=; b=iYHbv+kOwFeVXRtDElpK06mUH0buQhbc55GLGgm3qNaknuK2RNqzASk91Vr8f4t5aL L15R1OaOBv+cZH66PQqAdg6yaw1JPI4rFK3OTE7xilYr6QIxTUXESpF06gnMAphQ1z0n Wb3tl7Fx6dip5BiOQH0pay6Bb2bju8pIWihI/rXvZFOo9nQKdKPUO3Y9xz+gp8FX6QM8 mblRV2dSun94ENR7XoYhwjxZbyl3G4plrYKCIqwyr/yNFpbGkh3b/oKhM2WD6Rk7vntL 2YCW8FmauU8LLM6IV+U7htrei6KcJCNSfLt8g0/xSetlX5xS0srnryS3/5VLdVMKRGcO MyVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ViiGPncK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e18-20020a17090301d200b0015ce8cd506asi29705492plh.325.2022.06.07.21.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:30:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ViiGPncK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 817AC2514B0; Tue, 7 Jun 2022 20:59:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244736AbiFGNcm (ORCPT + 99 others); Tue, 7 Jun 2022 09:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244738AbiFGNck (ORCPT ); Tue, 7 Jun 2022 09:32:40 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7846A27B19; Tue, 7 Jun 2022 06:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654608757; x=1686144757; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=535L1jI1nPmXoCMEC1TyzG0h9F+iwaHcjFYWul2Vn3w=; b=ViiGPncK1J2bURoJRLwAVJwYeQmisFepc/dqw5/axtuvDHfH0ZI+/QlL rrRKkg3kYnvTt2NpaR2vZkdNyp0n2nEsLZ+sFyXxdX+VgTQtdVbXo70r+ YOQ/HZscmqqbWisT8147oJv2qcRPCaRfCdg6Recgf2i5rVNwkqSoxQwg1 yXAS1BX4/MvJSvdYuUB32NSxePjooXoz5C+DMAJAR5mgZXnDmaEfpgvJO Q3bOmvc6xvf/izaXEQfQACQfOvWqvFNkDWJjzGjM7Hs6EqAjL9zwQ5tHH u0g33Gda6X/kOJmpT97NLn0RdzE2Z/PYVzUkUeOmlyJN7wY0N2GM9a+ix g==; X-IronPort-AV: E=McAfee;i="6400,9594,10370"; a="276762499" X-IronPort-AV: E=Sophos;i="5.91,284,1647327600"; d="scan'208";a="276762499" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 06:32:37 -0700 X-IronPort-AV: E=Sophos;i="5.91,284,1647327600"; d="scan'208";a="584199696" Received: from akmessan-mobl1.amr.corp.intel.com ([10.251.214.146]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 06:32:35 -0700 Date: Tue, 7 Jun 2022 16:32:33 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Jiri Slaby cc: Greg Kroah-Hartman , linux-serial , LKML Subject: Re: [PATCH 07/36] tty/vt: consolemap: make parameters of inverse_translate() saner In-Reply-To: <20220607104946.18710-7-jslaby@suse.cz> Message-ID: <83d6e90-c9f4-883c-285f-9ba7f85e937b@linux.intel.com> References: <20220607104946.18710-1-jslaby@suse.cz> <20220607104946.18710-7-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1506534093-1654608756=:1622" X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1506534093-1654608756=:1622 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Tue, 7 Jun 2022, Jiri Slaby wrote: > - int use_unicode -> bool: it's used as bool at some places already, so > make it explicit. > - int glyph -> u16: every caller passes a u16 in. So make it explicit > too. And remove a negative check from inverse_translate() as it never > could be negative. > > Signed-off-by: Jiri Slaby Reviewed-by: Ilpo J?rvinen -- i. --8323329-1506534093-1654608756=:1622--