summaryrefslogtreecommitdiff
path: root/include/linux/pstore_ram.h
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-07-10 04:03:19 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-17 20:46:52 +0400
commit5ca5d4e61d0cac15f36160ab48425c6e43bf2e2f (patch)
tree7e35f66cc7863798f32e96fb2062b6006352dc04 /include/linux/pstore_ram.h
parent4a53ffae6afc94bab803087245b3b45e712c21c8 (diff)
downloadlinux-5ca5d4e61d0cac15f36160ab48425c6e43bf2e2f.tar.xz
pstore/ram: Make ECC size configurable
This is now pretty straightforward: instead of using bool, just pass an integer. For backwards compatibility ramoops.ecc=1 means 16 bytes ECC (using 1 byte for ECC isn't much of use anyway). Suggested-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/pstore_ram.h')
-rw-r--r--include/linux/pstore_ram.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
index a0975c02194a..94b79f173365 100644
--- a/include/linux/pstore_ram.h
+++ b/include/linux/pstore_ram.h
@@ -48,7 +48,7 @@ struct persistent_ram_zone {
struct persistent_ram_zone * __devinit persistent_ram_new(phys_addr_t start,
size_t size,
- bool ecc);
+ int ecc_size);
void persistent_ram_free(struct persistent_ram_zone *prz);
void persistent_ram_zap(struct persistent_ram_zone *prz);
@@ -74,7 +74,7 @@ struct ramoops_platform_data {
unsigned long record_size;
unsigned long console_size;
int dump_oops;
- bool ecc;
+ int ecc_size;
};
#endif