From 5eb7693cd909511308b6c2828686d51375a3506a Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Sat, 30 Nov 2013 11:16:01 +0100 Subject: Add comments after endifs * device/cons.c [MACH_KMSG]: Likewise. [CONSBUFSIZE > 0]: Likewise. * i386/i386/trap.c [MACH_KDB]: Likewise. [MACH_PV_PAGETABLES]: Likewise. * i386/i386at/kd.c [ENABLE_IMMEDIATE_CONSOLE]: Likewise. * ipc/ipc_kmsg_queue.h [_IPC_KMSG_QUEUE_H_]: Likewise. * kern/act.c [ACTWATCH]: Likewise. * kern/refcount.h [MACHINE_REFCOUNT]: Likewise. * kern/task.c [FAST_TAS]: Likewise. --- device/cons.c | 8 ++++---- i386/i386/trap.c | 8 ++++---- i386/i386at/kd.c | 2 +- ipc/ipc_kmsg_queue.h | 2 +- kern/act.c | 2 +- kern/refcount.h | 2 +- kern/task.c | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/device/cons.c b/device/cons.c index ceba7f24..b35e79f4 100644 --- a/device/cons.c +++ b/device/cons.c @@ -30,7 +30,7 @@ #ifdef MACH_KMSG #include #include -#endif +#endif /* MACH_KMSG */ static boolean_t cn_inited = FALSE; static struct consdev *cn_tab = 0; /* physical console device info */ @@ -55,7 +55,7 @@ void (*romputc)() = 0; static char consbuf[CONSBUFSIZE] = { 0 }; static char *consbp = consbuf; static boolean_t consbufused = FALSE; -#endif +#endif /* CONSBUFSIZE > 0 */ void cninit() @@ -108,7 +108,7 @@ cninit() } while (cbp != consbp); consbufused = FALSE; } -#endif +#endif /* CONSBUFSIZE > 0 */ cn_inited = TRUE; return; } @@ -180,5 +180,5 @@ cnputc(c) if (consbp >= &consbuf[CONSBUFSIZE]) consbp = consbuf; } -#endif +#endif /* CONSBUFSIZE > 0 */ } diff --git a/i386/i386/trap.c b/i386/i386/trap.c index e104e122..ccbc94cc 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -400,7 +400,7 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode); if (kdb_trap(type, regs->err, regs)) return 0; } -#endif +#endif /* MACH_KDB */ exc = EXC_BREAKPOINT; code = EXC_I386_SGL; break; @@ -422,7 +422,7 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode); return 0; } } -#endif +#endif /* MACH_KDB */ exc = EXC_BREAKPOINT; code = EXC_I386_BPT; break; @@ -521,7 +521,7 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode); } return 0; } -#endif +#endif /* MACH_PV_PAGETABLES */ case T_FLOATING_POINT_ERROR: fpexterrflt(); @@ -647,4 +647,4 @@ interrupted_pc(t) iss = USER_REGS(t); return iss->eip; } -#endif /* MACH_PCSAMPLE > 0*/ +#endif /* MACH_PCSAMPLE > 0 */ diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index 5605257f..def8a0ce 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -1197,7 +1197,7 @@ kdinit() screen rather than at the cursor position, so that's where we should start. */ kd_setpos(ONE_PAGE - ONE_LINE); printf("\n"); -#endif +#endif /* ENABLE_IMMEDIATE_CONSOLE */ cnsetleds(kd_state = KS_NORMAL); /* clear the LEDs AFTER we diff --git a/ipc/ipc_kmsg_queue.h b/ipc/ipc_kmsg_queue.h index 51ccbe24..b4b3df1d 100644 --- a/ipc/ipc_kmsg_queue.h +++ b/ipc/ipc_kmsg_queue.h @@ -27,5 +27,5 @@ #define _IPC_KMSG_QUEUE_H_ struct ipc_kmsg_queue { struct ipc_kmsg *ikmq_base; }; -#endif +#endif /* _IPC_KMSG_QUEUE_H_ */ diff --git a/kern/act.c b/kern/act.c index 321ff98d..d76fe0ef 100644 --- a/kern/act.c +++ b/kern/act.c @@ -1114,6 +1114,6 @@ get_next_act(sp) return act; } } -#endif +#endif /* ACTWATCH */ #endif /* MIGRATING_THREADS */ diff --git a/kern/refcount.h b/kern/refcount.h index 7fd6cdfb..c5275477 100644 --- a/kern/refcount.h +++ b/kern/refcount.h @@ -65,6 +65,6 @@ typedef struct RefCount RefCount; if (new_value == 0) { func; } \ MACRO_END -#endif +#endif /* MACHINE_REFCOUNT */ #endif _KERN_REFCOUNT_H_ diff --git a/kern/task.c b/kern/task.c index 933a90e8..8fe3672f 100644 --- a/kern/task.c +++ b/kern/task.c @@ -1206,6 +1206,6 @@ task_ras_control( break; } task_unlock(task); -#endif +#endif /* FAST_TAS */ return ret; } -- cgit v1.2.3