tests: kernel: key has wrong type in test_prevent_interruption
The test_prevent_interruption() uses a key for the irq_lock(), but the key has incorrect data type. This commit makes the key unsigned int according to API docs. Fixes #34023 Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
This commit is contained in:
parent
9f7061a83d
commit
a7ea624d7e
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ static void timer_handler(struct k_timer *timer)
|
|||
*/
|
||||
void test_prevent_interruption(void)
|
||||
{
|
||||
int key;
|
||||
unsigned int key;
|
||||
|
||||
printk("locking interrupts\n");
|
||||
key = irq_lock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue