Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ramoops: make it possible to change mem_type param.

If we set ramoops.mem_type=1 in command line, the current
code can not change mem_type to 1, because it is assigned
to 0 in function ramoops_register_dummy.

This patch make it possible to change mem_type parameter
in command line.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Wang Long and committed by
Tony Luck
07855056 e036bd33

+1 -1
+1 -1
fs/pstore/ram.c
··· 622 622 623 623 dummy_data->mem_size = mem_size; 624 624 dummy_data->mem_address = mem_address; 625 - dummy_data->mem_type = 0; 625 + dummy_data->mem_type = mem_type; 626 626 dummy_data->record_size = record_size; 627 627 dummy_data->console_size = ramoops_console_size; 628 628 dummy_data->ftrace_size = ramoops_ftrace_size;