From patchwork Sat Dec 27 12:10:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 424190 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id EFC11140082 for ; Sat, 27 Dec 2014 23:10:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 493584B62B; Sat, 27 Dec 2014 13:10:32 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ojsu+Nfnaar; Sat, 27 Dec 2014 13:10:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D6E684B61E; Sat, 27 Dec 2014 13:10:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEA544B622 for ; Sat, 27 Dec 2014 13:10:29 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8hpZMze4i2X8 for ; Sat, 27 Dec 2014 13:10:29 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by theia.denx.de (Postfix) with ESMTPS id 4B8584B61C for ; Sat, 27 Dec 2014 13:10:26 +0100 (CET) Received: by mail-pd0-f173.google.com with SMTP id ft15so14287388pdb.32 for ; Sat, 27 Dec 2014 04:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=DSExBczGpyRPoH2X4fKo4/osErhaIGQfHI8IzUDc5JY=; b=q6BuYvWF2EotWFIwYwa375qvuzHSrHJGf3OD14rZEUsYnirvI9oelnBvj5OqHd4F6q Le90nG5MAMvx8d+PwVGsEpVUz0635DcYuEA0xh8DkMz7VHZEM9ofvGXjSEhqRV4Uoku3 Eyz1g7pcprbTgM5j51UBU6YAHKCL/0wQqw9NUGkwC2p1XIrVIwovcR6njZE7VHecMz/E qB/3ul50DoxdoQMVJdh8Am+39hhpkbIy5/fzMQNSeKBpd5B5SrYRwFUFjt+j0s0rwx/3 hwHcx4GbMk9WLXlZ2de11mD7IjATxedGla6/esVdElckj8OZlIp0Q7cgnOzhKD8JxitM Xtfg== X-Received: by 10.68.135.226 with SMTP id pv2mr75955525pbb.48.1419682223353; Sat, 27 Dec 2014 04:10:23 -0800 (PST) Received: from localhost ([106.120.101.38]) by mx.google.com with ESMTPSA id or4sm14620150pab.30.2014.12.27.04.10.21 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 27 Dec 2014 04:10:22 -0800 (PST) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Sat, 27 Dec 2014 20:10:04 +0800 Message-Id: <1419682210-21181-2-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1419682210-21181-1-git-send-email-bmeng.cn@gmail.com> References: <1419682210-21181-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v2 1/7] x86: Add missing DECLARE_GLOBAL_DATA_PTR for pci.c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de arch/x86/cpu/pci.c has access to the U-Boot global data thus DECLARE_GLOBAL_DATA_PTR is needed. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: - Add a commit message arch/x86/cpu/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c index f3492c3..404fbb6 100644 --- a/arch/x86/cpu/pci.c +++ b/arch/x86/cpu/pci.c @@ -15,6 +15,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + static struct pci_controller x86_hose; int pci_early_init_hose(struct pci_controller **hosep)