]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - lib/string_helpers.c
fortify: Move remaining fortify helpers into fortify-string.h
[thirdparty/linux.git] / lib / string_helpers.c
index bde13612c25d27b66ef14a12c69fce351198157b..faa9d8e4e2c5329f24a1561b70e9ef4433d1786b 100644 (file)
@@ -883,9 +883,11 @@ char *strreplace(char *s, char old, char new)
 }
 EXPORT_SYMBOL(strreplace);
 
+#ifdef CONFIG_FORTIFY_SOURCE
 void fortify_panic(const char *name)
 {
        pr_emerg("detected buffer overflow in %s\n", name);
        BUG();
 }
 EXPORT_SYMBOL(fortify_panic);
+#endif /* CONFIG_FORTIFY_SOURCE */