xen/keyhandler: address violations of MISRA C:2012 Rule 8.3 and drop bool_t

Change types in function definitions to be consistent with the
corresponding declarations.
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 <federico.serafini@bugseng.com>
[stefano: fix error in commit message]
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Federico Serafini authored and Stefano Stabellini committed 2023-07-28 16:39:22 -07:00
1 parent b903f0bfa9
commit fff3c99f84
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -101,8 +101,8 @@ void handle_keypress(unsigned char key, struct cpu_user_regs *regs)
}
}
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 >= 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 = diagnostic;
}
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 >= ARRAY_SIZE(key_table)); /* Key in range? */
ASSERT(!key_table[key].irq_fn); /* Clobbering something else? */
+2 -2
View File
@@ -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);
/* Inject a keypress into the key-handling subsystem. */
extern void handle_keypress(unsigned char key, struct cpu_user_regs *regs);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.