All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ia64: Include <linux/personality.h> header in <asm/fcntl.h>
@ 2009-12-19 16:25 Ben Hutchings
  2009-12-21  0:36 ` [PATCH] ia64: Include <linux/personality.h> header in Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2009-12-19 16:25 UTC (permalink / raw)
  To: linux-ia64

The definition of force_o_largefile() references personality, but this
header does not include <linux/personality.h>.  This happens to work
for sys_open(), but may not for any other users.  In particular, aufs2
now uses this macro and so fails to build on ia64.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 arch/ia64/include/asm/fcntl.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/include/asm/fcntl.h b/arch/ia64/include/asm/fcntl.h
index 1dd275d..3cac8f9 100644
--- a/arch/ia64/include/asm/fcntl.h
+++ b/arch/ia64/include/asm/fcntl.h
@@ -5,6 +5,8 @@
  *	David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co.
  */
 
+#include <linux/personality.h>
+
 #define force_o_largefile()	\
 		(personality(current->personality) != PER_LINUX32)
 
-- 
1.6.5.7



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-21  0:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-19 16:25 [PATCH] ia64: Include <linux/personality.h> header in <asm/fcntl.h> Ben Hutchings
2009-12-21  0:36 ` [PATCH] ia64: Include <linux/personality.h> header in Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.