[PATCH v2 21/50] hash: Drop some #ifdefs in hash.c

Tom Rini trini at konsulko.com
Fri May 14 22:43:00 CEST 2021

On Fri, May 14, 2021 at 10:37:54AM -0500, Alex G. wrote:
> On 5/6/21 9:24 AM, Simon Glass wrote:
> > We can use the __maybe_unused attribute to avoid some of the #ifdefs in
> > this file. Update the functions accordingly.
> What is __maybe_unused? Does u-boot support booting quantum computers?

It's from <linux/compiler.h> and tells the compiler to not warn about
unused functions in that specific case.  Since we'll garbage collect
them later, it means we don't need to #ifdef around functions and it can
end up reading cleaner.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210514/e7fbb9cd/attachment.sig>

More information about the U-Boot mailing list