From nobody Mon Feb 9 06:26:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1690560213088817.4093232996348; Fri, 28 Jul 2023 09:03:33 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.571499.895498 (Exim 4.92) (envelope-from ) id 1qPPvg-0001DK-GZ; Fri, 28 Jul 2023 16:03:00 +0000 Received: by outflank-mailman (output) from mailman id 571499.895498; Fri, 28 Jul 2023 16:03:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qPPvg-0001DD-Dg; Fri, 28 Jul 2023 16:03:00 +0000 Received: by outflank-mailman (input) for mailman id 571499; Fri, 28 Jul 2023 16:02:59 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qPPvf-0001D7-93 for xen-devel@lists.xenproject.org; Fri, 28 Jul 2023 16:02:59 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 35b81657-2d60-11ee-8613-37d641c3527e; Fri, 28 Jul 2023 18:02:53 +0200 (CEST) Received: from Dell.bugseng.com (unknown [37.160.17.225]) by support.bugseng.com (Postfix) with ESMTPSA id 3FF574EE073F; Fri, 28 Jul 2023 18:02:52 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 35b81657-2d60-11ee-8613-37d641c3527e From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [XEN PATCH] xen/keyhandler: address violations of MISRA C:2012 Rule 8.3 and drop bool_t Date: Fri, 28 Jul 2023 18:02:44 +0200 Message-Id: <7cb2183e6e387c04547b57b6f9f95c08bb613019.1690560051.git.federico.serafini@bugseng.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1690560214999100001 Content-Type: text/plain; charset="utf-8" Change types in function declarations to be consistent with the corresponding definitions. This addresses violations of MISRA C:2012 Rule 8.3: "All declarations of an object or function shall use the same names and type qualifiers". No functional changes. Signed-off-by: Federico Serafini Acked-by: Andrew Cooper --- xen/common/keyhandler.c | 8 ++++---- xen/include/xen/keyhandler.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c index 0a551033c4..68d8166968 100644 --- a/xen/common/keyhandler.c +++ b/xen/common/keyhandler.c @@ -101,8 +101,8 @@ void handle_keypress(unsigned char key, struct cpu_user= _regs *regs) } } =20 -void register_keyhandler(unsigned char key, keyhandler_fn_t fn, - const char *desc, bool_t diagnostic) +void register_keyhandler(unsigned char key, keyhandler_fn_t *fn, + const char *desc, bool diagnostic) { BUG_ON(key >=3D ARRAY_SIZE(key_table)); /* Key in range? */ ASSERT(!key_table[key].fn); /* Clobbering something else? */ @@ -113,8 +113,8 @@ void register_keyhandler(unsigned char key, keyhandler_= fn_t fn, key_table[key].diagnostic =3D diagnostic; } =20 -void register_irq_keyhandler(unsigned char key, irq_keyhandler_fn_t fn, - const char *desc, bool_t diagnostic) +void register_irq_keyhandler(unsigned char key, irq_keyhandler_fn_t *fn, + const char *desc, bool diagnostic) { BUG_ON(key >=3D ARRAY_SIZE(key_table)); /* Key in range? */ ASSERT(!key_table[key].irq_fn); /* Clobbering something else? */ diff --git a/xen/include/xen/keyhandler.h b/xen/include/xen/keyhandler.h index 9c5830a037..5c6598af98 100644 --- a/xen/include/xen/keyhandler.h +++ b/xen/include/xen/keyhandler.h @@ -39,11 +39,11 @@ void initialize_keytable(void); void register_keyhandler(unsigned char key, keyhandler_fn_t *fn, const char *desc, - bool_t diagnostic); + bool diagnostic); void register_irq_keyhandler(unsigned char key, irq_keyhandler_fn_t *fn, const char *desc, - bool_t diagnostic); + bool diagnostic); =20 /* Inject a keypress into the key-handling subsystem. */ extern void handle_keypress(unsigned char key, struct cpu_user_regs *regs); --=20 2.34.1