aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-05-01 01:14:24 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-05-07 14:08:03 +0000
commit838adc533fa11b8c4e7da5603377fdd62c2f1d90 (patch)
tree182224155df4ef0d381fb009e16283af8afa3203
parenta7c198a24b12b9e6d83d7718d8d16a5cef48d35f (diff)
downloadsrc-838adc533fa11b8c4e7da5603377fdd62c2f1d90.tar.gz
src-838adc533fa11b8c4e7da5603377fdd62c2f1d90.zip
Style enum obj_type
Put each type into dedicated line, which makes addition of new types cleaner. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
-rw-r--r--sys/vm/vm.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index 9bf77db4118c..678e6eb2d2d8 100644
--- a/sys/vm/vm.h
+++ b/sys/vm/vm.h
@@ -88,8 +88,16 @@ typedef u_char vm_prot_t; /* protection codes */
#define VM_PROT_RW (VM_PROT_READ|VM_PROT_WRITE)
#define VM_PROT_DEFAULT VM_PROT_ALL
-enum obj_type { OBJT_DEFAULT, OBJT_SWAP, OBJT_VNODE, OBJT_DEVICE, OBJT_PHYS,
- OBJT_DEAD, OBJT_SG, OBJT_MGTDEVICE };
+enum obj_type {
+ OBJT_DEFAULT,
+ OBJT_SWAP,
+ OBJT_VNODE,
+ OBJT_DEVICE,
+ OBJT_PHYS,
+ OBJT_DEAD,
+ OBJT_SG,
+ OBJT_MGTDEVICE,
+};
typedef u_char objtype_t;
union vm_map_object;