Przeglądaj źródła

[process] Mark process descriptor as static in PERMANENT_PROCESS

There is no need for the process descriptor to be a global variable.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 lat temu
rodzic
commit
d91ccde9e5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/include/ipxe/process.h

+ 1
- 1
src/include/ipxe/process.h Wyświetl plik

@@ -174,7 +174,7 @@ process_running ( struct process *process ) {
174 174
  *
175 175
  */
176 176
 #define PERMANENT_PROCESS( name, step )					      \
177
-struct process_descriptor name ## _desc = PROC_DESC_PURE ( step );	      \
177
+static struct process_descriptor name ## _desc = PROC_DESC_PURE ( step );     \
178 178
 struct process name __permanent_process = {				      \
179 179
 	.list = LIST_HEAD_INIT ( name.list ),				      \
180 180
 	.desc = & name ## _desc,					      \

Ładowanie…
Anuluj
Zapisz