mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
b903f0bfa9
commit
fff3c99f84
2 files changed
+6
-6
No files matched your search
@@ -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? */
|
||||
|
||||
@@ -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);
|
||||
|
||||