瀏覽代碼

[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 年之前
父節點
當前提交
d91ccde9e5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/include/ipxe/process.h

+ 1
- 1
src/include/ipxe/process.h 查看文件

@@ -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,					      \

Loading…
取消
儲存