(correction) Re: [patch-2.3.52-p2] cleanup of <linux/fs.h>

From: Tigran Aivazian (tigran@aivazian.fsnet.co.uk)
Date: Mon Mar 13 2000 - 16:29:36 EST


my previous patch was incomplete because <linux/fs.h> needed
<linux/module.h> to access THIS_MODULE. Here is the correct version:

--- fs.h.0 Mon Mar 13 21:15:32 2000
+++ fs.h Mon Mar 13 21:27:03 2000
@@ -21,6 +21,7 @@
 #include <linux/cache.h>
 #include <linux/stddef.h>
 #include <linux/string.h>
+#include <linux/module.h>
 
 #include <asm/atomic.h>
 #include <asm/bitops.h>
@@ -730,7 +731,6 @@
         struct file_system_type * next;
 };
 
-#ifdef MODULE
 #define DECLARE_FSTYPE(var,type,read,flags) \
 struct file_system_type var = { \
         name: type, \
@@ -738,14 +738,6 @@
         fs_flags: flags, \
         owner: THIS_MODULE, \
 }
-#else
-#define DECLARE_FSTYPE(var,type,read,flags) \
-struct file_system_type var = { \
- name: type, \
- read_super: read, \
- fs_flags: flags, \
-}
-#endif
 
 #define DECLARE_FSTYPE_DEV(var,type,read) \
         DECLARE_FSTYPE(var,type,read,FS_REQUIRES_DEV)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:25 EST