From patchwork Mon May 15 08:20:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver O'Halloran X-Patchwork-Id: 762297 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wRD7T6fb1z9s7j for ; Mon, 15 May 2017 18:21:25 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qIIwjmVg"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wRD7T5XKnzDqNh for ; Mon, 15 May 2017 18:21:25 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qIIwjmVg"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wRD765spfzDqL9 for ; Mon, 15 May 2017 18:21:06 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qIIwjmVg"; dkim-atps=neutral Received: by mail-pg0-x242.google.com with SMTP id i63so16078226pgd.2 for ; Mon, 15 May 2017 01:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r1dlOC0lJW12rI2WaPtJBzbh1tmJFpm6bw4AcyLVgf0=; b=qIIwjmVg7ON/NMq5oVwBH0VZlqlAmH/Fr/EGU9CVB5uLnXLcOjeAW8y+iwUyJbSWzP JW7TBpMD9Y5X65G7HCjVyvaA2KLRjbfGaEjSmLtdo3jQwgkUgbyV/R4bFCvbVWWMRqjE Bk+S5gNnDUrbvePxfKpFB1obKqZ0CN/kt8h5XcWRO8YYM4gLuWCpE24WPw1veUeGssmD Hj/mwIv/wSGOeRQSBhjkKFxH2D3zqsyUS7dJQ8C8DUygQDlJo56aZmbUEh/YP4cMgm0d dOWSDk1C6r0i2cXm46z2ee/DBj2oKRvXSiEf80yjeOosCAO7NU976IPOHyPuUlMWPPxV u+sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r1dlOC0lJW12rI2WaPtJBzbh1tmJFpm6bw4AcyLVgf0=; b=hkXsgnXPZF6Fjn5kj5QuoE6YJQ6ZJ/wM88yf1hTsFMXrEEGOGCGZt3W1ByQd0lA70N qJ3tB8Z0VMhg9bEOeHI9lRTN7rnHgK4WAJ0DIfIWtPxQ7tbdrLY3n8QDDtxVf7AvcfBx U0iqsFmXQQF+1unT72S5H3/Ak5MBm4H6rmXVSvoQRC3HrC2Y+Iy/aSQq5RfHYkLGTl2a cPe4Ok/uX+5mWPTjy7EplEbbskshMH+lznvNQhFtYpjpkqYHDttGZYsvsK+Dhe0NYUBk IeiV57jAgaxlfSHUVc7I5KNyCpLBgFCrP7KSqUzACctJVrzfP6MdUg+NE2ZrngRZ6u4d dHQg== X-Gm-Message-State: AODbwcD95ydpdpfkM79rCT+Cj3ctBBVp1NhKeaUAmVc1tXsPOCQ/bdZy MZFY8ncCBHivkA== X-Received: by 10.98.211.87 with SMTP id q84mr5016756pfg.126.1494836464599; Mon, 15 May 2017 01:21:04 -0700 (PDT) Received: from flat-canetoad.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id b90sm18705664pfj.19.2017.05.15.01.21.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 May 2017 01:21:04 -0700 (PDT) From: Oliver O'Halloran To: skiboot@lists.ozlabs.org Date: Mon, 15 May 2017 18:20:49 +1000 Message-Id: <20170515082050.304-2-oohall@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170515082050.304-1-oohall@gmail.com> References: <20170515082050.304-1-oohall@gmail.com> Subject: [Skiboot] [PATCH 2/3] hdata: Add no-op stub functions X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 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" These are useful for side-stepping various HW specific functions. Signed-off-by: Oliver O'Halloran --- hdata/test/stubs.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index bde19e167c18..8bbc68b51500 100644 --- a/hdata/test/stubs.c +++ b/hdata/test/stubs.c @@ -99,6 +99,12 @@ STUB(op_display); STUB(fsp_preload_lid); STUB(fsp_wait_lid_loaded); STUB(fsp_adjust_lid_side); -STUB(mem_reserve_hw); -STUB(early_uart_init); STUB(backtrace); + +/* Add HW specific stubs here */ +static void noop_function(void) {} +#define NOOP_STUB(fnname) \ + void fnname(void) __attribute__((weak, alias ("noop_function"))) + +NOOP_STUB(early_uart_init); +NOOP_STUB(mem_reserve_hw);