bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] Add comments after endifs


From: Marin Ramesa
Subject: [PATCH 1/2] Add comments after endifs
Date: Sat, 30 Nov 2013 11:16:01 +0100

* ddb/db_run.c [FIXUP_PC_AFTER_BREAK]: Add comment after endif.
* 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.

---
 ddb/db_run.c         | 2 +-
 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 +-
 8 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/ddb/db_run.c b/ddb/db_run.c
index acd5586..330b41b 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -81,7 +81,7 @@ db_stop_at_pc(is_breakpoint, task)
            FIXUP_PC_AFTER_BREAK
            pc = PC_REGS(DDB_REGS);
        }
-#endif
+#endif /* FIXUP_PC_AFTER_BREAK */
 
        /*
         * Now check for a breakpoint at this address.
diff --git a/device/cons.c b/device/cons.c
index ceba7f2..b35e79f 100644
--- a/device/cons.c
+++ b/device/cons.c
@@ -30,7 +30,7 @@
 #ifdef MACH_KMSG
 #include <device/io_req.h>
 #include <device/kmsg.h>
-#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 89d1f3d..be69b38 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -404,7 +404,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;
@@ -426,7 +426,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;
@@ -525,7 +525,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();
@@ -651,4 +651,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 3890c3d..d7f34bc 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -1202,7 +1202,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 51ccbe2..b4b3df1 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 321ff98..d76fe0e 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 7fd6cdf..c527547 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 f62e47b..c4d526e 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -1209,6 +1209,6 @@ task_ras_control(
        break;
     }
     task_unlock(task);
-#endif
+#endif /* FAST_TAS */
     return ret;
 }
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]