From 16fae1561354f35dd524eb8953385d31eac3ce37 Mon Sep 17 00:00:00 2001 From: Victor Lira Date: Thu, 11 Sep 2025 12:32:47 +0200 Subject: [PATCH] coverage: add missing include for macro The missing include prevents it from compiling when CONFIG_COVERAGE is not set and the header is included in a file that has not already included errno.h, causing EOPNOTSUPP to be undeclared. Add the missing include and a few blank lines. Signed-off-by: Victor Lira Acked-by: Andrew Cooper --- xen/include/xen/coverage.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/include/xen/coverage.h b/xen/include/xen/coverage.h index ba5fb67947..91b0d44625 100644 --- a/xen/include/xen/coverage.h +++ b/xen/include/xen/coverage.h @@ -2,13 +2,18 @@ #define _XEN_COV_H #ifdef CONFIG_COVERAGE + #include int sysctl_cov_op(struct xen_sysctl_coverage_op *op); + #else + +#include static inline int sysctl_cov_op(void *unused) { return -EOPNOTSUPP; } + #endif #endif /* _XEN_GCOV_H */