[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1476774814-6840-6-git-send-email-nobuhiro.iwamatsu.kw@hitachi.com>
Date: Tue, 18 Oct 2016 16:13:31 +0900
From: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.kw@...achi.com>
To: Anton Vorontsov <anton@...msg.org>,
Colin Cross <ccross@...roid.com>,
Kees Cook <keescook@...omium.org>,
Tony Luck <tony.luck@...el.com>
Cc: linux-kernel@...r.kernel.org,
cti.systems-productivity-manager.ts@...achi.com,
Nobuhiro Iwamatsu <nobuhiro.iwamatsu.kw@...achi.com>,
Hiraku Toyooka <hiraku.toyooka.gu@...achi.com>,
Mark Salyzyn <salyzyn@...roid.com>,
Seiji Aguchi <seiji.aguchi.tr@...achi.com>,
Shuah Khan <shuahkh@....samsung.com>
Subject: [PATCH v3 5/8] ramoops: Rename ramoops_init_prz() to ramoops_init_dprzs()
This commit renames ramoops_init_prz() to ramoops_init_dprzs() so that
it stands for 'dump przs'.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.kw@...achi.com>
Signed-off-by: Hiraku Toyooka <hiraku.toyooka.gu@...achi.com>
Cc: Anton Vorontsov <anton@...msg.org>
Cc: Colin Cross <ccross@...roid.com>
Cc: Kees Cook <keescook@...omium.org>
Cc: Mark Salyzyn <salyzyn@...roid.com>
Cc: Seiji Aguchi <seiji.aguchi.tr@...achi.com>
Cc: Shuah Khan <shuahkh@....samsung.com>
Cc: Tony Luck <tony.luck@...el.com>
V3:
Rebase.
Split patch.
---
fs/pstore/ram.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index e27c2ec..e9ec522 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -443,7 +443,8 @@ static int __ramoops_init_prz(struct device *dev, struct ramoops_context *cxt,
return 0;
}
-static int ramoops_init_przs(struct device *dev, struct ramoops_context *cxt,
+/* init function for dump przs */
+static int ramoops_init_dprzs(struct device *dev, struct ramoops_context *cxt,
phys_addr_t *paddr, size_t dump_mem_sz)
{
int err = -ENOMEM;
@@ -472,17 +473,18 @@ static int ramoops_init_przs(struct device *dev, struct ramoops_context *cxt,
err = __ramoops_init_prz(dev, cxt, &cxt->dprzs[i], paddr,
cxt->record_size, 0, false);
if (err)
- goto fail_prz;
+ goto fail_dprz;
}
return 0;
-fail_prz:
+fail_dprz:
ramoops_free_przs(cxt->dprzs, i);
fail_mem:
cxt->max_dump_cnt = 0;
return err;
}
+/* int function for console, ftrace and pmsg przs */
static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt,
struct persistent_ram_zone **prz,
phys_addr_t *paddr, size_t sz, u32 sig)
@@ -610,7 +612,7 @@ static int ramoops_probe(struct platform_device *pdev)
dump_mem_sz = cxt->size - cxt->console_size - cxt->ftrace_size
- cxt->pmsg_size;
/* init dump przs */
- err = ramoops_init_przs(dev, cxt, &paddr, dump_mem_sz);
+ err = ramoops_init_dprzs(dev, cxt, &paddr, dump_mem_sz);
if (err)
goto fail_out;
--
2.9.3
Powered by blists - more mailing lists