Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp191374rdb; Thu, 18 Jan 2024 00:02:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuoPGd1lQPU6SYXBvpZ9+k/1duE5vAREcf/MVWro98OQ6g6YNFukUGoihS00hqeLmfxGgm X-Received: by 2002:a05:620a:4251:b0:783:552a:68dd with SMTP id w17-20020a05620a425100b00783552a68ddmr487441qko.60.1705564949617; Thu, 18 Jan 2024 00:02:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705564949; cv=pass; d=google.com; s=arc-20160816; b=D9IfssKmSyHGZW2je1BbXER1UqXpsqQedAGys14pDOFLobYTIM/runFrx7w+5q9sLu GfZJM3YfKKhydE12Fg4jIZC3VY110aN9haNz8QxEDVEQXbhDSBLJtN2x9VTssl+Ap8Qa u06g3XnzIbSiJBNbPYOfCcAvEgMbdmeDvGdSKkIMB/cdUSJ2pEGm+JY2Qy4RABnJ297a FP8Ir50HeqsQv7epl3ciVI3tTiOKsM4a8w7KKf7XwyBIP2x6mIHLl+ZEupLqm9SoBAGd 9BpAo4rbmx+6iGt/rSVXs8lLKXtNyjePknS56CkgtCph9lJDAHAUgrzvUEgMlT1wq5du iPpw== 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=nwIH4M6BSsaxXc62ZLfsdBZN1T287TJg3GKeAoL5a5j8RtsAx066anpa5yGymsOAM1 UrLo3ELjMPBMMe3pHR8IXRD25aB+3sUy7HPYp4lV0qDqb8LRgd6ndJMREw3q4zCWYqJb LtgrPI1cGIW3t9BWTsyBmZtiJ/x9bORwX7A+aP3NAr4er741+2+963+1Ueoqf6ossace L4+Y7YhL2oQZSADoung2uepDxb0aAsKDhT5paVtsAKdjTMuxxyuEx2pLsC1k2FViMlHM HuRYEd/waKZoDkXh+JGzIlR5tkwibJzE6p7puJXHHtk5zGaKXTnWbAXyC1BhPxlWenCN KKEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fPKaUkcf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29804-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 m13-20020a05620a214d00b0078319e53b1csi12943519qkm.412.2024.01.18.00.02.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29804-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=fPKaUkcf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29804-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 6320F1C227DB for ; Thu, 18 Jan 2024 08:02:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B81A228E3A; Thu, 18 Jan 2024 07:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fPKaUkcf" 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 E22A628E25; Thu, 18 Jan 2024 07:58:33 +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=1705564714; cv=none; b=i2ywWyT1ANk01dplGQ5nChLmRVzwXC18DIwkmKT11U6UAEmaxmvfygo7pNOHlQoL2IgCR9AQpUMuI3Vt2UgybTXDhQvn8Hx4GMaMW+ZmiGTj39FaaBhrapeAPA00HdC3FfRhg/dRADSHTuj22hsEsV4zDyOBS2jZaKE1HtjQT6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705564714; c=relaxed/simple; bh=pgGIPZEv6XKRoBjxEYNP5d5VFoktwTyHpvsavE6t6hw=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=qLlXVsLdGFHbRrpTKk5jausoDSmzrzyYG/0h4VgBZA4kKs9A5x2H96EWBWS2vyflRyDoYXidBFH8RrnuLBVBJj6F5mdlk8+Tp92Ai87VlasbFYsTENvBArOF5cLiAUKbNjWuoD7Gi+dH6JHtA1MI9y7+KAtxMgxqUSSRH+SMc1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fPKaUkcf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86DC7C433C7; Thu, 18 Jan 2024 07:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705564713; bh=pgGIPZEv6XKRoBjxEYNP5d5VFoktwTyHpvsavE6t6hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fPKaUkcfw6LypUl2/lKpHaTq1Z1YtNqbyudbrae5rfyAD9SvB3Uv5iX5i4y3cVPaA Ivnj4GRSdRCbsBz6QURCpzkVHXRlSecKgkSrUfkGNOgHS1Vbbrbz7rkJhzszdXGoZf 8i+gJt7aF1QUBrGx4FnaDUmqDEq58+xyTgv2Pwx7kyj/HIeeYw8jFVrHwsIU0IhLQm Lajyhnsk6FvAn5/Cj9IvwDBu8TXvxXKDFIi5E7Ekequ1zJx9s47byk5TqOZrJD9X7F RpvZgBgXVDMTAIax0neR3Cd2VByG3oFaEwr6Mf499qg4jvqbncsBfUvAeP/WEbsNxL hXDzk/P3NLh0w== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 17/45] tty: vt: remove extern from functions in selection.h Date: Thu, 18 Jan 2024 08:57:28 +0100 Message-ID: <20240118075756.10541-18-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240118075756.10541-1-jirislaby@kernel.org> References: <20240118075756.10541-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