mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] smbfs: fix header_check (and build)
@ 2007-05-22  4:34 Jeff Garzik
  0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2007-05-22  4:34 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds; +Cc: LKML


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@garzik.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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-22  4:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-22  4:34 [PATCH] smbfs: fix header_check (and build) Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®