Merge tag 'perf-core-for-mingo-5.4-20190920-2' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-block.git] / kernel / stacktrace.c
index f5440abb753291df445a1ce17559fd476d810a15..6d1f68b7e528a3f48c97f0a1e5c1a572d8ed8e11 100644 (file)
@@ -20,7 +20,7 @@
  * @nr_entries:        Number of entries in the storage array
  * @spaces:    Number of leading spaces to print
  */
-void stack_trace_print(unsigned long *entries, unsigned int nr_entries,
+void stack_trace_print(const unsigned long *entries, unsigned int nr_entries,
                       int spaces)
 {
        unsigned int i;
@@ -43,7 +43,7 @@ EXPORT_SYMBOL_GPL(stack_trace_print);
  *
  * Return: Number of bytes printed.
  */
-int stack_trace_snprint(char *buf, size_t size, unsigned long *entries,
+int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries,
                        unsigned int nr_entries, int spaces)
 {
        unsigned int generated, i, total = 0;