]> git.baikalelectronics.ru Git - uboot.git/commit
hash: Drop some #ifdefs in hash.c
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:19 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commitb90fc15020c5ec61274801fadeea4cd0537a898c
tree6ab1ee6379b94a8ba5fa4c7d9d767b8c21f6cd1a
parent9b9f4a20f9008603fd73f3260754b8b01d6dcafe
hash: Drop some #ifdefs in hash.c

We can use the __maybe_unused attribute to avoid some of the #ifdefs in
this file. Update the functions accordingly.

Note: The actual hashing interface is still a mess, with four separate
combinations and lots of #ifdefs. This should really use a driver
approach, e.g. as is done with partition drivers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
common/hash.c