History

stacktrace: Constify 'entries' arguments

Make it clear to humans and to the compiler that the stack trace ('entries') arguments are not modified.

Bart Van Assche committed 7 years ago

Commit a2970421 parent 364f6af2 files · +4 −4Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/stacktrace.h+2−2
@@ -9,9 +9,9 @@ struct task_struct; · 8 unmodified lines
9struct pt_regs;9struct pt_regs;
10 10
11#ifdef CONFIG_STACKTRACE11#ifdef CONFIG_STACKTRACE
12void stack_trace_print(unsigned long *trace, unsigned int nr_entries,12void stack_trace_print(const unsigned long *trace, unsigned int nr_entries,
13 int spaces);13 int spaces);
14int stack_trace_snprint(char *buf, size_t size, unsigned long *entries,14int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries,
15 unsigned int nr_entries, int spaces);15 unsigned int nr_entries, int spaces);
16unsigned int stack_trace_save(unsigned long *store, unsigned int size,16unsigned int stack_trace_save(unsigned long *store, unsigned int size,
17 unsigned int skipnr);17 unsigned int skipnr);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t