From patchwork Tue Feb 24 11:14:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 442926 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 C2579140182 for ; Tue, 24 Feb 2015 22:15:57 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id B4B521A1550 for ; Tue, 24 Feb 2015 22:15:57 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 704101A1523 for ; Tue, 24 Feb 2015 22:15:35 +1100 (AEDT) Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Feb 2015 11:15:32 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 24 Feb 2015 11:15:30 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id E1F44219005F for ; Tue, 24 Feb 2015 11:15:22 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1OBFTJN5832708 for ; Tue, 24 Feb 2015 11:15:29 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1OBFSIF028480 for ; Tue, 24 Feb 2015 04:15:28 -0700 Received: from hermes.kaod.org (sig-9-84-121-52.evts.de.ibm.com [9.84.121.52]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t1OBFF8O028018; Tue, 24 Feb 2015 04:15:28 -0700 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: skiboot@lists.ozlabs.org Date: Tue, 24 Feb 2015 12:14:20 +0100 Message-Id: <1424776479-13958-7-git-send-email-clg@fr.ibm.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1424776479-13958-1-git-send-email-clg@fr.ibm.com> References: <1424776479-13958-1-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15022411-0041-0000-0000-00000359674C Subject: [Skiboot] [PATCH 06/25] sparse: declare platform as extern X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Cédric Le Goater --- core/platform.c | 2 ++ include/platform.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/platform.c b/core/platform.c index 877251e55111..7cf9727eb9f6 100644 --- a/core/platform.c +++ b/core/platform.c @@ -20,6 +20,8 @@ #include #include +struct platform platform; + /* * Various wrappers for platform functions */ diff --git a/include/platform.h b/include/platform.h index 690772e5b1f8..c25ee1946293 100644 --- a/include/platform.h +++ b/include/platform.h @@ -143,7 +143,7 @@ struct platform { extern struct platform __platforms_start; extern struct platform __platforms_end; -struct platform platform; +extern struct platform platform; #define DECLARE_PLATFORM(name)\ static const struct platform __used __section(".platforms") name ##_platform