mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03: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:
@@ -174,7 +174,7 @@ process_running ( struct process *process ) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define PERMANENT_PROCESS( name, step ) \
|
#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 = { \
|
struct process name __permanent_process = { \
|
||||||
.list = LIST_HEAD_INIT ( name.list ), \
|
.list = LIST_HEAD_INIT ( name.list ), \
|
||||||
.desc = & name ## _desc, \
|
.desc = & name ## _desc, \
|
||||||
|
|||||||
Reference in New Issue
Block a user