Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: vt: remove extern from functions in selection.h

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)" <jirislaby@kernel.org>
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-19-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
649f6fbe bf9e206b

+21 -25
+21 -25
include/linux/selection.h
··· 14 14 struct tty_struct; 15 15 struct vc_data; 16 16 17 - extern void clear_selection(void); 18 - extern int set_selection_user(const struct tiocl_selection __user *sel, 19 - struct tty_struct *tty); 20 - extern int set_selection_kernel(struct tiocl_selection *v, 21 - struct tty_struct *tty); 22 - extern int paste_selection(struct tty_struct *tty); 23 - extern int sel_loadlut(u32 __user *lut); 24 - extern int mouse_reporting(void); 25 - extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry); 17 + void clear_selection(void); 18 + int set_selection_user(const struct tiocl_selection __user *sel, 19 + struct tty_struct *tty); 20 + int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty); 21 + int paste_selection(struct tty_struct *tty); 22 + int sel_loadlut(u32 __user *lut); 23 + int mouse_reporting(void); 24 + void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry); 26 25 27 26 bool vc_is_sel(const struct vc_data *vc); 28 27 ··· 32 33 extern unsigned char default_grn[]; 33 34 extern unsigned char default_blu[]; 34 35 35 - extern unsigned short *screen_pos(const struct vc_data *vc, int w_offset, 36 - bool viewed); 37 - extern u16 screen_glyph(const struct vc_data *vc, int offset); 38 - extern u32 screen_glyph_unicode(const struct vc_data *vc, int offset); 39 - extern void complement_pos(struct vc_data *vc, int offset); 40 - extern void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); 36 + unsigned short *screen_pos(const struct vc_data *vc, int w_offset, bool viewed); 37 + u16 screen_glyph(const struct vc_data *vc, int offset); 38 + u32 screen_glyph_unicode(const struct vc_data *vc, int offset); 39 + void complement_pos(struct vc_data *vc, int offset); 40 + void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); 41 41 42 - extern void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]); 43 - extern void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]); 42 + void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]); 43 + void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]); 44 44 45 - extern u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org); 46 - extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); 47 - extern void vcs_scr_updated(struct vc_data *vc); 45 + u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org); 46 + void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); 47 + void vcs_scr_updated(struct vc_data *vc); 48 48 49 - extern int vc_uniscr_check(struct vc_data *vc); 50 - extern void vc_uniscr_copy_line(const struct vc_data *vc, void *dest, 51 - bool viewed, 52 - unsigned int row, unsigned int col, 53 - unsigned int nr); 49 + int vc_uniscr_check(struct vc_data *vc); 50 + void vc_uniscr_copy_line(const struct vc_data *vc, void *dest, bool viewed, 51 + unsigned int row, unsigned int col, unsigned int nr); 54 52 55 53 #endif