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: make vc_is_sel()'s vc const

It's only an aid to people reading the header and/or calling
vc_is_sel(). vc is only tested there, so having it const makes sense.

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-9-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
d4c0c481 beccdcfa

+2 -2
+1 -1
drivers/tty/vt/selection.c
··· 88 88 } 89 89 EXPORT_SYMBOL_GPL(clear_selection); 90 90 91 - bool vc_is_sel(struct vc_data *vc) 91 + bool vc_is_sel(const struct vc_data *vc) 92 92 { 93 93 return vc == vc_sel.cons; 94 94 }
+1 -1
include/linux/selection.h
··· 24 24 extern int mouse_reporting(void); 25 25 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry); 26 26 27 - bool vc_is_sel(struct vc_data *vc); 27 + bool vc_is_sel(const struct vc_data *vc); 28 28 29 29 extern int console_blanked; 30 30