[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] coverage: add missing include for macro



commit 16fae1561354f35dd524eb8953385d31eac3ce37
Author:     Victor Lira <victorm.lira@xxxxxxx>
AuthorDate: Thu Sep 11 12:32:47 2025 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Sep 11 12:32:47 2025 +0200

    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@xxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 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 <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 */
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.