diff options
| author | Michael Brown | 2013-04-25 16:15:43 +0200 |
|---|---|---|
| committer | Michael Brown | 2013-04-25 16:15:43 +0200 |
| commit | d91ccde9e53b5401b3436caec885e0be36722365 (patch) | |
| tree | 912d8db1ea56f3257896153b636dce9629bb2ae5 /src | |
| parent | [build] Avoid sparse undeclared symbol warning for PROVIDE_SYMBOL() (diff) | |
| download | ipxe-d91ccde9e53b5401b3436caec885e0be36722365.tar.gz ipxe-d91ccde9e53b5401b3436caec885e0be36722365.tar.xz ipxe-d91ccde9e53b5401b3436caec885e0be36722365.zip | |
[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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/ipxe/process.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, \ |
