]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Suppress D_NEEDGIANT warnings for some drivers
authorMark Johnston <markj@FreeBSD.org>
Sun, 6 Jun 2021 20:40:19 +0000 (16:40 -0400)
committerMark Johnston <markj@FreeBSD.org>
Sun, 6 Jun 2021 20:44:46 +0000 (16:44 -0400)
commitfbeb4ccac990fdb3bc26ab925a3ca8e7d2f89721
tree3843a84c71c8445fbbb65382ae0d94deab0d731c
parent62b8258a7e43f3c774f13eab758b2cfdf353073e
Suppress D_NEEDGIANT warnings for some drivers

During boot we warn that the kbd and openfirm drivers are Giant-locked
and may be deleted.  Generally, the warning helps signal that certain
old drivers are not being maintained and are subject to removal, but
this doesn't really apply to certain drivers which are harder to
detangle from Giant.

Add a flag, D_GIANTOK, that devices can specify to suppress the
misleading warning.  Use it in the kbd and openfirm drivers.

Reviewed by: imp, jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30649
sys/dev/kbd/kbd.c
sys/dev/ofw/openfirmio.c
sys/kern/kern_conf.c
sys/sys/conf.h