Messages in this thread Patch in this message | | | Date | Mon, 13 Mar 2000 21:29:36 +0000 (GMT) | From | Tigran Aivazian <> | Subject | (correction) Re: [patch-2.3.52-p2] cleanup of <linux/fs.h> |
| |
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/
| |