From patchwork Tue Dec 22 02:45:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Bur X-Patchwork-Id: 559854 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 AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D9A77140557 for ; Tue, 22 Dec 2015 13:46:38 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id C24161A1628 for ; Tue, 22 Dec 2015 13:46:38 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e23smtp07.au.ibm.com (e23smtp07.au.ibm.com [202.81.31.140]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A3EEA1A09ED for ; Tue, 22 Dec 2015 13:46:34 +1100 (AEDT) Received: from localhost by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 Dec 2015 12:46:32 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp07.au.ibm.com (202.81.31.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 22 Dec 2015 12:46:31 +1000 X-IBM-Helo: d23dlp01.au.ibm.com X-IBM-MailFrom: cyril.bur@au1.ibm.com X-IBM-RcptTo: skiboot@lists.ozlabs.org Received: from d23relay08.au.ibm.com (d23relay08.au.ibm.com [9.185.71.33]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 921212CE8052 for ; Tue, 22 Dec 2015 13:46:31 +1100 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay08.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tBM2k4Y719267698 for ; Tue, 22 Dec 2015 13:46:12 +1100 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tBM2jxp5029114 for ; Tue, 22 Dec 2015 13:45:59 +1100 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id tBM2jxoK028081 for ; Tue, 22 Dec 2015 13:45:59 +1100 Received: from camb691.au.ibm.com (unknown [9.192.198.142]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id B4EF2A0114 for ; Tue, 22 Dec 2015 13:45:34 +1100 (AEDT) From: Cyril Bur To: skiboot@lists.ozlabs.org Date: Tue, 22 Dec 2015 13:45:17 +1100 Message-Id: <1450752319-2941-1-git-send-email-cyril.bur@au1.ibm.com> X-Mailer: git-send-email 2.6.4 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15122202-0025-0000-0000-000002A1596F Subject: [Skiboot] [PATCH 1/3] external/opal-prd: Fix test_pnor 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" Signed-off-by: Cyril Bur --- Patch 3/3 will need to be applies after my first rework of opal-prd. https://patchwork.ozlabs.org/patch/558688/ external/opal-prd/Makefile | 2 +- external/opal-prd/test/test_pnor.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile index db38d71..ff3fc73 100644 --- a/external/opal-prd/Makefile +++ b/external/opal-prd/Makefile @@ -68,7 +68,7 @@ version.c: ../../make_version.sh .version test: test/test_pnor -test/test_pnor: test/test_pnor.o pnor.o libflash/libflash.o libflash/libffs.o +test/test_pnor: test/test_pnor.o pnor.o libflash.o libffs.o blocklevel.o file.o ecc.o $(Q_LINK)$(LINK.o) -o $@ $^ install: all diff --git a/external/opal-prd/test/test_pnor.c b/external/opal-prd/test/test_pnor.c index f4b0a6d..84e4231 100644 --- a/external/opal-prd/test/test_pnor.c +++ b/external/opal-prd/test/test_pnor.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#include #include #include #include @@ -25,6 +26,15 @@ extern void dump_parts(struct ffs_handle *ffs); +void pr_log(int priority, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); +} + int main(int argc, char **argv) { struct pnor pnor;