]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] Fix build failure in fs/quota.c
authorTony Luck <tony.luck@intel.com>
Fri, 27 Jul 2007 22:35:43 +0000 (15:35 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 27 Jul 2007 22:40:13 +0000 (15:40 -0700)
b716395e2b8e450e294537de0c91476ded2f0395 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>
arch/ia64/Kconfig
arch/x86_64/Kconfig
fs/quota.c

index 36c7b9682aa6f923a6e47ad364512dcf890f64c7..21aa4fc5f8efc64347d4518afec33d9dda000eb6 100644 (file)
@@ -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."
 
index 45f82ae6d38978ae02d049e7bf18b0624a9b98b2..ffa036406289cee0e9734f558d6e57ffa9bb0b7e 100644 (file)
@@ -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
index e6577ac15a6cd1e2df52890e1338b0392c321f44..99b24b52bfc83cbd8f851044dbe2ae27f8e1fc4b 100644 (file)
@@ -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.