Skip to content

Commit

Permalink
[IA64] Fix build failure in fs/quota.c
Browse files Browse the repository at this point in the history
b716395 added code to handle
a compatability issue with 32bit quota tools, but the new compat
routines are only needed when CONFIG_COMPAT=y (and with this set
to 'n' there are compilation problems since some new typedefs are
not visible).

Reported by Doug Chapman.  Fix tuned by a cast of thousands (Andi,
Andreas, Arthur, HPA, Willy)

Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Tony Luck committed Jul 27, 2007
1 parent 7091138 commit 7a6c813
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ config COMPAT
depends on IA32_SUPPORT
default y

config COMPAT_FOR_U64_ALIGNMENT
def_bool COMPAT

config IA64_MCA_RECOVERY
tristate "MCA recovery from errors other than TLB."

Expand Down
3 changes: 3 additions & 0 deletions arch/x86_64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ config COMPAT
depends on IA32_EMULATION
default y

config COMPAT_FOR_U64_ALIGNMENT
def_bool COMPAT

config SYSVIPC_COMPAT
bool
depends on COMPAT && SYSVIPC
Expand Down
2 changes: 1 addition & 1 deletion fs/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special, qid_t
return ret;
}

#if defined(CONFIG_X86_64) || defined(CONFIG_IA64)
#if defined(CONFIG_COMPAT_FOR_U64_ALIGNMENT)
/*
* This code works only for 32 bit quota tools over 64 bit OS (x86_64, ia64)
* and is necessary due to alignment problems.
Expand Down

0 comments on commit 7a6c813

Please sign in to comment.