aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/virtio_uml.c
diff options
context:
space:
mode:
authorTiwei Bie <[email protected]>2024-09-16 04:59:50 +0000
committerJohannes Berg <[email protected]>2024-10-10 10:02:13 +0000
commit242fef3610e3a38c53781d4d81d8e779021c0af5 (patch)
treeb2c6b0df0f2807b76d93489a547b1ba84622f480 /arch/um/drivers/virtio_uml.c
parentum: Remove highmem leftovers (diff)
downloadkernel-242fef3610e3a38c53781d4d81d8e779021c0af5.tar.gz
kernel-242fef3610e3a38c53781d4d81d8e779021c0af5.zip
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/drivers/virtio_uml.c')
-rw-r--r--arch/um/drivers/virtio_uml.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/drivers/virtio_uml.c b/arch/um/drivers/virtio_uml.c
index e7f5556e3c96..4d3e9b9f5b61 100644
--- a/arch/um/drivers/virtio_uml.c
+++ b/arch/um/drivers/virtio_uml.c
@@ -72,8 +72,6 @@ struct virtio_uml_vq_info {
bool suspended;
};
-extern unsigned long long physmem_size;
-
#define vu_err(vu_dev, ...) dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__)
/* Vhost-user protocol */