include-warn-for-inconsistent-endian-config-definition.patch removed from -mm tree
The patch titled
Subject: include: warn for inconsistent endian config definition
has been removed from the -mm tree. Its filename was
include-warn-for-inconsistent-endian-config-definition.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Babu Moger <[email protected]>
Subject: include: warn for inconsistent endian config definition
We have seen some generic code use config parameter CONFIG_CPU_BIG_ENDIAN to decide the endianness.
Here are the few examples.include/asm-generic/qrwlock.hdrivers/of/base.cdrivers/of/fdt.cdrivers/tty/serial/earlycon.cdrivers/tty/serial/serial_core.c
Display warning if CPU_BIG_ENDIAN is not defined on big endian architecture and also warn if it defined on little endian architectures.
Here is our original discussion
https://lkml.org/lkml/2017/5/24/620
---
include/linux/byteorder/big_endian.h | 4 ++++ include/linux/byteorder/little_endian.h | 4 ++++ 2 files changed, 8 insertions(+)
include/linux/byteorder/big_endian.h renamed from include/linux/byteorder/big_endian.h~include-warn-for-inconsistent-endian-config-definition +4 -0
@@ -3,5 +3,9 @@#include <uapi/linux/byteorder/big_endian.h> +#ifndef CONFIG_CPU_BIG_ENDIAN +#warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN +#endif +#include <linux/byteorder/generic.h> #endif /* _LINUX_BYTEORDER_BIG_ENDIAN_H */
include/linux/byteorder/little_endian.h renamed from include/linux/byteorder/little_endian.h~include-warn-for-inconsistent-endian-config-definition +4 -0
@@ -3,5 +3,9 @@#include <uapi/linux/byteorder/little_endian.h> +#ifdef CONFIG_CPU_BIG_ENDIAN +#warning inconsistent configuration, CONFIG_CPU_BIG_ENDIAN is set +#endif +#include <linux/byteorder/generic.h> #endif /* _LINUX_BYTEORDER_LITTLE_ENDIAN_H */
_
Patches currently in -mm which might be from [email protected] are