]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd/mem.c: fix wrong use of ifdef, drop pointless SUPPORT_64BIT_DATA macro
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 3 Jan 2024 10:47:08 +0000 (11:47 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 17 Jan 2024 13:00:07 +0000 (08:00 -0500)
commit4762c51562fb7ff42d502b3ee88d0c9da6aade49
tree843844ac6115f330c41a0ffeeab725fc9db6cc05
parent13f4c85828538c77bfaac355dea896bd78e9a4c0
cmd/mem.c: fix wrong use of ifdef, drop pointless SUPPORT_64BIT_DATA macro

The macro MEM_SUPPORT_64BIT_DATA is always defined, as either 1 or 0,
so using "#ifdef MEM_SUPPORT_64BIT_DATA" doesn't do what one
expects.

This means that currently all 32 bit targets get compiled with the .q
suffix mentioned in the help text, while it doesn't actually work.

Use the proper "#if" instead.

There's really no point defining another similarly-named macro with
exactly the same value, so just use MEM_SUPPORT_64BIT_DATA throughout.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
cmd/mem.c