Skip to contentSkip to conversation

FILESYSTEMS: Explicitly include required header file slab.h.

PATCH New Robert P. J. Day 1 participant 1 message Mar 14, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FILESYSTEMS: Explicitly include required header file slab.h.

After an experimental deletion of the unnecessary include of slab.h from the header file <linux/percpu.h>, the following files were exposed as needing to explicitly include <linux/slab.h>.

---

 fs/eventfd.c  |    1 +
 fs/signalfd.c |    1 +
 fs/timerfd.c  |    1 +
 3 files changed, 3 insertions(+)
fs/eventfd.c +1 -0
index a9f130c..028cd17 100644
@@ -16,6 +16,7 @@
 #include <linux/anon_inodes.h>
 #include <linux/eventfd.h>
 #include <linux/syscalls.h>
+#include <linux/slab.h>
 
 struct eventfd_ctx {
 	wait_queue_head_t wqh;
fs/signalfd.c +1 -0
index cb2b63a..547cd40 100644
@@ -28,6 +28,7 @@
 #include <linux/anon_inodes.h>
 #include <linux/signalfd.h>
 #include <linux/syscalls.h>
+#include <linux/slab.h>
 
 struct signalfd_ctx {
 	sigset_t sigmask;
fs/timerfd.c +1 -0
index 10c80b5..6a2a06c 100644
@@ -20,6 +20,7 @@
 #include <linux/hrtimer.h>
 #include <linux/anon_inodes.h>
 #include <linux/timerfd.h>
+#include <linux/slab.h>
 
 struct timerfd_ctx {
 	struct hrtimer tmr;

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================