From nobody Fri Feb 17 23:44:47 2023 X-Original-To: dev-commits-src-branches@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 4PJT1r1twnz3rxSG; Fri, 17 Feb 2023 23:44:48 +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 4PJT1q58jxz3Gfl; Fri, 17 Feb 2023 23:44:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677487; 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=HxUPX2bijDIA/9ni6kkqvqHyb4ffwpgV9O/s4Rn2atw=; b=bTpbKZ/oS5bUTTRjB1wI86vtrZoW4gFUPtoVJlP2/fKID8bZWuGwOO/mgROojmK0R69u/p aVTjqaxoKVNwgE9auUzQWnB9SMkBeMpXcMZTXkmFavJJBMeizAo9SoxgmqXwNgn2qs3qII bAwX3hPkgHdkOw34vLNqJmwrhKxzcPv5krgI/Ge3UTMyCB9XOxGwPKIrcrXgzzRzmXfcAS bh/bbyugDmK5cdUV83GhEYCmYRmiK+mnr4al9jQXBt4mywHuRqu+vVdXKKdcmAkglsTyVd ocqQD1SD/Jxt5GKGPxttD8TuzAN97DI2iavjRlRlwvgfoh+pF+4HWQ1AeL85MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677487; 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=HxUPX2bijDIA/9ni6kkqvqHyb4ffwpgV9O/s4Rn2atw=; b=FB+xNtYSvKcW9o1N0/R3+UPVNzb6AKT02VLXOKZmdbcHZyKDd9M6L2UwEJUFEkt0230arM xgyu/GWwOSc0EV6KB7eCnFth3hSX3sQvMIKrMG5lOixBaOJTeKInYnzMzhNuwBCIIAe/Uh W6lDhHcfOBdmfxSH8lCpiKnvUIW0dgXRtwTal+0ZAihgtiiPqo/0zjxdQwHt981YjFruv1 g9w28/5LV+MuqjYqi272yNnZz/bzIsNh8Tm1wd0qsGu/rrFa5DasyPiSkCC3AFx+iG6ZS4 TZj0lxviKrzYjYVCrbDEAAyCeKQ6Qda33HYFNrerMtd+SGZROQWfdjo/POuwBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676677487; a=rsa-sha256; cv=none; b=MpjEINmVeflZj5+ucJBeUJaJTKpBPDpIaPhAK3hAXCY3GfiUITdX/P1H3sunydngDEaqwi vIu85nMrRqPelACGyE7Zno+3xtZQ2dMryP9641VSsSo3kdNZ6DtaCSkoZPBaWtdImejIeG +0c/PJeSd2U79s97yNEjxHJPgzBsECyQhBJESro+0uV+ilhwRWS0wNfPhd3XuP/GmEwRPJ MABQ4q6k4jvBHAUYdu53Zv9b0IKOs/XSejTUYXsO8O2hWoVHvBbKxRm3kLf9cxcelZo3aF 28fBrnU0SXlZnozJDWHnkYwnTFiy00x0Qgk+pTnIubAI6Z33WZMFXVNHUbtHaA== 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 4PJT1q4Glfz1255; Fri, 17 Feb 2023 23:44:47 +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 31HNilqI025058; Fri, 17 Feb 2023 23:44:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31HNilLe025057; Fri, 17 Feb 2023 23:44:47 GMT (envelope-from git) Date: Fri, 17 Feb 2023 23:44:47 GMT Message-Id: <202302172344.31HNilLe025057@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 4724e1867e81 - stable/13 - LinuxKPI: const argument to irq_set_affinity_hint() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 4724e1867e81ab5de2c6b5a6819998b660f3e96d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4724e1867e81ab5de2c6b5a6819998b660f3e96d commit 4724e1867e81ab5de2c6b5a6819998b660f3e96d Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 16:15:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-17 23:42:14 +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 (cherry picked from commit 4c72d075a57e9a3215639aede16df4df29e1c1da) --- 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 b51f8f7a9cbc..9948f8be0da0 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -135,12 +135,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);