mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[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>
This commit is contained in:
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
Block a user