pstore: Add support for 64 Bit address space
authorWiebe, Wladislav (Nokia - DE/Ulm) <wladislav.wiebe@nokia.com>
Fri, 13 Nov 2015 12:10:05 +0000 (12:10 +0000)
committerTony Luck <tony.luck@intel.com>
Thu, 10 Mar 2016 17:43:36 +0000 (09:43 -0800)
Some architectures have their reserved RAM in 64 Bit address space.
Therefore convert mem_address module parameter to ullong.

Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram.c
include/linux/pstore_ram.h

index 319c3a60cfa52622cada3922b9023262e21c57fb..bd9812e83461238745a57e30a6d39a732282680f 100644 (file)
@@ -55,8 +55,8 @@ static ulong ramoops_pmsg_size = MIN_MEM_SIZE;
 module_param_named(pmsg_size, ramoops_pmsg_size, ulong, 0400);
 MODULE_PARM_DESC(pmsg_size, "size of user space message log");
 
-static ulong mem_address;
-module_param(mem_address, ulong, 0400);
+static unsigned long long mem_address;
+module_param(mem_address, ullong, 0400);
 MODULE_PARM_DESC(mem_address,
                "start of reserved RAM used to store oops/panic logs");
 
index 9c9d6c154c8e926207856a749e2948a7d7346b69..4660aaa3195ef521f01e62723b6780ebeb451f4f 100644 (file)
@@ -76,7 +76,7 @@ ssize_t persistent_ram_ecc_string(struct persistent_ram_zone *prz,
 
 struct ramoops_platform_data {
        unsigned long   mem_size;
-       unsigned long   mem_address;
+       phys_addr_t     mem_address;
        unsigned int    mem_type;
        unsigned long   record_size;
        unsigned long   console_size;
This page took 0.04442 seconds and 5 git commands to generate.