]> xenbits.xensource.com Git - xen.git/commitdiff
xen/console: fix Rule 10.2 violation
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 10 May 2024 23:37:11 +0000 (16:37 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 14 May 2024 22:38:53 +0000 (15:38 -0700)
Change opt_conswitch to char to fix a violation of Rule 10.2.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/drivers/char/console.c

index 2c363d9c1df0d5a3167ab77ec085dc615fc732f0..3a3a97bcbe3a5441d07f05b6db0d81ee05c71cf1 100644 (file)
@@ -49,7 +49,7 @@ string_param("console", opt_console);
 /* Char 1: CTRL+<char1> is used to switch console input between Xen and DOM0 */
 /* Char 2: If this character is 'x', then do not auto-switch to DOM0 when it */
 /*         boots. Any other value, or omitting the char, enables auto-switch */
-static unsigned char __read_mostly opt_conswitch[3] = "a";
+static char __read_mostly opt_conswitch[3] = "a";
 string_runtime_param("conswitch", opt_conswitch);
 
 /* sync_console: force synchronous console output (useful for debugging). */