Re: [Tux3] [PATCH] tux3: fix compile error in linus-git

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <tux3@...>
Cc: Qinghuang Feng <qhfeng.kernel@...>, <s3c24xx@...>
Date: Wednesday, January 7, 2009 - 5:17 am

On Wednesday 07 January 2009 00:36, Qinghuang Feng wrote:

Hi Qinghuang,

Thanks for the fix.

Your patch breaks the user space compile because your macro definitions
appear outside the __KERNEL__ macro. Could you try this version?

Regards,

Daniel

diff -r 68f754221c50 user/kernel/inode.c
--- a/user/kernel/inode.c Tue Jan 06 14:09:37 2009 -0800
+++ b/user/kernel/inode.c Wed Jan 07 01:13:39 2009 -0800
@@ -454,8 +454,13 @@ struct inode *tux_create_inode(struct in
struct inode *tux_create_inode(struct inode *dir, int mode, dev_t rdev)
{
struct tux_iattr iattr = {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ .uid = current_fsuid(),
+ .gid = current_fsgid(),
+#else
.uid = current->fsuid,
.gid = current->fsgid,
+#endif
.mode = mode,
};
struct inode *inode = tux_new_inode(dir, &iattr, rdev);
diff -r 68f754221c50 user/kernel/tux3.h
--- a/user/kernel/tux3.h Tue Jan 06 14:09:37 2009 -0800
+++ b/user/kernel/tux3.h Wed Jan 07 01:13:39 2009 -0800
@@ -9,6 +9,10 @@
#include
#include
#include
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+#include // fsuid
+#endif

typedef loff_t block_t;

_______________________________________________
Tux3 mailing list
Tux3@tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Tux3] dleaf format description, Pranith Kumar, (Mon Sep 29, 7:50 am)
[Tux3] [PATCH] tux3: fix compile error in linus-git, Qinghuang Feng, (Wed Jan 7, 4:36 am)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, Daniel Phillips, (Wed Jan 7, 5:17 am)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, Daniel Phillips, (Wed Jan 7, 5:57 am)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, OGAWA Hirofumi, (Wed Jan 7, 11:25 am)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, Daniel Phillips, (Wed Jan 7, 4:30 pm)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, Daniel Phillips, (Wed Jan 7, 4:49 pm)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, OGAWA Hirofumi, (Wed Jan 7, 6:14 pm)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, OGAWA Hirofumi, (Wed Jan 7, 2:46 pm)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, OGAWA Hirofumi, (Wed Jan 7, 3:02 pm)
Re: [Tux3] [PATCH] tux3: fix compile error in linus-git, Daniel Phillips, (Wed Jan 7, 4:54 pm)