Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226AbbKMMKW (ORCPT ); Fri, 13 Nov 2015 07:10:22 -0500 Received: from demumfd002.nsn-inter.net ([93.183.12.31]:58126 "EHLO demumfd002.nsn-inter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752479AbbKMMKV convert rfc822-to-8bit (ORCPT ); Fri, 13 Nov 2015 07:10:21 -0500 From: "Wiebe, Wladislav (Nokia - DE/Ulm)" To: "anton@enomsg.org" , "ccross@android.com" , "keescook@chromium.org" , "tony.luck@intel.com" CC: "linux-kernel@vger.kernel.org" Subject: [PATCH] pstore: add support for 64 Bit address space Thread-Topic: [PATCH] pstore: add support for 64 Bit address space Thread-Index: AdEeDDuPUpCYVScZRDyMjRQP0XHD9w== Date: Fri, 13 Nov 2015 12:10:05 +0000 Message-ID: <27017B294887C64C94ACAE870D1C65952A977B13@DEMUMBX013.nsn-intra.net> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.159.42.101] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 1424 X-purgate-ID: 151667::1447416607-000015C7-485F9A11/0/0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1612 Lines: 49 Some architectures has there reserved RAM in 64 Bit address space. Therefore converting mem_address module parameter to ullong. Signed-off-by: Wladislav Wiebe --- fs/pstore/ram.c | 4 ++-- include/linux/pstore_ram.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 319c3a6..bd9812e 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -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"); diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h index 9c9d6c1..4660aaa 100644 --- a/include/linux/pstore_ram.h +++ b/include/linux/pstore_ram.h @@ -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; -- 1.7.1 Regards, Wladislav Wiebe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/