drivers/char: Fix build when CET-IBT is enabled
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Sep 2022 10:46:15 +0000 (11:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Sep 2022 12:32:35 +0000 (13:32 +0100)
https://gitlab.com/xen-project/xen/-/jobs/3083068950#L1763

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Fixes: 022e40edd4dc ("drivers/char: allow using both dbgp=xhci and dbgp=ehci")
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/drivers/char/ehci-dbgp.c
xen/drivers/char/xhci-dbc.c

index 8a0b9585060900733420550fb52cfc2ffe88bf08..bb9d3198d9f2c485ae6db0994357a28ba1cc6d6c 100644 (file)
@@ -1465,7 +1465,7 @@ static struct ehci_dbgp ehci_dbgp = { .state = dbgp_unsafe, .phys_port = 1 };
 
 static char __initdata opt_dbgp[30];
 
-static int __init parse_ehci_dbgp(const char *opt)
+static int __init cf_check parse_ehci_dbgp(const char *opt)
 {
     if ( strncmp(opt, "ehci", 4) )
         return 0;
index 5f92234a9594b365b23743463cb0ab9bba9c6f9d..43ed64a004e2d29011f9e967375efb905723bebd 100644 (file)
@@ -1282,7 +1282,7 @@ struct dbc_dma_bufs {
 static struct dbc_dma_bufs __section(".bss.page_aligned") __aligned(PAGE_SIZE)
     dbc_dma_bufs;
 
-static int __init xhci_parse_dbgp(const char *opt_dbgp)
+static int __init cf_check xhci_parse_dbgp(const char *opt_dbgp)
 {
     struct dbc_uart *uart = &dbc_uart;
     struct dbc *dbc = &uart->dbc;