From nobody Thu May 09 23:20:44 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vb7Kn23vrz5KGPr; Thu, 09 May 2024 23:20:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vb7Kn0bB5z44b5; Thu, 9 May 2024 23:20:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715296845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I4IwQQ6mNKeZxvnBE5u1zhrZxGVqISO2O87Qx1hsIbc=; b=Vspde5xs6Faw0VvjwOI3MapZ2igJCvYLOY/fH4U/QKpuEorJ24pOGH7aLfKzaQ0UBa3imR 7gGRICyYUHtneZHLPYsJkP0MGXOg46jUBDm6hz67F4KjQoIhKGDIySVrwXFlPeUVV+FV5A aF9Z+CWd0rR1TE0O5UxQXz4WgoflFrfghI85NXfO/kl8Aa7ZmnDu7WdTxLxLmJ/XkUvgn2 Agk2C8WmuihSxIGvRSfmZK0rWnaBpszyQDqG/WbfsNRHplTt6p3I6yVnqcpisb/yIU181h a+PE/9iJOjPOQDLtxpvRXC3Wd+N5aFxFkohce1G3Kneo4kV4WfVPCO7mArnJkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715296845; a=rsa-sha256; cv=none; b=C+YKPY/oYKk0wjadnbSzkPQoUquzLtyp1GIPCU/0bN1NRpmG0pCoVQ40Wdz4TreVWgQ9l7 pwpPWIwj75x/GIMmgRXz7YfLjISnCZHAXose3IGFljAL/ErOEVUvsqQ8g0+2R90066Dj2T E1gojLH7BDPg7LUL8UnyrNMGQgyEsw44ftnmyxA99bWt7lyQor2rc+vpB5iAhbfmSSks4d +NChbr0up8H71VT88titwVQWui/OoJAZufNrOi33GjieMYsbFU6JKrAhOMH84BaHV729ux C4KbsgbQOXVMgLa62toCbrX89XgLO/yfbBSEvN6bKRKoNMEqSeMSYorkNJaVyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715296845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I4IwQQ6mNKeZxvnBE5u1zhrZxGVqISO2O87Qx1hsIbc=; b=hS87KFVRmPtII28vd+qS4Ko4QeACoCvTTbRM/vODvMq4VjkNdVfxDq35E5fOjxzafPGkvL O/RzXgBU88lq3f47vLNI96VcGNPC4Ynqa9djahq2nq/SwZYK1LUfF1rxMZ9kTcT7EV4NsY faj/0FFzrgogP22nicWepQucp6B1tCkkoKwtGisAWGQ9a7Eat5vDiKVH+OBJC4KB4pDizY vcxsFrJtj/UGRddCyDWyQCafOlP5BBlsh4xziIkIqZOZ02+gxkZ4fJzT0KK1wXWDPCm/J6 PbGx8HvLPcWppiur/WbrUaeHMsy26CU28+kjc0LOKOgKWwREf0lKCHs5V+qBqQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vb7Kn0CgNz1RHZ; Thu, 9 May 2024 23:20:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 449NKirq057298; Thu, 9 May 2024 23:20:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 449NKiep057282; Thu, 9 May 2024 23:20:44 GMT (envelope-from git) Date: Thu, 9 May 2024 23:20:44 GMT Message-Id: <202405092320.449NKiep057282@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: cd04887b9569 - main - kern/intr: change ->ie_irq to unsigned List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cd04887b9569494496e25bdda241cbdb947f6b6f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=cd04887b9569494496e25bdda241cbdb947f6b6f commit cd04887b9569494496e25bdda241cbdb947f6b6f Author: Elliott Mitchell AuthorDate: 2024-05-09 23:04:34 +0000 Commit: Warner Losh CommitDate: 2024-05-09 23:14:33 +0000 kern/intr: change ->ie_irq to unsigned All architecture implementations actually want this to be unsigned. INTRNG the equivalent is overtly unsigned. x86 and PowerPC merely avoid the need to explicitly convert at several points. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1126 --- sys/kern/kern_intr.c | 2 +- sys/sys/interrupt.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 912504f8b1d0..928bfabb5c61 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -276,7 +276,7 @@ intr_event_update(struct intr_event *ie) } int -intr_event_create(struct intr_event **event, void *source, int flags, int irq, +intr_event_create(struct intr_event **event, void *source, int flags, u_int irq, void (*pre_ithread)(void *), void (*post_ithread)(void *), void (*post_filter)(void *), int (*assign_cpu)(void *, int), const char *fmt, ...) diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h index 9fa0adf9139f..f3c67e43d428 100644 --- a/sys/sys/interrupt.h +++ b/sys/sys/interrupt.h @@ -121,7 +121,7 @@ struct intr_event { int ie_count; /* Loop counter. */ int ie_warncnt; /* Rate-check interrupt storm warns. */ struct timeval ie_warntm; - int ie_irq; /* Physical irq number if !SOFT. */ + u_int ie_irq; /* Physical irq number if !SOFT. */ int ie_cpu; /* CPU this event is bound to. */ volatile int ie_phase; /* Switched to establish a barrier. */ volatile int ie_active[2]; /* Filters in ISR context. */ @@ -175,7 +175,7 @@ struct _cpuset; int intr_event_bind_ithread_cpuset(struct intr_event *ie, struct _cpuset *mask); int intr_event_create(struct intr_event **event, void *source, - int flags, int irq, void (*pre_ithread)(void *), + int flags, u_int irq, void (*pre_ithread)(void *), void (*post_ithread)(void *), void (*post_filter)(void *), int (*assign_cpu)(void *, int), const char *fmt, ...) __printflike(9, 10);