linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] init/Kconfig: Add ENDIAN attributes for all architectures using
@ 2014-09-01 15:46 Chen Gang
  2014-09-01 16:08 ` Paul Gortmaker
  0 siblings, 1 reply; 10+ messages in thread
From: Chen Gang @ 2014-09-01 15:46 UTC (permalink / raw)
  To: eparis, paulmck, Geert Uytterhoeven, paul.gortmaker,
	zhenglong.cai, khilman, ak, mcgrof, fabf, dhowells, pefoley2,
	mgorman, biederm, hpa
  Cc: akpm, linux-kernel, Arnd Bergmann, Jean Delvare

Some individual modules want to know the architecture's endian attribute
during config time, or may cause compiling break, one sample is below:
(with allm dconfig under microblaze):

    CC [M]  drivers/isdn/hisax/nj_s.o
  drivers/isdn/hisax/nj_s.c: In function 'setup_netjet_s':
  drivers/isdn/hisax/nj_s.c:265:2: error: #error "not running on big endian machines now"
   #error "not running on big endian machines now"

So add endian attributes for all architectures using (next, will let all
architectures choose their endians during config time).

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 init/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/init/Kconfig b/init/Kconfig
index ac033c3..f301cc8 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -23,6 +23,12 @@ config CONSTRUCTORS
 config IRQ_WORK
 	bool
 
+config CPU_LITTLE_ENDIAN
+	bool
+
+config CPU_BIG_ENDIAN
+	bool
+
 config BUILDTIME_EXTABLE_SORT
 	bool
 
-- 
1.7.11.7

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

end of thread, other threads:[~2014-09-15 22:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 15:46 [PATCH] init/Kconfig: Add ENDIAN attributes for all architectures using Chen Gang
2014-09-01 16:08 ` Paul Gortmaker
2014-09-01 17:01   ` H. Peter Anvin
2014-09-02  1:44     ` Chen Gang
2014-09-02  5:17     ` Paul Gortmaker
2014-09-02  6:13       ` Chen Gang
2014-09-03 11:47         ` Chen Gang
2014-09-14  9:08           ` Chen Gang
2014-09-15 13:55             ` Arnd Bergmann
2014-09-15 22:41               ` Chen Gang

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).