|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v4 3/5] lib/devfs: Tabify imported devfs code
From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
According to Unikraft's coding style indents are
under the form of tabs. The imported code used both
spaces and tabs. This patch makes all indents to
be use tabs.
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
Reviewed-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
lib/devfs/devfs_vnops.c | 6 +++---
lib/devfs/include/devfs/device.h | 32 ++++++++++++++++----------------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/lib/devfs/devfs_vnops.c b/lib/devfs/devfs_vnops.c
index af2abf92..edd801c8 100644
--- a/lib/devfs/devfs_vnops.c
+++ b/lib/devfs/devfs_vnops.c
@@ -298,9 +298,9 @@ struct vfsops devfs_vfsops = {
};
static struct vfscore_fs_type fs_devfs = {
- .vs_name = "devfs",
- .vs_init = NULL,
- .vs_op = &devfs_vfsops,
+ .vs_name = "devfs",
+ .vs_init = NULL,
+ .vs_op = &devfs_vfsops,
};
UK_FS_REGISTER(fs_devfs);
diff --git a/lib/devfs/include/devfs/device.h b/lib/devfs/include/devfs/device.h
index 183f418d..6446d330 100644
--- a/lib/devfs/include/devfs/device.h
+++ b/lib/devfs/include/devfs/device.h
@@ -102,13 +102,13 @@ struct driver {
*/
typedef enum device_state {
- DS_INACTIVE = 0x00, /* driver is inactive */
- DS_ALIVE = 0x01, /* probe succeded */
- DS_ACTIVE = 0x02, /* intialized */
- DS_DEBUG = 0x04, /* debug */
- DS_NOTPRESENT = 0x08, /* not probed or probe failed */
- DS_ATTACHING = 0x10, /* currently attaching */
- DS_ATTACHED = 0x20, /*attach method called */
+ DS_INACTIVE = 0x00, /* driver is inactive */
+ DS_ALIVE = 0x01, /* probe succeded */
+ DS_ACTIVE = 0x02, /* intialized */
+ DS_DEBUG = 0x04, /* debug */
+ DS_NOTPRESENT = 0x08, /* not probed or probe failed */
+ DS_ATTACHING = 0x10, /* currently attaching */
+ DS_ATTACHED = 0x20, /*attach method called */
} device_state_t;
/*
@@ -181,18 +181,18 @@ static inline void device_quiet(device_t dev __unused)
static inline const char *
devtoname(struct device *dev)
{
- return dev->name;
+ return dev->name;
}
-int device_open(const char *, int, struct device **);
-int device_close(struct device *);
-int device_read(struct device *, struct uio *, int);
-int device_write(struct device *, struct uio *, int);
-int device_ioctl(struct device *, unsigned long, void *);
-int device_info(struct devinfo *);
+int device_open(const char *, int, struct device **);
+int device_close(struct device *);
+int device_read(struct device *, struct uio *, int);
+int device_write(struct device *, struct uio *, int);
+int device_ioctl(struct device *, unsigned long, void *);
+int device_info(struct devinfo *);
-int bdev_read(struct device *dev, struct uio *uio, int ioflags);
-int bdev_write(struct device *dev, struct uio *uio, int ioflags);
+int bdev_read(struct device *dev, struct uio *uio, int ioflags);
+int bdev_write(struct device *dev, struct uio *uio, int ioflags);
int enodev(void);
int nullop(void);
--
2.21.0
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |