From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932528AbbFRMTZ (ORCPT ); Thu, 18 Jun 2015 08:19:25 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:32805 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932314AbbFRMSu (ORCPT ); Thu, 18 Jun 2015 08:18:50 -0400 From: Sudip Mukherjee To: David Howells , Ulf Hansson , Matthias Brugger , Johan Hovold , Greg Kroah-Hartman Cc: linux-am33-list@redhat.com, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org, Sudip Mukherjee Subject: [PATCH v2 7/7] mn10300: add early_init_dt_* Date: Thu, 18 Jun 2015 17:47:53 +0530 Message-Id: <1434629873-11668-8-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While building it failed with: undefined reference to `early_init_dt_alloc_memory_arch' undefined reference to `early_init_dt_add_memory_arch' Added the function after seeing them in x86. Signed-off-by: Sudip Mukherjee --- arch/mn10300/kernel/setup.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c index 2ad7f32..f0e08b0 100644 --- a/arch/mn10300/kernel/setup.c +++ b/arch/mn10300/kernel/setup.c @@ -87,6 +87,21 @@ static int __init early_mem(char *p) early_param("mem", early_mem); /* + * early_init_dt_add_memory_arch() and early_init_dt_alloc_memory_arch() + * borrowed from arch/x86/kernel/devicetree.c + */ + +void __init early_init_dt_add_memory_arch(u64 base, u64 size) +{ + BUG(); +} + +void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) +{ + return __alloc_bootmem(size, align, 0); +} + +/* * architecture specific setup */ void __init setup_arch(char **cmdline_p) -- 1.8.1.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudip Mukherjee Subject: [PATCH v2 7/7] mn10300: add early_init_dt_* Date: Thu, 18 Jun 2015 17:47:53 +0530 Message-ID: <1434629873-11668-8-git-send-email-sudipm.mukherjee@gmail.com> References: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> Return-path: In-Reply-To: <1434629873-11668-1-git-send-email-sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: David Howells , Ulf Hansson , Matthias Brugger , Johan Hovold , Greg Kroah-Hartman Cc: linux-am33-list-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sudip Mukherjee List-Id: linux-mmc@vger.kernel.org While building it failed with: undefined reference to `early_init_dt_alloc_memory_arch' undefined reference to `early_init_dt_add_memory_arch' Added the function after seeing them in x86. Signed-off-by: Sudip Mukherjee --- arch/mn10300/kernel/setup.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c index 2ad7f32..f0e08b0 100644 --- a/arch/mn10300/kernel/setup.c +++ b/arch/mn10300/kernel/setup.c @@ -87,6 +87,21 @@ static int __init early_mem(char *p) early_param("mem", early_mem); /* + * early_init_dt_add_memory_arch() and early_init_dt_alloc_memory_arch() + * borrowed from arch/x86/kernel/devicetree.c + */ + +void __init early_init_dt_add_memory_arch(u64 base, u64 size) +{ + BUG(); +} + +void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) +{ + return __alloc_bootmem(size, align, 0); +} + +/* * architecture specific setup */ void __init setup_arch(char **cmdline_p) -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudipm.mukherjee@gmail.com (Sudip Mukherjee) Date: Thu, 18 Jun 2015 17:47:53 +0530 Subject: [PATCH v2 7/7] mn10300: add early_init_dt_* In-Reply-To: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> Message-ID: <1434629873-11668-8-git-send-email-sudipm.mukherjee@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org While building it failed with: undefined reference to `early_init_dt_alloc_memory_arch' undefined reference to `early_init_dt_add_memory_arch' Added the function after seeing them in x86. Signed-off-by: Sudip Mukherjee --- arch/mn10300/kernel/setup.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c index 2ad7f32..f0e08b0 100644 --- a/arch/mn10300/kernel/setup.c +++ b/arch/mn10300/kernel/setup.c @@ -87,6 +87,21 @@ static int __init early_mem(char *p) early_param("mem", early_mem); /* + * early_init_dt_add_memory_arch() and early_init_dt_alloc_memory_arch() + * borrowed from arch/x86/kernel/devicetree.c + */ + +void __init early_init_dt_add_memory_arch(u64 base, u64 size) +{ + BUG(); +} + +void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) +{ + return __alloc_bootmem(size, align, 0); +} + +/* * architecture specific setup */ void __init setup_arch(char **cmdline_p) -- 1.8.1.2