From: Michael Brown Date: Thu, 25 Apr 2013 14:15:43 +0000 (+0100) Subject: [process] Mark process descriptor as static in PERMANENT_PROCESS X-Git-Tag: v1.20.1~1529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91ccde9e53b5401b3436caec885e0be36722365;p=thirdparty%2Fipxe.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 --- diff --git a/src/include/ipxe/process.h b/src/include/ipxe/process.h index 9b7579817..2c76ff260 100644 --- a/src/include/ipxe/process.h +++ b/src/include/ipxe/process.h @@ -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, \