git: 9f3a552f9e1a - main - intrng: switch flag arguments to unsigned
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 May 2024 23:20:47 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=9f3a552f9e1a7dbe707f143a8b8e0cdc00a8014e
commit 9f3a552f9e1a7dbe707f143a8b8e0cdc00a8014e
Author: Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2024-05-09 23:04:35 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-09 23:14:38 +0000
intrng: switch flag arguments to unsigned
The flag variables behind these are all unsigned. As such adjust the
declarations to match reality and reduce the number of mismatches.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
---
sys/kern/subr_intr.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c
index 5958f9025b27..210989868415 100644
--- a/sys/kern/subr_intr.c
+++ b/sys/kern/subr_intr.c
@@ -149,7 +149,7 @@ static bool intr_ipi_dev_frozen;
static struct mtx pic_list_lock;
static SLIST_HEAD(, intr_pic) pic_list;
-static struct intr_pic *pic_lookup(device_t dev, intptr_t xref, int flags);
+static struct intr_pic *pic_lookup(device_t dev, intptr_t xref, u_int flags);
/* Interrupt source definition. */
static struct mtx isrc_table_lock;
@@ -744,7 +744,7 @@ isrc_add_handler(struct intr_irqsrc *isrc, const char *name,
* Lookup interrupt controller locked.
*/
static inline struct intr_pic *
-pic_lookup_locked(device_t dev, intptr_t xref, int flags)
+pic_lookup_locked(device_t dev, intptr_t xref, u_int flags)
{
struct intr_pic *pic;
@@ -775,7 +775,7 @@ pic_lookup_locked(device_t dev, intptr_t xref, int flags)
* Lookup interrupt controller.
*/
static struct intr_pic *
-pic_lookup(device_t dev, intptr_t xref, int flags)
+pic_lookup(device_t dev, intptr_t xref, u_int flags)
{
struct intr_pic *pic;
@@ -789,7 +789,7 @@ pic_lookup(device_t dev, intptr_t xref, int flags)
* Create interrupt controller.
*/
static struct intr_pic *
-pic_create(device_t dev, intptr_t xref, int flags)
+pic_create(device_t dev, intptr_t xref, u_int flags)
{
struct intr_pic *pic;
@@ -818,7 +818,7 @@ pic_create(device_t dev, intptr_t xref, int flags)
* Destroy interrupt controller.
*/
static void
-pic_destroy(device_t dev, intptr_t xref, int flags)
+pic_destroy(device_t dev, intptr_t xref, u_int flags)
{
struct intr_pic *pic;