[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20070522043448.GA6192@havoc.gtf.org>
Date: Tue, 22 May 2007 00:34:49 -0400
From: Jeff Garzik <jeff@...zik.org>
To: Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] smbfs: fix header_check (and build)
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@...zik.org>
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists