linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] codafs: Fix build using bare-metal toolchain
@ 2018-10-30 20:27 Sam Protsenko
  2018-11-21 16:31 ` Sam Protsenko
  0 siblings, 1 reply; 20+ messages in thread
From: Sam Protsenko @ 2018-10-30 20:27 UTC (permalink / raw)
  To: Andrew Morton, kernel-janitors
  Cc: linux-kernel, linux-scsi, codalist, coda, Andy Shevchenko,
	Praneeth Bajjuri

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.

Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.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 d30209b9cef8..0ca0c83fdb1c 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.19.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread
* [PATCH v2] codafs: Fix build using bare-metal toolchain
@ 2018-10-29 20:03 Sam Protsenko
  2018-10-29 20:05 ` Sam Protsenko
  0 siblings, 1 reply; 20+ messages in thread
From: Sam Protsenko @ 2018-10-29 20:03 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-kernel, linux-scsi, codalist, coda, Andy Shevchenko,
	Praneeth Bajjuri

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.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.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 d30209b9cef8..0ca0c83fdb1c 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.19.1


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

end of thread, other threads:[~2019-01-09 15:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-30 20:27 [PATCH v2] codafs: Fix build using bare-metal toolchain Sam Protsenko
2018-11-21 16:31 ` Sam Protsenko
2018-11-21 16:41   ` Andy Shevchenko
2018-11-21 16:57     ` Christoph Hellwig
2018-11-21 18:10     ` Jan Harkes
2018-11-21 19:36       ` Sam Protsenko
2018-11-21 19:39         ` Sam Protsenko
2018-11-21 22:48           ` Jan Harkes
2019-01-09 15:45             ` Sam Protsenko
2018-11-22 11:32       ` Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2018-10-29 20:03 Sam Protsenko
2018-10-29 20:05 ` Sam Protsenko
2018-10-29 20:08   ` Andy Shevchenko
2018-10-30  6:34   ` Greg KH
2018-10-30 12:01     ` Sam Protsenko
2018-10-30 13:04       ` Jan Harkes
2018-10-30 18:33         ` Sam Protsenko
2018-10-30 18:39           ` Andy Shevchenko
2018-11-23 20:07         ` Andy Shevchenko
2018-11-26 14:35           ` Sam Protsenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).