Commit 243c64b2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] feed devfs through Lindent

Nobody seems to have any outstanding work against devfs, so...
parent 77b92f5b
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
#include <linux/genhd.h> #include <linux/genhd.h>
#include <asm/bitops.h> #include <asm/bitops.h>
int devfs_register_tape(const char *name) int devfs_register_tape(const char *name)
{ {
char tname[32], dest[64]; char tname[32], dest[64];
...@@ -86,6 +85,7 @@ int devfs_register_tape(const char *name) ...@@ -86,6 +85,7 @@ int devfs_register_tape(const char *name)
return n; return n;
} }
EXPORT_SYMBOL(devfs_register_tape); EXPORT_SYMBOL(devfs_register_tape);
void devfs_unregister_tape(int num) void devfs_unregister_tape(int num)
......
...@@ -22,22 +22,20 @@ ...@@ -22,22 +22,20 @@
#define DEVFSD_NOTIFY_CREATE 6 #define DEVFSD_NOTIFY_CREATE 6
#define DEVFSD_NOTIFY_DELETE 7 #define DEVFSD_NOTIFY_DELETE 7
#define DEVFS_PATHLEN 1024 /* Never change this otherwise the #define DEVFS_PATHLEN 1024 /* Never change this otherwise the
binary interface will change */ binary interface will change */
struct devfsd_notify_struct struct devfsd_notify_struct { /* Use native C types to ensure same types in kernel and user space */
{ /* Use native C types to ensure same types in kernel and user space */ unsigned int type; /* DEVFSD_NOTIFY_* value */
unsigned int type; /* DEVFSD_NOTIFY_* value */ unsigned int mode; /* Mode of the inode or device entry */
unsigned int mode; /* Mode of the inode or device entry */ unsigned int major; /* Major number of device entry */
unsigned int major; /* Major number of device entry */ unsigned int minor; /* Minor number of device entry */
unsigned int minor; /* Minor number of device entry */ unsigned int uid; /* Uid of process, inode or device entry */
unsigned int uid; /* Uid of process, inode or device entry */ unsigned int gid; /* Gid 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 overrun_count; /* Number of lost events */ unsigned int namelen; /* Number of characters not including '\0' */
unsigned int namelen; /* Number of characters not including '\0' */ /* The device name MUST come last */
/* The device name MUST come last */ char devname[DEVFS_PATHLEN]; /* This will be '\0' terminated */
char devname[DEVFS_PATHLEN]; /* This will be '\0' terminated */
}; };
#endif /* _LINUX_DEVFS_FS_H */
#endif /* _LINUX_DEVFS_FS_H */
...@@ -12,18 +12,18 @@ ...@@ -12,18 +12,18 @@
#ifdef CONFIG_DEVFS_FS #ifdef CONFIG_DEVFS_FS
extern int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...) 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, ...) 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_symlink(const char *name, const char *link);
extern int devfs_mk_dir(const char *fmt, ...) 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, ...) 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 int devfs_register_tape(const char *name);
extern void devfs_unregister_tape(int num); extern void devfs_unregister_tape(int num);
extern void mount_devfs_fs(void); 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, ...) static inline int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
{ {
return 0; return 0;
...@@ -32,9 +32,9 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...) ...@@ -32,9 +32,9 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
{ {
return 0; 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, ...) static inline int devfs_mk_dir(const char *fmt, ...)
{ {
...@@ -43,16 +43,16 @@ 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 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 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 /* CONFIG_DEVFS_FS */
#endif /* _LINUX_DEVFS_FS_KERNEL_H */ #endif /* _LINUX_DEVFS_FS_KERNEL_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment