[ Upstream commit b2a57e334086602be56b74958d9f29b955cd157f ]

The kernel is self-contained project and can be built with bare-metal
toolchain.  But bare-metal toolchain doesn't define __linux__.  Because
of this u_quad_t type is not defined when using bare-metal toolchain and
codafs build fails.  This patch fixes it by defining u_quad_t type
unconditionally.

Link: 
http://lkml.kernel.org/r/3cbb40b0a57b6f9923a9d67b53473c0b691a3eaa.1558117389.git.jahar...@cs.cmu.edu
Signed-off-by: Sam Protsenko <semen.protse...@linaro.org>
Signed-off-by: Jan Harkes <jahar...@cs.cmu.edu>
Cc: Arnd Bergmann <a...@arndb.de>
Cc: Colin Ian King <colin.k...@canonical.com>
Cc: Dan Carpenter <dan.carpen...@oracle.com>
Cc: David Howells <dhowe...@redhat.com>
Cc: Fabian Frederick <f...@skynet.be>
Cc: Mikko Rapeli <mikko.rap...@iki.fi>
Cc: Yann Droneaud <ydrone...@opteya.com>
Cc: Zhouyang Jia <jiazhouyan...@gmail.com>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
Signed-off-by: Sasha Levin <sas...@kernel.org>
---
 include/linux/coda.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/coda.h b/include/linux/coda.h
index d30209b9cef81..0ca0c83fdb1c4 100644
--- a/include/linux/coda.h
+++ b/include/linux/coda.h
@@ -58,8 +58,7 @@ Mellon the rights to redistribute these changes without 
encumbrance.
 #ifndef _CODA_HEADER_
 #define _CODA_HEADER_
 
-#if defined(__linux__)
 typedef unsigned long long u_quad_t;
-#endif
+
 #include <uapi/linux/coda.h>
 #endif 
-- 
2.20.1



Reply via email to