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 diff is collapsed.
......@@ -73,7 +73,6 @@
#include <linux/genhd.h>
#include <asm/bitops.h>
int devfs_register_tape(const char *name)
{
char tname[32], dest[64];
......@@ -86,6 +85,7 @@ int devfs_register_tape(const char *name)
return n;
}
EXPORT_SYMBOL(devfs_register_tape);
void devfs_unregister_tape(int num)
......
......@@ -25,8 +25,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 */
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 */
......@@ -39,5 +38,4 @@ struct devfsd_notify_struct
char devname[DEVFS_PATHLEN]; /* This will be '\0' terminated */
};
#endif /* _LINUX_DEVFS_FS_H */
......@@ -12,14 +12,14 @@
#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);
......@@ -32,7 +32,7 @@ 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;
}
......@@ -43,14 +43,14 @@ 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;
}
static inline void devfs_unregister_tape(int num)
{
}
static inline void mount_devfs_fs (void)
static inline void mount_devfs_fs(void)
{
return;
}
......
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