ia64/xen-unstable

changeset 13347:f653919e069a

[XEN] Kexec: Make some variables static.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Tue Jan 09 17:15:29 2007 +0000 (2007-01-09)
parents 91b9c6eae6e8
children 761f695043ff
files xen/common/kexec.c
line diff
     1.1 --- a/xen/common/kexec.c	Tue Jan 09 17:15:28 2007 +0000
     1.2 +++ b/xen/common/kexec.c	Tue Jan 09 17:15:29 2007 +0000
     1.3 @@ -31,21 +31,21 @@ typedef long ret_t;
     1.4  #define ELFNOTE_DESC(_n_) (ELFNOTE_NAME(_n_) + ELFNOTE_ALIGN((_n_)->namesz))
     1.5  #define ELFNOTE_NEXT(_n_) (ELFNOTE_DESC(_n_) + ELFNOTE_ALIGN((_n_)->descsz))
     1.6  
     1.7 -DEFINE_PER_CPU(void *, crash_notes);
     1.8 +static DEFINE_PER_CPU(void *, crash_notes);
     1.9  
    1.10 -Elf_Note *xen_crash_note;
    1.11 +static Elf_Note *xen_crash_note;
    1.12  
    1.13 -cpumask_t crash_saved_cpus;
    1.14 +static cpumask_t crash_saved_cpus;
    1.15  
    1.16 -xen_kexec_image_t kexec_image[KEXEC_IMAGE_NR];
    1.17 +static xen_kexec_image_t kexec_image[KEXEC_IMAGE_NR];
    1.18  
    1.19  #define KEXEC_FLAG_DEFAULT_POS   (KEXEC_IMAGE_NR + 0)
    1.20  #define KEXEC_FLAG_CRASH_POS     (KEXEC_IMAGE_NR + 1)
    1.21  #define KEXEC_FLAG_IN_PROGRESS   (KEXEC_IMAGE_NR + 2)
    1.22  
    1.23 -unsigned long kexec_flags = 0; /* the lowest bits are for KEXEC_IMAGE... */
    1.24 +static unsigned long kexec_flags = 0; /* the lowest bits are for KEXEC_IMAGE... */
    1.25  
    1.26 -spinlock_t kexec_lock = SPIN_LOCK_UNLOCKED;
    1.27 +static spinlock_t kexec_lock = SPIN_LOCK_UNLOCKED;
    1.28  
    1.29  xen_kexec_reserve_t kexec_crash_area;
    1.30