Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp830355pja; Wed, 1 Apr 2020 09:29:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvAUbj7aMiqq9u9A0KhRooefqa4P8S4jIGKDC7+/GcsYezQFNZgiyAJ8XznPb7dJSgp9HfZ X-Received: by 2002:a05:6830:15cf:: with SMTP id j15mr18449948otr.292.1585758545932; Wed, 01 Apr 2020 09:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585758545; cv=none; d=google.com; s=arc-20160816; b=nbIGpX6K59HruDgrwVraBratC6AmRbN4Uch0zqApO38YjRJfrbv4lXEneYJgahc8nW EubrGS45bGwtpOi2/rh6OE/F1sU/OkCqUX9PDTeyXp+k6IqHbVotR1/vQlPthvaAwNSm I5xCIto6ubzqU84gHbZ1JBcB38d+mrQId+VKKyNwx8/6RL7gQJY0QhDWPBruhXQQ8Ikr PxDNSkeSsDSJ1xNL/bGOGS4mWK5s4rcBfcIZe9NAckMCKqzl8CkfSwHh6KVxiKf+IfmM 2IAW5jdYO6TPUPZ+Pvif5EIBGHRJEo1AzP4SZXl1OcrhliQOBVtOHgWgFtR+07/UEVAy 4/jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f04pGlv1X6ux9daMjub+8lCKN86QOf8GDZKuseuNQfM=; b=Qkq/5rI9NFtwf33ywmLWpGDwy5h7p+NVvL8eLqoKhzQhc3Qdv4AbqlnQP89kHfle03 +q5mtdMPmkHGzTXNVLgsP/lomxTO5UWTIp8kn/v9xD3RwQ4tstzx9UeafILPv5t49P1P nIm6sHMuCw6ivMclYnZ00eFALJ0MtZ5eUmMeau1naXBDuXgNBs5uVQGlLuhKjPIWO0+w XDYTebISrLxKLpbqkED0FLIMuuRP+e42C8Pu3N8HkwNMseVmVns3FKnirQRgvGfVZQHR iF8R0O98MQqT6g+zXChnNZ6hfndmpt9qtS2OeLfYxpNDYzijCVPezSxPFAQ89Z1Kt1M7 PFUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OPa4KHgA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si1005819otq.313.2020.04.01.09.28.53; Wed, 01 Apr 2020 09:29:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OPa4KHgA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388054AbgDAQ14 (ORCPT + 99 others); Wed, 1 Apr 2020 12:27:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:52954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732286AbgDAQ1x (ORCPT ); Wed, 1 Apr 2020 12:27:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 46CB320BED; Wed, 1 Apr 2020 16:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758472; bh=YjbJkWnulZxpZ5AzBSei2JjCsNgi5cGWbkLwlh2FsTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OPa4KHgA5476c6KuqXECkugj3I/+Y9F5tBFsPwJRjvTaCgkRqVay1G1e1vYJD/Fyb FxiZYUKdj4tDIt9r89k9UsrudYka66ovrzevHd6C/hALWMokHE8YMmFuCxlr3cXkAC 6ed+Yqf9RCuM4WKtufKB21l+UB3WuKPZYJySRFnU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Slaby Subject: [PATCH 4.19 100/116] vt: switch vt_dont_switch to bool Date: Wed, 1 Apr 2020 18:17:56 +0200 Message-Id: <20200401161555.068953071@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161542.669484650@linuxfoundation.org> References: <20200401161542.669484650@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Slaby commit f400991bf872debffb01c46da882dc97d7e3248e upstream. vt_dont_switch is pure boolean, no need for whole char. Signed-off-by: Jiri Slaby Link: https://lore.kernel.org/r/20200219073951.16151-6-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman --- drivers/tty/vt/vt_ioctl.c | 6 +++--- include/linux/vt_kern.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/drivers/tty/vt/vt_ioctl.c +++ b/drivers/tty/vt/vt_ioctl.c @@ -39,7 +39,7 @@ #include #include -char vt_dont_switch; +bool vt_dont_switch; static inline bool vt_in_use(unsigned int i) { @@ -1026,12 +1026,12 @@ int vt_ioctl(struct tty_struct *tty, case VT_LOCKSWITCH: if (!capable(CAP_SYS_TTY_CONFIG)) return -EPERM; - vt_dont_switch = 1; + vt_dont_switch = true; break; case VT_UNLOCKSWITCH: if (!capable(CAP_SYS_TTY_CONFIG)) return -EPERM; - vt_dont_switch = 0; + vt_dont_switch = false; break; case VT_GETHIFONTMASK: ret = put_user(vc->vc_hi_font_mask, --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h @@ -142,7 +142,7 @@ static inline bool vt_force_oops_output( return false; } -extern char vt_dont_switch; +extern bool vt_dont_switch; extern int default_utf8; extern int global_cursor_default;