public inbox for linux-ia64@vger.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

* Re: [PATCH] ia64: Include <linux/personality.h> header in
  2009-12-19 16:25 [PATCH] ia64: Include <linux/personality.h> header in <asm/fcntl.h> Ben Hutchings
@ 2009-12-21  0:36 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2009-12-21  0:36 UTC (permalink / raw)
  To: linux-ia64

On Sat, Dec 19, 2009 at 04:25:43PM +0000, Ben Hutchings wrote:
> 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.

So include the header there directly.  Or rather don't use it at all,
filesystems have no business at all messing with this.


^ permalink raw reply	[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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox