Revert "Expand __diagused to include the KTR kernel diagnostic option."

This reverts commit 55339af296.

Induces warnings for kernels built with KTR but without debug.

Discussed with:	scottl
This commit is contained in:
Mateusz Guzik 2022-03-03 20:26:59 +00:00
parent 8719e8a951
commit d283601b80

View File

@ -554,7 +554,7 @@ void _gone_in_dev(device_t dev, int major, const char *msg);
#define gone_in(major, msg) __gone_ok(major, msg) _gone_in(major, msg)
#define gone_in_dev(dev, major, msg) __gone_ok(major, msg) _gone_in_dev(dev, major, msg)
#if defined(INVARIANTS) || defined(WITNESS) || defined(KTR)
#if defined(INVARIANTS) || defined(WITNESS)
#define __diagused
#else
#define __diagused __unused