Skip to content

Commit b692553

Browse files
Tzung-Bi Shihkees
authored andcommitted
pstore/ram: Update module parameters from platform data
Update module parameters `mem_type` and `ramoops_ecc` from platform data so that they are available through /sys/module/ramoops/parameters/. `ramoops_dump_oops` isn't included as it has been deprecated. Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://patch.msgid.link/20251023143755.26204-1-tzungbi@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 211ddde commit b692553

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/pstore/ram.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,8 @@ static int ramoops_probe(struct platform_device *pdev)
864864
ramoops_console_size = pdata->console_size;
865865
ramoops_pmsg_size = pdata->pmsg_size;
866866
ramoops_ftrace_size = pdata->ftrace_size;
867+
mem_type = pdata->mem_type;
868+
ramoops_ecc = pdata->ecc_info.ecc_size;
867869

868870
pr_info("using 0x%lx@0x%llx, ecc: %d\n",
869871
cxt->size, (unsigned long long)cxt->phys_addr,

0 commit comments

Comments
 (0)