summaryrefslogtreecommitdiff
path: root/tools/virtio/linux/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtio/linux/err.h')
-rw-r--r--tools/virtio/linux/err.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/linux/err.h b/tools/virtio/linux/err.h
index 0943c644a701..b7b4cb516dc9 100644
--- a/tools/virtio/linux/err.h
+++ b/tools/virtio/linux/err.h
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef ERR_H
#define ERR_H
+#include <linux/kernel.h>
#define MAX_ERRNO 4095
#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)