From patchwork Wed Nov 11 05:49:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 542786 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 60461141418 for ; Wed, 11 Nov 2015 16:49:50 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45CB71A028E for ; Wed, 11 Nov 2015 16:49:50 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 1BDA91A021E for ; Wed, 11 Nov 2015 16:49:40 +1100 (AEDT) Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Nov 2015 00:49:38 -0500 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 11 Nov 2015 00:49:36 -0500 X-IBM-Helo: d01dlp03.pok.ibm.com X-IBM-MailFrom: stewart@linux.vnet.ibm.com X-IBM-RcptTo: skiboot@lists.ozlabs.org Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 598D4C9003C for ; Wed, 11 Nov 2015 00:37:46 -0500 (EST) Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tAB5nZCZ61866128 for ; Wed, 11 Nov 2015 05:49:36 GMT Received: from d01av02.pok.ibm.com (localhost [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tAB5nZnw025005 for ; Wed, 11 Nov 2015 00:49:35 -0500 Received: from oc8180480414.ibm.com (oc8180480414.ibm.com.au.ibm.com [9.185.215.29]) by d01av02.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id tAB5nY6u024945; Wed, 11 Nov 2015 00:49:35 -0500 Received: from ka1.ozlabs.ibm.com (localhost [127.0.0.1]) by oc8180480414.ibm.com (Postfix) with ESMTP id AD2D942CA; Wed, 11 Nov 2015 16:49:33 +1100 (AEDT) From: Stewart Smith To: skiboot@lists.ozlabs.org Date: Wed, 11 Nov 2015 16:49:31 +1100 Message-Id: <1447220972-12290-2-git-send-email-stewart@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447220972-12290-1-git-send-email-stewart@linux.vnet.ibm.com> References: <1447220972-12290-1-git-send-email-stewart@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15111105-0057-0000-0000-00000260A1B2 Subject: [Skiboot] [PATCH 1/2] Revive hdata_to_dt and make it work again X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Some functions were stubbed out which meant we hit assert rather than dumping out the device tree Signed-off-by: Stewart Smith --- hdata/test/hdata_to_dt.c | 3 +++ hdata/test/stubs.c | 18 ------------------ 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c index cc7773e2ceaf..7057880112a7 100644 --- a/hdata/test/hdata_to_dt.c +++ b/hdata/test/hdata_to_dt.c @@ -27,6 +27,9 @@ #include +#include "../../libfdt/fdt.c" +#include "../../libfdt/fdt_ro.c" + struct dt_node *opal_node; /* Our actual map. */ diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index 16f75bac28bc..6ad225561f60 100644 --- a/hdata/test/stubs.c +++ b/hdata/test/stubs.c @@ -42,25 +42,7 @@ static void stub_function(void) #define STUB(fnname) \ void fnname(void) __attribute__((weak, alias ("stub_function"))) -STUB(fdt_begin_node); -STUB(fdt_property); -STUB(fdt_end_node); -STUB(fdt_create); -STUB(fdt_add_reservemap_entry); -STUB(fdt_finish_reservemap); -STUB(fdt_strerror); -STUB(fdt_check_header); -STUB(_fdt_check_node_offset); -STUB(fdt_next_tag); -STUB(fdt_string); -STUB(fdt_get_name); -STUB(dt_first); -STUB(dt_next); -STUB(dt_has_node_property); -STUB(dt_get_address); STUB(op_display); STUB(fsp_preload_lid); STUB(fsp_wait_lid_loaded); -STUB(get_ics_phandle); -STUB(get_psi_interrupt); STUB(fsp_adjust_lid_side);