Re: [PATCH] s390: pass endianness info to sparse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 2, 2017 at 7:04 AM, Heiko Carstens
<heiko.carstens@xxxxxxxxxx> wrote:
> On Tue, Oct 31, 2017 at 06:22:08PM +0100, Luc Van Oostenryck wrote:
>
>> -CHECKFLAGS   += -D__s390__ -D__s390x__
>> +CHECKFLAGS   += -D__s390__ -D__s390x__ -mbig-endian
>
> Applied, thanks!
>
> However something similar is required for _all_ architectures, e.g. setting
> -mlittle-endian for the same reason on big endian build machines.
>
> Therefore I would have expected to add the -m flag in the top-level
> Makefile depending on CONFIG_CPU_BIG_ENDIAN or CONFIG_CPU_KITTLE_ENDIAN.
> However it seems that not all architectures set any of these config options
> at all.
>
> If I remember correctly Arnd Bergmann was looking into this a couple of
> months ago(?)...

I'm not aware of Arnd's work for this but I checked all architectures and sent
patches for those which needed it (for endianness and machine size).
Admittingly, I didn't even try to make the changes at top-level but, as you have
noticed, architectures with a fixed endianness usually doesn't set the
CONFIG option.

I'll let things settle a bit and then I'll look what can be done to
simplify those things.

Regards,
-- Luc
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux