]> git.baikalelectronics.ru Git - uboot.git/commit
include/linux/byteorder: Fix compilation of __constant_cpu_to_be32()
authorPali Rohár <pali@kernel.org>
Fri, 26 Nov 2021 13:57:05 +0000 (14:57 +0100)
committerStefan Roese <sr@denx.de>
Sun, 19 Dec 2021 08:50:47 +0000 (09:50 +0100)
commitf5df5df7bdcbfd4993fbb92a9e9bf8a2ff12b34b
treef4ed7dc3cd2de7e4d7fbc8f71f2fbd5473d8a1b2
parent90734e3a8580199b1b074a6c9cf2eeee381bc334
include/linux/byteorder: Fix compilation of __constant_cpu_to_be32()

The macro __constant_cpu_to_be32() uses ___constant_swab32(), which for
some reason is not defined and causes the following error during
compilation:

  include/linux/byteorder/little_endian.h:28:52: warning:
    implicit declaration of function ‘___constant_swab32’;
    did you mean ‘__builtin_bswap32’? [-Wimplicit-function-declaration]
   #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x)))

Declare all ___constant_swabXX() macros.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
include/linux/byteorder/swab.h