]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[process] Mark process descriptor as static in PERMANENT_PROCESS
authorMichael Brown <mcb30@ipxe.org>
Thu, 25 Apr 2013 14:15:43 +0000 (15:15 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 25 Apr 2013 14:15:43 +0000 (15:15 +0100)
There is no need for the process descriptor to be a global variable.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/process.h

index 9b757981794be21eee4009352de1e79895b266a9..2c76ff260ac0b3e070588cf34413abb78d8da618 100644 (file)
@@ -174,7 +174,7 @@ process_running ( struct process *process ) {
  *
  */
 #define PERMANENT_PROCESS( name, step )                                              \
-struct process_descriptor name ## _desc = PROC_DESC_PURE ( step );           \
+static struct process_descriptor name ## _desc = PROC_DESC_PURE ( step );     \
 struct process name __permanent_process = {                                  \
        .list = LIST_HEAD_INIT ( name.list ),                                 \
        .desc = & name ## _desc,                                              \