From: Ricardo Ribalda Delgado
Date: Thu, 29 Jan 2015 15:52:02 +0100
> Function like macros cannot be assigned to function pointers. This patch
> convert the function-like macros into object-macros, that the
> precompiler will replace with the name of the final function.
>
> With this patch this
Hello Arnd
On Thu, Jan 29, 2015 at 5:02 PM, Arnd Bergmann wrote:
> I suspect such code is broken on a lot of platforms:
>
> arch/alpha/include/asm/io.h:#define ioread32be(p) be32_to_cpu(ioread32(p))
> arch/arm/include/asm/io.h:#define ioread32be(p) ({ __u32 __v =
> be32_to_cpu((__force
On Thursday 29 January 2015 15:52:02 Ricardo Ribalda Delgado wrote:
> Function like macros cannot be assigned to function pointers. This patch
> convert the function-like macros into object-macros, that the
> precompiler will replace with the name of the final function.
>
> With this patch this ki
Function like macros cannot be assigned to function pointers. This patch
convert the function-like macros into object-macros, that the
precompiler will replace with the name of the final function.
With this patch this kind of code will work:
if (priv->mode_big_endian)
priv.read = ioread32
4 matches
Mail list logo