diff options
author | Tiwei Bie <[email protected]> | 2024-09-16 12:59:50 +0800 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2024-10-10 12:02:13 +0200 |
commit | 242fef3610e3a38c53781d4d81d8e779021c0af5 (patch) | |
tree | b2c6b0df0f2807b76d93489a547b1ba84622f480 /arch/um/kernel/physmem.c | |
parent | cd05cbed42b73168b0772b83bc24769fea3871bf (diff) |
um: Fix the definition for physmem_size
Currently physmem_size is defined as long long but declared locally
as unsigned long long before using it in separate .c files. Make them
match by defining physmem_size as unsigned long long and also move
the declaration to a common header to allow the compiler to check it.
Signed-off-by: Tiwei Bie <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'arch/um/kernel/physmem.c')
-rw-r--r-- | arch/um/kernel/physmem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index 94aca17993fd..636830fe00f2 100644 --- a/arch/um/kernel/physmem.c +++ b/arch/um/kernel/physmem.c @@ -22,8 +22,6 @@ static int physmem_fd = -1; unsigned long high_physmem; EXPORT_SYMBOL(high_physmem); -extern unsigned long long physmem_size; - void __init mem_total_pages(unsigned long physmem, unsigned long iomem) { unsigned long phys_pages, iomem_pages, total_pages; |