]> Gentwo Git Trees - linux/.git/commitdiff
pstore/ram: Update module parameters from platform data
authorTzung-Bi Shih <tzungbi@kernel.org>
Thu, 23 Oct 2025 14:37:55 +0000 (22:37 +0800)
committerKees Cook <kees@kernel.org>
Thu, 23 Oct 2025 15:56:04 +0000 (08:56 -0700)
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>
fs/pstore/ram.c

index bc68b4de5287db1de49b1eaa925b2d2d4172ea3f..39936d6da0dd0e02ad768602c467fbb8968c5014 100644 (file)
@@ -864,6 +864,8 @@ static int ramoops_probe(struct platform_device *pdev)
        ramoops_console_size = pdata->console_size;
        ramoops_pmsg_size = pdata->pmsg_size;
        ramoops_ftrace_size = pdata->ftrace_size;
+       mem_type = pdata->mem_type;
+       ramoops_ecc = pdata->ecc_info.ecc_size;
 
        pr_info("using 0x%lx@0x%llx, ecc: %d\n",
                cxt->size, (unsigned long long)cxt->phys_addr,