summaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.c')
-rw-r--r--lib/string.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c
index 10063300b830..d984ec4fd3b7 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -604,6 +604,11 @@ EXPORT_SYMBOL(memset);
604 * @s: Pointer to the start of the area. 604 * @s: Pointer to the start of the area.
605 * @count: The size of the area. 605 * @count: The size of the area.
606 * 606 *
607 * Note: usually using memset() is just fine (!), but in cases
608 * where clearing out _local_ data at the end of a scope is
609 * necessary, memzero_explicit() should be used instead in
610 * order to prevent the compiler from optimising away zeroing.
611 *
607 * memzero_explicit() doesn't need an arch-specific version as 612 * memzero_explicit() doesn't need an arch-specific version as
608 * it just invokes the one of memset() implicitly. 613 * it just invokes the one of memset() implicitly.
609 */ 614 */