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 <victorm.lira@amd.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Victor Lira authored and Jan Beulich committed 2025-09-11 12:32:47 +02:00
1 parent 240bde75cb
commit 16fae15613
1 file changed
+5
+5
View File
@@ -2,13 +2,18 @@
#define _XEN_COV_H
#ifdef CONFIG_COVERAGE
#include <public/sysctl.h>
int sysctl_cov_op(struct xen_sysctl_coverage_op *op);
#else
#include <xen/errno.h>
static inline int sysctl_cov_op(void *unused)
{
return -EOPNOTSUPP;
}
#endif
#endif /* _XEN_GCOV_H */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.