summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds2009-04-30 06:25:53 +0200
committerLinus Torvalds2009-04-30 06:25:53 +0200
commit9ea66ab5805daafc60ccb16dd617f610832c76bb (patch)
tree0a1d02c078ffe88ff6c0efb07b974f0a0fa2f82e
parentMerge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mch... (diff)
parenteCryptfs: Fix min function comparison warning (diff)
downloadkernel-qcow2-linux-9ea66ab5805daafc60ccb16dd617f610832c76bb.tar.gz
kernel-qcow2-linux-9ea66ab5805daafc60ccb16dd617f610832c76bb.tar.xz
kernel-qcow2-linux-9ea66ab5805daafc60ccb16dd617f610832c76bb.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6: eCryptfs: Fix min function comparison warning ecryptfs: fix printk format warning
-rw-r--r--fs/ecryptfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 93bc0f8174a7..2f0945d63297 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -667,7 +667,7 @@ ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz)
lower_buf = kmalloc(lower_bufsiz, GFP_KERNEL);
if (lower_buf == NULL) {
printk(KERN_ERR "%s: Out of memory whilst attempting to "
- "kmalloc [%d] bytes\n", __func__, lower_bufsiz);
+ "kmalloc [%zd] bytes\n", __func__, lower_bufsiz);
rc = -ENOMEM;
goto out;
}
@@ -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