* [PATCH] user_ns: compile bug fix in quota.h
@ 2012-09-06 6:55 Zhao Hongjiang
[not found] ` <504848EC.3010904-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Zhao Hongjiang @ 2012-09-06 6:55 UTC (permalink / raw)
To: ebiederm-aS9lmoZGLiVWk0Htik3J/w
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
From: Zhao Hongjiang <zhaohongjiang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Failed to build userns-always-map-user-v53 from Eric's latest
user_ns branch with GCC 4.4.4 compiler due to violation of
C89 standard.
Signed-off-by: Zhao Hongjiang <zhaohongjiang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
include/linux/quota.h | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 781ffc4..90f12d7 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -280,9 +280,10 @@ static inline struct kqid make_kqid_invalid(enum quota_type type)
static inline struct kqid make_kqid_uid(kuid_t uid)
{
struct kqid kqid = {
- .type = USRQUOTA,
- .uid = uid,
+ .type = USRQUOTA
};
+ kqid.uid = uid;
+
return kqid;
}
@@ -293,9 +294,10 @@ static inline struct kqid make_kqid_uid(kuid_t uid)
static inline struct kqid make_kqid_gid(kgid_t gid)
{
struct kqid kqid = {
- .type = GRPQUOTA,
- .gid = gid,
+ .type = GRPQUOTA
};
+ kqid.gid = gid;
+
return kqid;
}
@@ -306,9 +308,10 @@ static inline struct kqid make_kqid_gid(kgid_t gid)
static inline struct kqid make_kqid_projid(kprojid_t projid)
{
struct kqid kqid = {
- .type = PRJQUOTA,
- .projid = projid,
+ .type = PRJQUOTA
};
+ kqid.projid = projid;
+
return kqid;
}
-- 1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-07 2:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 6:55 [PATCH] user_ns: compile bug fix in quota.h Zhao Hongjiang
[not found] ` <504848EC.3010904-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-09-07 2:00 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox