[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] kexec: kexec_crash_save_info() vs Misra C:2012 rule 8.3



commit ae995a5500c0542b63fdf80cc4489503ebcde6f5
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu May 14 19:16:01 2026 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu May 14 19:28:44 2026 +0100

    kexec: kexec_crash_save_info() vs Misra C:2012 rule 8.3
    
    ... ("All declarations of an object or function shall use the same names
    and type qualifiers"). The declaration doesn't use the typedef, so the
    definition shouldn't either.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
 xen/common/kexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/kexec.c b/xen/common/kexec.c
index 1a3a20e1c9..65776a95fd 100644
--- a/xen/common/kexec.c
+++ b/xen/common/kexec.c
@@ -333,7 +333,7 @@ void kexec_crash_save_cpu(void)
 }
 
 /* Set up the single Xen-specific-info crash note. */
-crash_xen_info_t *kexec_crash_save_info(void)
+struct crash_xen_info *kexec_crash_save_info(void)
 {
     int cpu = smp_processor_id();
     crash_xen_info_t info;
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.