Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp253206rdb; Mon, 22 Jan 2024 03:09:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGYmExI9jch7OxSQGAJM1oie730NP0KFB7EKDuXRQ9r0gorQNRj66c+aedqM0dp/EzwYut X-Received: by 2002:a67:f64c:0:b0:469:7349:c67 with SMTP id u12-20020a67f64c000000b0046973490c67mr1103825vso.65.1705921783957; Mon, 22 Jan 2024 03:09:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705921783; cv=pass; d=google.com; s=arc-20160816; b=T9PHCU45GFXgLbqR/bXlQIkF9g6/Bk1h0BjRWsvluJDX3M1U1Hg4axmFUI2cr8pavn ZsAxfg6EpLV8uRYs6kbbk22Lr3GsbknNYWLe/tlOTfxAtyE0DrjurgDsfTC9pgz+6FY1 Am8MBPtNfAetcyMu8BKWosIYXQX7CWiBGQqbcyc0C08qPY/J+B2cMxFfLX5q0WoCm52k l7m3DYQNEZakZimV+qT85QnTl35sfqQT3Ma+LGmFQirjnxLYn1fl4qJJqzkk0H6kJUHN /FTGqnfIPKVbqTf9IyR84IWT97tTEH7ZHFX341cjqZcuzUtAB9NLbK3Tn0lBOITz1Zg2 PxrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Xd0jMMbTyDrq20AUXqpl+nUzgCqjeAhMU08Y7iY8G3w=; fh=1YNwm5KBWetjB3qGkhgLqh/dZnCTsWuqRk83JW6hjgE=; b=p/ow/vwbmMhm8F4kZjYBD/aMU/C0+x+lGqx3lDkRTWGzgKlKfoV58k+Bw77XqhLFTV SEgCNgbtYaNXdMPUi4d/jtbl9GsJsvCw6L4NOd0r3LWCiroU19e8NbpkMizaIDabRom+ UTkLF4ur4x/iMJzjjTzdcjwe9932Otf3EQa2tUnlx7BRZPzY5Etk1cc7j/EH0XLIGNIG qRGHZaBLQ0ejHUNFo624oHxtxrU6UhPIGHSmL3RAbhsgNtkk13iw5qIJYNXPJ0tyDd1e QI6Ec/NYfXtJffWKq3hYfuA4i5aYgpCIWIDr7TwMvljZQCV5Xk75iD27l9Y6m0BQfegr tCuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s1zrR13O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d3-20020a0ce443000000b00685adbfcf1asi4683605qvm.519.2024.01.22.03.09.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 03:09:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s1zrR13O; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B2D561C21CEA for ; Mon, 22 Jan 2024 11:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48E383D98F; Mon, 22 Jan 2024 11:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="s1zrR13O" 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 BBFD63AC1A; Mon, 22 Jan 2024 11:04:38 +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=1705921478; cv=none; b=I0Q5OR/y4181qaZLq3fPNeHrItalWc7P/ZGwKpfrgiUYcAtAP7FIWHCHSYyNZeObzPqu5xgk1TBZdxOqOrmX6HyekZac5CXwmaNe7vd9eG6hg+VrFntSfFQ2PgF2ngoZSMwhz+s7u1zmikIS3lcBH+zZ80Nvl5ytIFKCBDnVxVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705921478; c=relaxed/simple; bh=pgGIPZEv6XKRoBjxEYNP5d5VFoktwTyHpvsavE6t6hw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tjxqg2urpYjTPjJfVEdS+oamCP4Fh+5DWKWhdjlnDx1OZVtI4bxjKEGTJzXi8gBIu0fF2xheN8DLtwdQqtf2GJ1CDAfJQJ/y39i9SaehtfLU747dbcfJ9Bl0XiiKoESXCuZKzvVx/gi+dKSFSkQmLMRTLxjkvf8C3XBMoZo3mIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=s1zrR13O; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2104C43394; Mon, 22 Jan 2024 11:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705921478; bh=pgGIPZEv6XKRoBjxEYNP5d5VFoktwTyHpvsavE6t6hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s1zrR13O7ksrcZuCBkqZLPcdSw9H+cLj4VTWU5aSVLChEmzGLcVN6Sun6vTSlr81P AAkvzro622ADRqqZyGBH4qfpVz4zQqskmGwscb0W2pRFuD9zuZjCoRkyWYvW6GVEij +A6FaVleDQEsO30v5NPLqije3P0YnmqLHIHXamRHN64Zkwz5L4bgcIjsOoMvb2VsjS +exYCXRdiAA/vrypS0C1b55jxcCNK3+SNKgJ9ouClAKFPKk3401n0p/FWbEDmWmObC r4Poprz367YnCfI24y19m8KaFSqrxVvt0KOFiZpnJ1hgTKuE1m9MTUZYtgzCrdbFM7 CLimfLD2VQwnA== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH v2 18/47] tty: vt: remove extern from functions in selection.h Date: Mon, 22 Jan 2024 12:03:32 +0100 Message-ID: <20240122110401.7289-19-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122110401.7289-1-jirislaby@kernel.org> References: <20240122110401.7289-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove unneeded 'extern' keyword from function prototypes in selection.h. This makes it more readable as no more wrapping is needed on many places. Signed-off-by: Jiri Slaby (SUSE) --- include/linux/selection.h | 52 ++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/include/linux/selection.h b/include/linux/selection.h index 533509f6ba4f..bab7d30d3446 100644 --- a/include/linux/selection.h +++ b/include/linux/selection.h @@ -14,15 +14,14 @@ struct tty_struct; struct vc_data; -extern void clear_selection(void); -extern int set_selection_user(const struct tiocl_selection __user *sel, - struct tty_struct *tty); -extern int set_selection_kernel(struct tiocl_selection *v, - struct tty_struct *tty); -extern int paste_selection(struct tty_struct *tty); -extern int sel_loadlut(u32 __user *lut); -extern int mouse_reporting(void); -extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry); +void clear_selection(void); +int set_selection_user(const struct tiocl_selection __user *sel, + struct tty_struct *tty); +int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty); +int paste_selection(struct tty_struct *tty); +int sel_loadlut(u32 __user *lut); +int mouse_reporting(void); +void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry); bool vc_is_sel(const struct vc_data *vc); @@ -33,24 +32,21 @@ extern unsigned char default_red[]; extern unsigned char default_grn[]; extern unsigned char default_blu[]; -extern unsigned short *screen_pos(const struct vc_data *vc, int w_offset, - bool viewed); -extern u16 screen_glyph(const struct vc_data *vc, int offset); -extern u32 screen_glyph_unicode(const struct vc_data *vc, int offset); -extern void complement_pos(struct vc_data *vc, int offset); -extern void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); - -extern void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]); -extern void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]); - -extern u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org); -extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); -extern void vcs_scr_updated(struct vc_data *vc); - -extern int vc_uniscr_check(struct vc_data *vc); -extern void vc_uniscr_copy_line(const struct vc_data *vc, void *dest, - bool viewed, - unsigned int row, unsigned int col, - unsigned int nr); +unsigned short *screen_pos(const struct vc_data *vc, int w_offset, bool viewed); +u16 screen_glyph(const struct vc_data *vc, int offset); +u32 screen_glyph_unicode(const struct vc_data *vc, int offset); +void complement_pos(struct vc_data *vc, int offset); +void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); + +void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]); +void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]); + +u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org); +void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); +void vcs_scr_updated(struct vc_data *vc); + +int vc_uniscr_check(struct vc_data *vc); +void vc_uniscr_copy_line(const struct vc_data *vc, void *dest, bool viewed, + unsigned int row, unsigned int col, unsigned int nr); #endif -- 2.43.0