Signed-off-by: Richard Henderson <[email protected]> --- include/qemu/compiler.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 4c49f52eb07..3661dc5fbaa 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -25,6 +25,14 @@ #define QEMU_PACKED __attribute__((packed)) #define QEMU_ALIGNED(X) __attribute__((aligned(X))) +#define QEMU_ARG_NONNULL __attribute__((nonnull)) +#define QEMU_ARG_LIST_NONNULL(...) __attribute__((nonnull(__VA_LIST__))) +#define QEMU_RET_NONNULL __attribute__((returns_nonnull)) +#define QEMU_RET_ARG_NONNULL \ + __attribute__((returns_nonnull, nonnull)) +#define QEMU_RET_ARG_LIST_NONNULL(...) \ + __attribute__((returns_nonnull, nonnull(__VA_ARGS__))) + #ifndef glue #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y) -- 2.53.0
