Skip to content

Commit e18fa70

Browse files
author
Jeff Garzik
committed
Move several *_SUPER_MAGIC symbols to include/linux/magic.h.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent 4f5537d commit e18fa70

30 files changed

Lines changed: 67 additions & 85 deletions

‎fs/affs/affs.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <linux/types.h>
22
#include <linux/fs.h>
33
#include <linux/buffer_head.h>
4-
#include <linux/affs_fs.h>
54
#include <linux/amigaffs.h>
65

76
/* AmigaOS allows file names with up to 30 characters length.

‎fs/affs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/init.h>
1515
#include <linux/statfs.h>
1616
#include <linux/parser.h>
17+
#include <linux/magic.h>
1718
#include "affs.h"
1819

1920
extern struct timezone sys_tz;

‎fs/autofs/autofs_i.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
#define DPRINTK(D) ((void)0)
3838
#endif
3939

40-
#define AUTOFS_SUPER_MAGIC 0x0187
41-
4240
/*
4341
* If the daemon returns a negative response (AUTOFS_IOC_FAIL) then the
4442
* kernel will keep the negative response cached for up to the time given

‎fs/autofs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/file.h>
1717
#include <linux/parser.h>
1818
#include <linux/bitops.h>
19+
#include <linux/magic.h>
1920
#include "autofs_i.h"
2021
#include <linux/module.h>
2122

‎fs/autofs4/autofs_i.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
#define DPRINTK(fmt,args...) do {} while(0)
4141
#endif
4242

43-
#define AUTOFS_SUPER_MAGIC 0x0187
44-
4543
/* Unified info structure. This is pointed to by both the dentry and
4644
inode structures. Each file in the filesystem has an instance of this
4745
structure. It holds a reference to the dentry, so dentries are never

‎fs/autofs4/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/parser.h>
2020
#include <linux/bitops.h>
2121
#include <linux/smp_lock.h>
22+
#include <linux/magic.h>
2223
#include "autofs_i.h"
2324
#include <linux/module.h>
2425

‎fs/hpfs/hpfs_fn.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/mutex.h>
1313
#include <linux/pagemap.h>
1414
#include <linux/buffer_head.h>
15-
#include <linux/hpfs_fs.h>
1615
#include <linux/slab.h>
1716
#include <linux/smp_lock.h>
1817

‎fs/hpfs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/parser.h>
1212
#include <linux/init.h>
1313
#include <linux/statfs.h>
14+
#include <linux/magic.h>
1415

1516
/* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */
1617

‎fs/openpromfs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
#include <linux/types.h>
99
#include <linux/string.h>
1010
#include <linux/fs.h>
11-
#include <linux/openprom_fs.h>
1211
#include <linux/init.h>
1312
#include <linux/slab.h>
1413
#include <linux/seq_file.h>
14+
#include <linux/magic.h>
1515

1616
#include <asm/openprom.h>
1717
#include <asm/oplib.h>

‎include/linux/Kbuild‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ header-y += netfilter_bridge/
1212
header-y += netfilter_ipv4/
1313
header-y += netfilter_ipv6/
1414

15-
header-y += affs_fs.h
1615
header-y += affs_hardblocks.h
1716
header-y += aio_abi.h
1817
header-y += a.out.h
@@ -67,7 +66,6 @@ header-y += genetlink.h
6766
header-y += gen_stats.h
6867
header-y += gigaset_dev.h
6968
header-y += hdsmart.h
70-
header-y += hpfs_fs.h
7169
header-y += hysdn_if.h
7270
header-y += i2c-dev.h
7371
header-y += i8k.h
@@ -103,6 +101,7 @@ header-y += ixjuser.h
103101
header-y += jffs2.h
104102
header-y += keyctl.h
105103
header-y += limits.h
104+
header-y += magic.h
106105
header-y += major.h
107106
header-y += matroxfb.h
108107
header-y += meye.h
@@ -116,7 +115,6 @@ header-y += netrom.h
116115
header-y += nfs2.h
117116
header-y += nfs4_mount.h
118117
header-y += nfs_mount.h
119-
header-y += openprom_fs.h
120118
header-y += param.h
121119
header-y += pci_ids.h
122120
header-y += pci_regs.h

0 commit comments

Comments
 (0)