[Btrfs-devel] [PATCH 1/1] Fix incompatible pointer
Jan Engelhardt
jengelh at computergmbh.de
Fri Sep 14 00:27:11 PDT 2007
/usr/src/packages/BUILD/btrfs-0.8/obj-desktop/file.c:
In function 'btrfs_file_write':
/usr/src/packages/BUILD/btrfs-0.8/obj-desktop/file.c:586:
warning: passing argument 1 of 'remove_suid' from incompatible pointer type
LD [M] /usr/src/packages/BUILD/btrfs-0.8/obj-desktop/btrfs.o
---
file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: btrfs-0.8/file.c
===================================================================
--- btrfs-0.8.orig/file.c
+++ btrfs-0.8/file.c
@@ -583,7 +583,7 @@ static ssize_t btrfs_file_write(struct f
goto out;
if (count == 0)
goto out;
- err = remove_suid(file->f_path.dentry);
+ err = remove_suid(&file->f_path);
if (err)
goto out;
file_update_time(file);
More information about the Btrfs-devel
mailing list