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:
Johann Fischer 2022-07-13 17:27:25 +02:00 committed by Mahesh Mahadevan
commit 3c971307dc
5 changed files with 5 additions and 5 deletions

View file

@ -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,

View file

@ -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();

View file

@ -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;

View file

@ -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;

View file

@ -53,7 +53,7 @@
*/
static inline int iap_cmd(unsigned int cmd[5])
{
int key;
unsigned int key;
int status[5];
/*