diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-01-28 16:52:34 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-01-28 17:02:57 +0100 |
commit | 6afc03b86470f602d118825d09addfeeaef535f0 (patch) | |
tree | aec8ac2485bd496717c4f7c91b49a9fd5bc6d5c1 /arch/x86/include/asm/e820 | |
parent | 09c5151339caea3a5752e577c66521f6e7443fe5 (diff) | |
download | lwn-6afc03b86470f602d118825d09addfeeaef535f0.tar.gz lwn-6afc03b86470f602d118825d09addfeeaef535f0.zip |
x86/boot/e820: Use 'enum e820_type' when handling the e820 region type
The E820 region type is put into four different types (!) when used in function
parameters or local variables:
unsigned type;
int type;
unsigned long current_type;
u32 type;
Use 'enum e820_type' in all these cases instead.
No change in functionality.
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Huang, Ying <ying.huang@intel.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Jackson <pj@sgi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/e820')
-rw-r--r-- | arch/x86/include/asm/e820/api.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/e820/api.h b/arch/x86/include/asm/e820/api.h index 465c32c9a0dc..4c35c36c62d5 100644 --- a/arch/x86/include/asm/e820/api.h +++ b/arch/x86/include/asm/e820/api.h @@ -8,12 +8,12 @@ extern struct e820_table *e820_table_firmware; extern unsigned long pci_mem_start; -extern int e820__mapped_any(u64 start, u64 end, unsigned type); -extern int e820__mapped_all(u64 start, u64 end, unsigned type); +extern int e820__mapped_any(u64 start, u64 end, enum e820_type type); +extern int e820__mapped_all(u64 start, u64 end, enum e820_type type); -extern void e820__range_add (u64 start, u64 size, int type); -extern u64 e820__range_update(u64 start, u64 size, unsigned old_type, unsigned new_type); -extern u64 e820__range_remove(u64 start, u64 size, unsigned old_type, int checktype); +extern void e820__range_add (u64 start, u64 size, enum e820_type type); +extern u64 e820__range_update(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type); +extern u64 e820__range_remove(u64 start, u64 size, enum e820_type old_type, int checktype); extern void e820__print_table(char *who); extern int e820__update_table(struct e820_entry *biosmap, int max_nr_map, u32 *pnr_map); |