mirror of https://github.com/ipxe/ipxe.git
[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>pull/13/head
parent
eaa0f47dc2
commit
d91ccde9e5
|
@ -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, \
|
||||
|
|
Loading…
Reference in New Issue