arch/kernel/soc/samples: use unsigned int for irq_lock()
irq_lock() returns an unsigned integer key. Generated by spatch using semantic patch scripts/coccinelle/irq_lock.cocci Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
d66e047e5b
commit
3c971307dc
5 changed files with 5 additions and 5 deletions
|
@ -193,7 +193,7 @@ extern const struct pseudo_descriptor z_x86_idt;
|
|||
|
||||
static void idt_vector_install(int vector, void *irq_handler)
|
||||
{
|
||||
int key;
|
||||
unsigned int key;
|
||||
|
||||
key = irq_lock();
|
||||
z_init_irq_gate(&z_x86_idt.entries[vector], CODE_SEG,
|
||||
|
|
|
@ -1482,7 +1482,7 @@ bool z_page_fault(void *addr)
|
|||
static void do_mem_unpin(void *addr)
|
||||
{
|
||||
struct z_page_frame *pf;
|
||||
int key;
|
||||
unsigned int key;
|
||||
uintptr_t flags, phys;
|
||||
|
||||
key = irq_lock();
|
||||
|
|
|
@ -79,7 +79,7 @@ k_mem_paging_backing_store_histogram_bounds[
|
|||
unsigned long z_num_pagefaults_get(void)
|
||||
{
|
||||
unsigned long ret;
|
||||
int key;
|
||||
unsigned int key;
|
||||
|
||||
key = irq_lock();
|
||||
ret = paging_stats.pagefaults.cnt;
|
||||
|
|
|
@ -40,7 +40,7 @@ static int sample_driver_foo_set_callback(const struct device *dev,
|
|||
void *context)
|
||||
{
|
||||
struct sample_driver_foo_dev_data *data = dev->data;
|
||||
int key = irq_lock();
|
||||
unsigned int key = irq_lock();
|
||||
|
||||
data->cb_context = context;
|
||||
data->cb = cb;
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
*/
|
||||
static inline int iap_cmd(unsigned int cmd[5])
|
||||
{
|
||||
int key;
|
||||
unsigned int key;
|
||||
int status[5];
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue