projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
802b352
)
eCryptfs: Fix min function comparison warning
author
Tyler Hicks
<tyhicks@linux.vnet.ibm.com>
Mon, 27 Apr 2009 18:31:12 +0000
(13:31 -0500)
committer
Tyler Hicks
<tyhicks@linux.vnet.ibm.com>
Mon, 27 Apr 2009 18:31:12 +0000
(13:31 -0500)
This warning shows up on 64 bit builds:
fs/ecryptfs/inode.c:693: warning: comparison of distinct pointer types
lacks a cast
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ecryptfs/inode.c
b/fs/ecryptfs/inode.c
index 1940edd08307ea751f4d028eabc01cb1d6f247d5..2f0945d632970511ba189a0ef8595e918c10b693 100644
(file)
--- a/
fs/ecryptfs/inode.c
+++ b/
fs/ecryptfs/inode.c
@@
-690,7
+690,7
@@
ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz)
}
/* Check for bufsiz <= 0 done in sys_readlinkat() */
rc = copy_to_user(buf, plaintext_name,
- min((
unsigned
) bufsiz, plaintext_name_size));
+ min((
size_t
) bufsiz, plaintext_name_size));
if (rc)
rc = -EFAULT;
else