lkml.org 
[lkml]   [2022]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers: char: mem: changed 'unsigned' to 'unsigned int'
found with checkpatch.pl

Signed-off-by: Paul Lemmermann <thepaulodoom@thepaulodoom.com>
---
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
\
 
 \ /
  Last update: 2022-08-17 03:36    [W:0.086 / U:21.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site