[PATCH 11/12] headers: fs.h vs include/linux/posix-clock.h

From: Alexey Dobriyan
Date: Sun Jun 29 2014 - 15:03:09 EST


---
drivers/ptp/ptp_clock.c | 1 +
include/linux/posix-clock.h | 2 +-
kernel/time/posix-clock.c | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index 296b0ec..ecf3ce9 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <linux/fs.h>
#include <linux/idr.h>
#include <linux/device.h>
#include <linux/err.h>
diff --git a/include/linux/posix-clock.h b/include/linux/posix-clock.h
index 34c4498..924ec64 100644
--- a/include/linux/posix-clock.h
+++ b/include/linux/posix-clock.h
@@ -21,11 +21,11 @@
#define _LINUX_POSIX_CLOCK_H_

#include <linux/cdev.h>
-#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/posix-timers.h>
#include <linux/rwsem.h>

+struct file;
struct posix_clock;

/**
diff --git a/kernel/time/posix-clock.c b/kernel/time/posix-clock.c
index ce033c7..438e828 100644
--- a/kernel/time/posix-clock.c
+++ b/kernel/time/posix-clock.c
@@ -20,6 +20,7 @@
#include <linux/device.h>
#include <linux/export.h>
#include <linux/file.h>
+#include <linux/fs.h>
#include <linux/posix-clock.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
--
1.8.5.5


--u3/rZRmxL6MmkK24
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0012-headers-sock.h-vs-include-linux-mroute.h.patch"