Arvind Sankar 67b2692daa lib/string: Make memzero_explicit() inline instead of external
With the use of the barrier implied by barrier_data(), there is no need
for memzero_explicit() to be extern. Making it inline saves the overhead
of a function call, and allows the code to be reused in arch/*/purgatory
without having to duplicate the implementation.

Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H . Peter Anvin <hpa@zytor.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephan Mueller <smueller@chronox.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-crypto@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Fixes: 906a4bb97f5d ("crypto: sha256 - Use get/put_unaligned_be32 to get input, memzero_explicit")
Link: https://lkml.kernel.org/r/20191007220000.GA408752@rani.riverdale.lan
Change-Id: Ic2098c6a670c16c60444e107d35ab49a0bc27a90
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2025-02-09 23:14:46 -03:00
..
2022-06-10 15:41:44 +07:00
2011-10-29 21:20:22 +02:00
2017-06-09 11:52:07 +02:00
2006-06-25 10:01:20 -07:00
2006-06-25 10:01:20 -07:00
2019-04-20 09:15:07 +02:00
2014-04-30 19:49:37 +01:00
2022-06-10 15:41:42 +07:00
2016-12-06 10:17:03 +02:00
2015-09-08 14:35:59 -07:00
2024-11-20 02:27:39 -03:00