From b3ea7fdf7b33bf1d9b225db41dcfb2041dd76ae0 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Mon, 2 Jul 2018 22:26:28 -0700 Subject: [PATCH] rmtfs: fix the type of the phys_address argument of rmtfs_mem_ptr() The 'phys_address' argument of rmtfs_mem_read() and rmtfs_mem_write() is an 'unsigned long' type value, which is then passed to the 'phys_address' argument of rmtfs_mem_ptr(), which is an 'unsigned int' type value. This patch fixes the mismatch. Signed-off-by: Ben Chan --- sharedmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharedmem.c b/sharedmem.c index 331b616..c54fbbe 100644 --- a/sharedmem.c +++ b/sharedmem.c @@ -261,7 +261,7 @@ void rmtfs_mem_free(struct rmtfs_mem *rmem) { } -static void *rmtfs_mem_ptr(struct rmtfs_mem *rmem, unsigned phys_address, ssize_t len) +static void *rmtfs_mem_ptr(struct rmtfs_mem *rmem, unsigned long phys_address, ssize_t len) { uint64_t start; uint64_t end;