blob: 7f2b5c6e011f5fc05636655947d16cc3c0006639 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 0feecf4de9d94cd903a7db373b8cd5cb0eef1987 Mon Sep 17 00:00:00 2001
From: Vinson Lee <vlee@twitter.com>
Date: Wed, 1 Jul 2015 14:12:47 -0700
Subject: [PATCH] Fix Linux 4.2 compilation errors.
Signed-off-by: Vinson Lee <vlee@twitter.com>
---
src/flashcache_conf.c | 1 +
src/flashcache_kcopy.c | 1 +
src/flashcache_subr.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/src/flashcache_conf.c b/src/flashcache_conf.c
index 43f4387..0ca05f7 100644
--- a/src/flashcache_conf.c
+++ b/src/flashcache_conf.c
@@ -41,6 +41,7 @@
#include <linux/delay.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
+#include <linux/vmalloc.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
#include "dm.h"
diff --git a/src/flashcache_subr.c b/src/flashcache_subr.c
index 8d0bae5..ef931d4 100644
--- a/src/flashcache_subr.c
+++ b/src/flashcache_subr.c
@@ -41,6 +41,7 @@
#include <linux/time.h>
#include <asm/kmap_types.h>
#include <linux/jhash.h>
+#include <linux/vmalloc.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
#include "dm.h"
|