/* Save stack trace to the given array of MAX_TRACE size.  */
static int __save_stack_trace(unsigned long *trace)
/* Save stack trace to the given array of MAX_TRACE size.  */
static int __save_stack_trace(unsigned long *trace)
{
	struct stack_trace stack_trace;
	stack_trace.max_entries = MAX_TRACE;
	stack_trace.nr_entries = 0;
	stack_trace.entries = trace;
	stack_trace.skip = 2;
	save_stack_trace(&stack_trace);
	return stack_trace.nr_entries;
}