Expand __diagused to include the KTR kernel diagnostic option.

This commit is contained in:
Scott Long 2022-02-26 11:01:54 -07:00
parent dec703c7e0
commit 55339af296

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)
#if defined(INVARIANTS) || defined(WITNESS) || defined(KTR)
#define __diagused
#else
#define __diagused __unused