File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 36
36
* to lock the reader.
37
37
*/
38
38
39
- #include <linux/kernel .h>
39
+ #include <linux/array_size .h>
40
40
#include <linux/spinlock.h>
41
41
#include <linux/stddef.h>
42
- #include <linux/scatterlist.h>
42
+ #include <linux/types.h>
43
+
44
+ #include <asm/barrier.h>
45
+ #include <asm/errno.h>
46
+
47
+ struct scatterlist ;
43
48
44
49
struct __kfifo {
45
50
unsigned int in ;
Original file line number Diff line number Diff line change 5
5
* Copyright (C) 2009/2010 Stefani Seibold <[email protected] >
6
6
*/
7
7
8
- #include <linux/kernel.h>
9
- #include <linux/export.h>
10
- #include <linux/slab.h>
11
8
#include <linux/err.h>
9
+ #include <linux/export.h>
10
+ #include <linux/kfifo.h>
12
11
#include <linux/log2.h>
12
+ #include <linux/scatterlist.h>
13
+ #include <linux/slab.h>
13
14
#include <linux/uaccess.h>
14
- #include <linux/kfifo.h>
15
15
16
16
/*
17
17
* internal helper to calculate the unused elements in a fifo
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
#include <linux/init.h>
9
- #include <linux/module.h>
10
9
#include <linux/kfifo.h>
10
+ #include <linux/module.h>
11
+ #include <linux/scatterlist.h>
11
12
12
13
/*
13
14
* This module shows how to handle fifo dma operations.
You can’t perform that action at this time.
0 commit comments