]> git.baikalelectronics.ru Git - uboot.git/commit
dm: Fix util.h's broken include guard
authorPierre-Clément Tosi <ptosi@google.com>
Thu, 30 Sep 2021 15:52:45 +0000 (17:52 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Oct 2021 18:50:48 +0000 (12:50 -0600)
commitaf6146f1187c008466c9be3837cfe0fd47167d62
tree175ac386701e5714457e325c53aee4768d4a0193
parent1356840347ce15fc2cb38b8084137992231360b8
dm: Fix util.h's broken include guard

Fix up the header's include guard to contain the definition of
dm_priv_to_rw(), which was erroneously added outside of it, by moving
its #endif to the end of the file (i.e. where it belongs). This removes
the risk of compilation errors resulting from the redefinition of that
function where the header might have been (indirectly) included more
than once.

Fixes: 6101e514e5e ("dm: core: Use separate priv/plat data region")
Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
Cc: Simon Glass <sjg@chromium.org>
include/dm/util.h