From nobody Sun Feb 05 20:48:37 2023 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 4P91h52wbXz3kqM3; Sun, 5 Feb 2023 20:48:37 +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 4P91h52MCvz3HSq; Sun, 5 Feb 2023 20:48:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675630117; 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=C4fz1r//2h0q8j6i6Qk0pxi61zET18/lMUCJFEFGfVA=; b=RNqPKp7NGUKaxul4koTVa3GZ1cFYUxV8i4O+datBCWtJfhFlEDgJHOOHOjxFTdlNUc+c+8 F3hgZHqpv2z/XTqNdWNy1rX9j86eJkU+X+zalJdhwcmHfBXrjHylNSO3t3Z/nwLXydk4Pw W1dPlZXY84lnmyL9syMMeAUzCwwMhQzHdqbff30f0OXy9z005hmRZrd5K8wYGsuvmzpGFX byXNXfKt/347byVEHytXW6hBORkQUnQr9dmvsxuYdR518yq2seQwegxXf6lbN9fcOvNYbI kGhYNJ+KRyWJ7Qfw3hiWn5BQdppIAlwJqHIVX9GH168IrSW97s7s31ezGblVYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675630117; 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=C4fz1r//2h0q8j6i6Qk0pxi61zET18/lMUCJFEFGfVA=; b=U+CxYeo1tBhOxMWFU8ql9wcdBZLBK+HlK1pZERpBxCLgI39NlD9lG/0SpNJ1KEtH5JlFR9 ARCYWS1/bT0ZK0DmFQXdjnA/uCpkoCawYVDE71dwQiytKYAxChmJvAhT6PsMjtEyiJkygl Vj0iwBxNClmKL7nc1miVNoqkfSFx2ZcG7q73eQv2Kr/rT4rzK+jbXH8MjX1p0WG2pY2UPD JzH4dtPUqYK/uQHiNz+gai3eQjA3GE2b/dZRuUuiG+ImsEub/g4pCJhlsPvFXPvREzYMl6 t3yN7iYEXUyLC/oBBUhMfq3ERz9uG+0g4DnchGuge7e9+tp1tjK+cuIBe5lSzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675630117; a=rsa-sha256; cv=none; b=oq8hH4CvYRVvRtkEzGCnOUai535WUfYsnID4KYoFHb1/qZwcCHCHuKYDiEIUJawwZHk73Y njekVYBJuZ05D/CO59CQ5MhvoBL3QMUMKyL19d8WEre0JIFOsAdlwshSFVkIXpiYXDzZ4N Nlhqh6ZhLkWl5YR1yjO49W+1gn5CR1HH28VJohPPoIOsbl9YRpkOncGuBUInyjM3kOK2Cp yJ3NuKbSSTBK3Tpnggiyp+hQJHRETDBUPB3N6fMX380K9U6JkY7ymGS6GfjqDx/q0kZayU AuJZFd7PDuBqZK47/OauMk8vg32uYuukG9V7+EiLlF1MDx+THk11zhElbz9Deg== 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 4P91h51QNJz17tf; Sun, 5 Feb 2023 20:48:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 315Kmb5r062446; Sun, 5 Feb 2023 20:48:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315KmbB6062445; Sun, 5 Feb 2023 20:48:37 GMT (envelope-from git) Date: Sun, 5 Feb 2023 20:48:37 GMT Message-Id: <202302052048.315KmbB6062445@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 4c72d075a57e - main - LinuxKPI: const argument to irq_set_affinity_hint() 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c72d075a57e9a3215639aede16df4df29e1c1da Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4c72d075a57e9a3215639aede16df4df29e1c1da commit 4c72d075a57e9a3215639aede16df4df29e1c1da Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 16:15:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-05 20:46:59 +0000 LinuxKPI: const argument to irq_set_affinity_hint() irq_set_affinity_hint() takes a const mask argument and some drivers pass it in as such where earlier implementations were more lenient. Deal with it and __DECONST() the argument when passed to intr_setaffinity(). Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38242 --- sys/compat/linuxkpi/common/include/linux/interrupt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h index 769d0834d98d..f7915863525d 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -128,12 +128,12 @@ devm_free_irq(struct device *xdev, unsigned int irq, void *p) } static inline int -irq_set_affinity_hint(int vector, cpumask_t *mask) +irq_set_affinity_hint(int vector, const cpumask_t *mask) { int error; if (mask != NULL) - error = intr_setaffinity(vector, CPU_WHICH_IRQ, mask); + error = intr_setaffinity(vector, CPU_WHICH_IRQ, __DECONST(cpumask_t *, mask)); else error = intr_setaffinity(vector, CPU_WHICH_IRQ, cpuset_root);