linuxkpi: Introduce module_param() of type `bint`
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>
Thu, 1 Dec 2022 14:03:00 +0000 (15:03 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Thu, 1 Dec 2022 14:03:00 +0000 (15:03 +0100)
commite101c1c2c9ba18b1dd0eb2000106fafc915babdc
tree6b46e741e50bc828c8e6e884941903dd4f9b9a05
parent0adc02a97989f0a396740ffb64314fe8e816c877
linuxkpi: Introduce module_param() of type `bint`

In Linux, this limits the accepted value to -1, 0 and 1.
In FreeBSD, this remains a signed integer with no specific constraints.

This change is a requirement to update our DRM drivers to Linux 5.12.

Differential Revision: https://reviews.freebsd.org/D37364
sys/compat/linuxkpi/common/include/linux/moduleparam.h