nospec: Allow index argument to have const-qualified type
[pandora-kernel.git] / lib / string.c
index 40136f6..dcbe695 100644 (file)
@@ -595,7 +595,7 @@ EXPORT_SYMBOL(memset);
 void memzero_explicit(void *s, size_t count)
 {
        memset(s, 0, count);
-       OPTIMIZER_HIDE_VAR(s);
+       barrier();
 }
 EXPORT_SYMBOL(memzero_explicit);