[PATCH] smbfs: fix header_check (and build)

From: Jeff Garzik
Date: Tue May 22 2007 - 00:34:58 EST



The build dies in the header_check portion:
/garz/repo/linux-2.6/usr/include/linux/smb_fs.h requires linux/jiffies.h, which does not exist in exported headers
make[3]: *** [/garz/repo/linux-2.6/usr/include/linux/.check.smb_fs.h] Error 1

The solution is to move the jiffies.h include inside __KERNEL__.

Signed-off-by: Jeff Garzik <jeff@xxxxxxxxxx>

diff --git a/include/linux/smb_fs.h b/include/linux/smb_fs.h
index 6b51a48..d5212f0 100644
--- a/include/linux/smb_fs.h
+++ b/include/linux/smb_fs.h
@@ -9,7 +9,6 @@
#ifndef _LINUX_SMB_FS_H
#define _LINUX_SMB_FS_H

-#include <linux/jiffies.h>
#include <linux/smb.h>

/*
@@ -26,6 +25,7 @@
#include <linux/smb_fs_i.h>
#include <linux/smb_fs_sb.h>

+#include <linux/jiffies.h>
#include <linux/fs.h>
#include <linux/pagemap.h>
#include <linux/vmalloc.h>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/