Re: linux-next: build warning in Linus'tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joakim Tjernlund
Date: Wednesday, May 26, 2010 - 10:31 am

Linus Torvalds <torvalds@linux-foundation.org> wrote on 2010/05/26 18:46:11:

Ouch! But here -Wundef really helps.


In the kernel it is since it breaks the compile. The breakage
my patch introduced is a sign of that, right?


Not in general, but my case could have been avoided, I sure there are others
too. Why else does some header files bother with __BYTE_ORDER?


hmm, so then I guess the existing use of __BYTE_ORDER in the
kernel should be removed?


CONFIG_BIG_ENDIAN would have helped me with my lib/crc32.c problem
but it does not prevent silent breakage so I figured the glibc model
would be better.
Is it such a big difference, readability wise, between
  #ifdef CONFIG_BIG_ENDIAN
and
  #if __BYTE_ORDER == __BIG_ENDIAN
that you rather risk silent breakage?


Such arch exists but does any of them run linux in both modes?

  Jocke

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: build warning in Linus'tree, Stephen Rothwell, (Tue May 25, 6:05 pm)
Re: linux-next: build warning in Linus'tree, Andrew Morton, (Tue May 25, 6:20 pm)
Re: linux-next: build warning in Linus'tree, Stephen Rothwell, (Tue May 25, 9:09 pm)
Re: linux-next: build warning in Linus'tree, Joakim Tjernlund, (Tue May 25, 11:29 pm)
Re: linux-next: build warning in Linus'tree, Andrew Morton, (Tue May 25, 11:41 pm)
Re: linux-next: build warning in Linus'tree, Stephen Rothwell, (Wed May 26, 12:14 am)
Re: linux-next: build warning in Linus'tree, Joakim Tjernlund, (Wed May 26, 3:21 am)
Re: linux-next: build warning in Linus'tree, Linus Torvalds, (Wed May 26, 8:26 am)
Re: linux-next: build warning in Linus'tree, Linus Torvalds, (Wed May 26, 8:29 am)
Re: linux-next: build warning in Linus'tree, Linus Torvalds, (Wed May 26, 8:33 am)
Re: linux-next: build warning in Linus'tree, Joakim Tjernlund, (Wed May 26, 9:35 am)
Re: linux-next: build warning in Linus'tree, Linus Torvalds, (Wed May 26, 9:46 am)
Re: linux-next: build warning in Linus'tree, Joakim Tjernlund, (Wed May 26, 10:31 am)
Re: linux-next: build warning in Linus'tree, Linus Torvalds, (Wed May 26, 10:45 am)