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
99 struct pt_regs;
1010
1111 #ifdef CONFIG_STACKTRACE
12−void stack_trace_print(unsigned long *trace, unsigned int nr_entries,
12+void stack_trace_print(const unsigned long *trace, unsigned int nr_entries,
1313 int spaces);
14−int stack_trace_snprint(char *buf, size_t size, unsigned long *entries,
14+int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries,
1515 unsigned int nr_entries, int spaces);
1616 unsigned int stack_trace_save(unsigned long *store, unsigned int size,
1717 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