SYSFS: Explicitly include required header file slab.h.
PATCH 1/1 SYSFS: Explicitly include required header file slab.h.
After an experimental deletion of the unnecessary inclusion of <linux/slab.h> from the header file <linux/percpu.h>, the following files under fs/sysfs were exposed as needing to explicitly include <linux/slab.h>.
Signed-off-by Robert P. J. Day <[email protected]>
---
fs/sysfs/dir.c | 1 + fs/sysfs/file.c | 2 ++ 2 files changed, 3 insertions(+)
fs/sysfs/dir.c +1 -0
@@ -20,6 +20,7 @@#include <linux/idr.h> #include <linux/completion.h> #include <linux/mutex.h> +#include <linux/slab.h> #include "sysfs.h" DEFINE_MUTEX (sysfs_mutex);
fs/sysfs/file.c +2 -0
@@ -16,6 +16,8 @@#include <linux/poll.h> #include <linux/list.h> #include <linux/mutex.h> +#include <linux/slab.h> +#include <asm/uaccess.h> #include "sysfs.h"
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================