The patch titled ramoops: move dump_oops into platform data has been added to the -mm tree. Its filename is ramoops-move-dump_oops-into-platform-data.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: ramoops: move dump_oops into platform data From: Sergiu Iordache <sergiu@xxxxxxxxxxxx> The platform driver currently allows setting the mem_size and mem_address. Since dump_oops is also a module parameter it would be more consistent if it could be set through platform data as well. Signed-off-by: Sergiu Iordache <sergiu@xxxxxxxxxxxx> Acked-by: Marco Stornelli <marco.stornelli@xxxxxxxxx> Cc: "Ahmed S. Darwish" <darwish.07@xxxxxxxxx> Cc: Artem Bityutskiy <Artem.Bityutskiy@xxxxxxxxx> Cc: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/ramoops.c | 5 ++++- include/linux/ramoops.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff -puN drivers/char/ramoops.c~ramoops-move-dump_oops-into-platform-data drivers/char/ramoops.c --- a/drivers/char/ramoops.c~ramoops-move-dump_oops-into-platform-data +++ a/drivers/char/ramoops.c @@ -55,6 +55,7 @@ static struct ramoops_context { void *virt_addr; phys_addr_t phys_addr; unsigned long size; + int dump_oops; int count; int max_count; } oops_cxt; @@ -79,7 +80,7 @@ static void ramoops_do_dump(struct kmsg_ return; /* Only dump oopses if dump_oops is set */ - if (reason == KMSG_DUMP_OOPS && !dump_oops) + if (reason == KMSG_DUMP_OOPS && !cxt->dump_oops) return; buf = cxt->virt_addr + (cxt->count * RECORD_SIZE); @@ -127,6 +128,7 @@ static int __init ramoops_probe(struct p cxt->count = 0; cxt->size = pdata->mem_size; cxt->phys_addr = pdata->mem_address; + cxt->dump_oops = pdata->dump_oops; if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) { pr_err("request mem region failed\n"); @@ -193,6 +195,7 @@ static int __init ramoops_init(void) return -ENOMEM; dummy_data->mem_size = mem_size; dummy_data->mem_address = mem_address; + dummy_data->dump_oops = dump_oops; dummy = platform_create_bundle(&ramoops_driver, ramoops_probe, NULL, 0, dummy_data, sizeof(struct ramoops_platform_data)); diff -puN include/linux/ramoops.h~ramoops-move-dump_oops-into-platform-data include/linux/ramoops.h --- a/include/linux/ramoops.h~ramoops-move-dump_oops-into-platform-data +++ a/include/linux/ramoops.h @@ -10,6 +10,7 @@ struct ramoops_platform_data { unsigned long mem_size; unsigned long mem_address; + int dump_oops; }; #endif _ Patches currently in -mm which might be from sergiu@xxxxxxxxxxxx are ramoops-move-dump_oops-into-platform-data.patch ramoops-make-record_size-a-module-parameter.patch ramoops-add-debugfs-entry.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html