diff options
Diffstat (limited to 'fs/pstore/ram.c')
-rw-r--r-- | fs/pstore/ram.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 1376e5a8f0d6..a6119f9469e2 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c | |||
@@ -195,7 +195,8 @@ static size_t ramoops_write_kmsg_hdr(struct persistent_ram_zone *prz) | |||
195 | static int notrace ramoops_pstore_write_buf(enum pstore_type_id type, | 195 | static int notrace ramoops_pstore_write_buf(enum pstore_type_id type, |
196 | enum kmsg_dump_reason reason, | 196 | enum kmsg_dump_reason reason, |
197 | u64 *id, unsigned int part, | 197 | u64 *id, unsigned int part, |
198 | const char *buf, size_t size, | 198 | const char *buf, |
199 | size_t hsize, size_t size, | ||
199 | struct pstore_info *psi) | 200 | struct pstore_info *psi) |
200 | { | 201 | { |
201 | struct ramoops_context *cxt = psi->data; | 202 | struct ramoops_context *cxt = psi->data; |
@@ -399,8 +400,6 @@ static int ramoops_probe(struct platform_device *pdev) | |||
399 | goto fail_out; | 400 | goto fail_out; |
400 | } | 401 | } |
401 | 402 | ||
402 | if (!is_power_of_2(pdata->mem_size)) | ||
403 | pdata->mem_size = rounddown_pow_of_two(pdata->mem_size); | ||
404 | if (!is_power_of_2(pdata->record_size)) | 403 | if (!is_power_of_2(pdata->record_size)) |
405 | pdata->record_size = rounddown_pow_of_two(pdata->record_size); | 404 | pdata->record_size = rounddown_pow_of_two(pdata->record_size); |
406 | if (!is_power_of_2(pdata->console_size)) | 405 | if (!is_power_of_2(pdata->console_size)) |