aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorVitaliy Gusev <gusev.vitaliy@gmail.com>2024-02-06 15:36:17 +0000
committerMark Johnston <markj@FreeBSD.org>2024-02-06 15:38:34 +0000
commit7572fe89ada63719b558c6b844e2743cd3ff6b6a (patch)
tree40f7a9ddb28a2dbc53fa20bf613d57b55a65ae6a /sys/amd64/include
parentdf64d7c8c82d59958cb546b23ba240ab97dc5033 (diff)
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/vmm_snapshot.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/amd64/include/vmm_snapshot.h b/sys/amd64/include/vmm_snapshot.h
index 5ed00c71d58a..b39c342bf6d9 100644
--- a/sys/amd64/include/vmm_snapshot.h
+++ b/sys/amd64/include/vmm_snapshot.h
@@ -98,8 +98,6 @@ void vm_snapshot_buf_err(const char *bufname, const enum vm_snapshot_op op);
int vm_snapshot_buf(void *data, size_t data_size,
struct vm_snapshot_meta *meta);
size_t vm_get_snapshot_size(struct vm_snapshot_meta *meta);
-int vm_snapshot_buf_cmp(void *data, size_t data_size,
- struct vm_snapshot_meta *meta);
#define SNAPSHOT_BUF_OR_LEAVE(DATA, LEN, META, RES, LABEL) \
do { \
@@ -113,6 +111,10 @@ do { \
#define SNAPSHOT_VAR_OR_LEAVE(DATA, META, RES, LABEL) \
SNAPSHOT_BUF_OR_LEAVE(&(DATA), sizeof(DATA), (META), (RES), LABEL)
+#ifndef _KERNEL
+int vm_snapshot_buf_cmp(void *data, size_t data_size,
+ struct vm_snapshot_meta *meta);
+
/* compare the value in the meta buffer with the data */
#define SNAPSHOT_BUF_CMP_OR_LEAVE(DATA, LEN, META, RES, LABEL) \
do { \
@@ -126,4 +128,5 @@ do { \
#define SNAPSHOT_VAR_CMP_OR_LEAVE(DATA, META, RES, LABEL) \
SNAPSHOT_BUF_CMP_OR_LEAVE(&(DATA), sizeof(DATA), (META), (RES), LABEL)
+#endif /* _KERNEL */
#endif