]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: const argument to irq_set_affinity_hint()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 28 Jan 2023 16:15:19 +0000 (16:15 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 17 Feb 2023 23:42:14 +0000 (23:42 +0000)
commit4724e1867e81ab5de2c6b5a6819998b660f3e96d
tree8e3c0a0ccf823290a0ad9e86aa1b2f683fcc7f19
parent1984e6e4f1583ad1a44b6913e8722121fabe8967
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