[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250421185210.3372306-11-mingo@kernel.org>
Date: Mon, 21 Apr 2025 20:51:50 +0200
From: Ingo Molnar <mingo@...nel.org>
To: linux-kernel@...r.kernel.org
Cc: Andy Shevchenko <andy@...nel.org>,
Arnd Bergmann <arnd@...nel.org>,
Borislav Petkov <bp@...en8.de>,
Juergen Gross <jgross@...e.com>,
"H . Peter Anvin" <hpa@...or.com>,
Kees Cook <keescook@...omium.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Mike Rapoport <rppt@...nel.org>,
Paul Menzel <pmenzel@...gen.mpg.de>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>,
David Woodhouse <dwmw@...zon.co.uk>
Subject: [PATCH 10/29] x86/boot/e820: Use 'u64' consistently instead of 'unsigned long long'
There's a number of structure fields and local variables related
to E820 entry physical addresses that are defined as 'unsigned long long',
but then are compared to u64 fields.
Make the types all consistently u64.
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Cc: Andy Shevchenko <andy@...nel.org>
Cc: Arnd Bergmann <arnd@...nel.org>
Cc: David Woodhouse <dwmw@...zon.co.uk>
Cc: H. Peter Anvin <hpa@...or.com>
Cc: Kees Cook <keescook@...omium.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Mike Rapoport (Microsoft) <rppt@...nel.org>
---
arch/x86/kernel/e820.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 3eab0908ca71..7d100e653554 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -338,7 +338,7 @@ struct change_member {
/* Pointer to the original entry: */
struct e820_entry *entry;
/* Address for this change point: */
- unsigned long long addr;
+ u64 addr;
};
static struct change_member change_point_list[2*E820_MAX_ENTRIES] __initdata;
@@ -386,7 +386,7 @@ int __init e820__update_table(struct e820_table *table)
struct e820_entry *entries = table->entries;
u32 max_nr_entries = ARRAY_SIZE(table->entries);
enum e820_type current_type, last_type;
- unsigned long long last_addr;
+ u64 last_addr;
u32 new_nr_entries, overlap_entries;
u32 i, chg_idx, chg_nr;
@@ -683,13 +683,13 @@ static void __init e820__update_table_kexec(void)
*/
static int __init e820_search_gap(unsigned long *gapstart, unsigned long *gapsize)
{
- unsigned long long last = MAX_GAP_END;
+ u64 last = MAX_GAP_END;
int i = e820_table->nr_entries;
int found = 0;
while (--i >= 0) {
- unsigned long long start = e820_table->entries[i].addr;
- unsigned long long end = start + e820_table->entries[i].size;
+ u64 start = e820_table->entries[i].addr;
+ u64 end = start + e820_table->entries[i].size;
/*
* Since "last" is at most 4GB, we know we'll
--
2.45.2
Powered by blists - more mailing lists