[mmotm] ecryptfs-do-not-try-to-open-device-files-on-mknod.patch build error

From: Valdis . Kletnieks
Date: Sun Jul 13 2008 - 20:32:38 EST


Patch ecryptfs-do-not-try-to-open-device-files-on-mknod.patch in mmotm 07/11
causes a build error:

CC [M] fs/ecryptfs/file.o
fs/ecryptfs/file.c: In function â??ecryptfs_openâ??:
fs/ecryptfs/file.c:207: error: implicit declaration of function â??ecryptfs_initersistent_fileâ??
make[2]: *** [fs/ecryptfs/file.o] Error 1
make[1]: *** [fs/ecryptfs] Error 2
make: *** [fs] Error 2

Here's what I did to work around it:

--- linux-2.6.26-rc9-mmotd0711/fs/ecryptfs/ecryptfs_kernel.h.dist 2008-07-13 03:57:30.000000000 -0400
+++ linux-2.6.26-rc9-mmotd0711/fs/ecryptfs/ecryptfs_kernel.h 2008-07-13 04:21:03.000000000 -0400
@@ -712,5 +712,6 @@ void ecryptfs_destroy_kthread(void);
int ecryptfs_privileged_open(struct file **lower_file,
struct dentry *lower_dentry,
struct vfsmount *lower_mnt);
+int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry);

#endif /* #ifndef ECRYPTFS_KERNEL_H */


Attachment: pgp00000.pgp
Description: PGP signature