um: Fix the definition for physmem_size
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 16 Sep 2024 04:59:50 +0000 (12:59 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 10 Oct 2024 10:02:13 +0000 (12:02 +0200)
commit242fef3610e3a38c53781d4d81d8e779021c0af5
treeb2c6b0df0f2807b76d93489a547b1ba84622f480
parentcd05cbed42b73168b0772b83bc24769fea3871bf
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 <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20240916045950.508910-5-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/virtio_uml.c
arch/um/include/shared/as-layout.h
arch/um/kernel/physmem.c
arch/um/kernel/um_arch.c