summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 22:39:51 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 22:39:51 -0700
commit243c64b2cfea7e49e074c80db65fa7b90d765c6f (patch)
tree40efd2539461792ad34573e94446172ddc9f6f28 /include
parent77b92f5b13c7f025ad46dbbf3feccd85b2954feb (diff)
[PATCH] feed devfs through Lindent
Nobody seems to have any outstanding work against devfs, so...
Diffstat (limited to 'include')
-rw-r--r--include/linux/devfs_fs.h32
-rw-r--r--include/linux/devfs_fs_kernel.h26
2 files changed, 28 insertions, 30 deletions
diff --git a/include/linux/devfs_fs.h b/include/linux/devfs_fs.h
index 48da59012021..de236f431877 100644
--- a/include/linux/devfs_fs.h
+++ b/include/linux/devfs_fs.h
@@ -22,22 +22,20 @@
#define DEVFSD_NOTIFY_CREATE 6
#define DEVFSD_NOTIFY_DELETE 7
-#define DEVFS_PATHLEN 1024 /* Never change this otherwise the
- binary interface will change */
-
-struct devfsd_notify_struct
-{ /* Use native C types to ensure same types in kernel and user space */
- unsigned int type; /* DEVFSD_NOTIFY_* value */
- unsigned int mode; /* Mode of the inode or device entry */
- unsigned int major; /* Major number of device entry */
- unsigned int minor; /* Minor number of device entry */
- unsigned int uid; /* Uid of process, inode or device entry */
- unsigned int gid; /* Gid of process, inode or device entry */
- unsigned int overrun_count; /* Number of lost events */
- unsigned int namelen; /* Number of characters not including '\0' */
- /* The device name MUST come last */
- char devname[DEVFS_PATHLEN]; /* This will be '\0' terminated */
+#define DEVFS_PATHLEN 1024 /* Never change this otherwise the
+ binary interface will change */
+
+struct devfsd_notify_struct { /* Use native C types to ensure same types in kernel and user space */
+ unsigned int type; /* DEVFSD_NOTIFY_* value */
+ unsigned int mode; /* Mode of the inode or device entry */
+ unsigned int major; /* Major number of device entry */
+ unsigned int minor; /* Minor number of device entry */
+ unsigned int uid; /* Uid of process, inode or device entry */
+ unsigned int gid; /* Gid of process, inode or device entry */
+ unsigned int overrun_count; /* Number of lost events */
+ unsigned int namelen; /* Number of characters not including '\0' */
+ /* The device name MUST come last */
+ char devname[DEVFS_PATHLEN]; /* This will be '\0' terminated */
};
-
-#endif /* _LINUX_DEVFS_FS_H */
+#endif /* _LINUX_DEVFS_FS_H */
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
index 16c78f54f427..89810e73d256 100644
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -12,18 +12,18 @@
#ifdef CONFIG_DEVFS_FS
extern int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
- __attribute__((format (printf, 3, 4)));
+ __attribute__ ((format(printf, 3, 4)));
extern int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
- __attribute__((format (printf, 3, 4)));
+ __attribute__ ((format(printf, 3, 4)));
extern int devfs_mk_symlink(const char *name, const char *link);
extern int devfs_mk_dir(const char *fmt, ...)
- __attribute__((format (printf, 1, 2)));
+ __attribute__ ((format(printf, 1, 2)));
extern void devfs_remove(const char *fmt, ...)
- __attribute__((format (printf, 1, 2)));
+ __attribute__ ((format(printf, 1, 2)));
extern int devfs_register_tape(const char *name);
extern void devfs_unregister_tape(int num);
extern void mount_devfs_fs(void);
-#else /* CONFIG_DEVFS_FS */
+#else /* CONFIG_DEVFS_FS */
static inline int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
{
return 0;
@@ -32,9 +32,9 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
{
return 0;
}
-static inline int devfs_mk_symlink (const char *name, const char *link)
+static inline int devfs_mk_symlink(const char *name, const char *link)
{
- return 0;
+ return 0;
}
static inline int devfs_mk_dir(const char *fmt, ...)
{
@@ -43,16 +43,16 @@ static inline int devfs_mk_dir(const char *fmt, ...)
static inline void devfs_remove(const char *fmt, ...)
{
}
-static inline int devfs_register_tape (const char *name)
+static inline int devfs_register_tape(const char *name)
{
- return -1;
+ return -1;
}
static inline void devfs_unregister_tape(int num)
{
}
-static inline void mount_devfs_fs (void)
+static inline void mount_devfs_fs(void)
{
- return;
+ return;
}
-#endif /* CONFIG_DEVFS_FS */
-#endif /* _LINUX_DEVFS_FS_KERNEL_H */
+#endif /* CONFIG_DEVFS_FS */
+#endif /* _LINUX_DEVFS_FS_KERNEL_H */