[PATCH] drivers: char: mem: changed 'unsigned' to 'unsigned int'
From: Paul Lemmermann
Date: Tue Aug 16 2022 - 21:35:10 EST
found with checkpatch.pl
Signed-off-by: Paul Lemmermann <thepaulodoom@xxxxxxxxxxxxxxxx>
---
drivers/char/mem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 84ca98ed1..be9d7043b 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -329,13 +329,13 @@ static unsigned long get_unmapped_area_mem(struct file *file,
}
/* permit direct mmap, for read, write or exec */
-static unsigned memory_mmap_capabilities(struct file *file)
+static unsigned int memory_mmap_capabilities(struct file *file)
{
return NOMMU_MAP_DIRECT |
NOMMU_MAP_READ | NOMMU_MAP_WRITE | NOMMU_MAP_EXEC;
}
-static unsigned zero_mmap_capabilities(struct file *file)
+static unsigned int zero_mmap_capabilities(struct file *file)
{
return NOMMU_MAP_COPY;
}
--
2.37.1