Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935003AbbEOVBW (ORCPT ); Fri, 15 May 2015 17:01:22 -0400 Received: from mailrelay101.isp.belgacom.be ([195.238.20.128]:27552 "EHLO mailrelay101.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934817AbbEOVBU (ORCPT ); Fri, 15 May 2015 17:01:20 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=aVuRYB9jFzFsbHnyIO6WTXMsFsysg296qeRS+2aVNsk= c=1 sm=2 a=edVkD3HYHhv0tj3lGrsA:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DgDwDxXVZV/yMoQ1dcgxCBMrJbBwEBAQEFAYEEmE2BNk0BAQEBAQGBC0EDhAwvI0tPN4gwAddyhhaKKR0ChBUFnVSWfyNhZgFCHIFUPDGCRgEBAQ From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , "Theodore Ts'o" , Andreas Dilger , linux-ext4@vger.kernel.org Subject: [PATCH 1/1 linux-next] ext4: fix incorrect type argument Date: Fri, 15 May 2015 23:01:13 +0200 Message-Id: <1431723673-25450-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.4.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1096 Lines: 37 Fix sparse warning introduced in commit 9bd8212f981e ("ext4 crypto: add encryption policy and password salt support") fs/ext4/ioctl.c:678:35: warning: incorrect type in argument 1 (different address spaces) fs/ext4/ioctl.c:678:35: expected void [noderef] *to fs/ext4/ioctl.c:678:35: got void * Signed-off-by: Fabian Frederick --- fs/ext4/ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index 2cb9e17..3c5e530 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@ -675,8 +675,8 @@ encryption_policy_out: if (err) return err; } - if (copy_to_user((void *) arg, sbi->s_es->s_encrypt_pw_salt, - 16)) + if (copy_to_user((void __user *) arg, + sbi->s_es->s_encrypt_pw_salt, 16)) return -EFAULT; return 0; } -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/