From patchwork Fri Jul 31 15:31:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 502637 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 37FF5140338 for ; Sat, 1 Aug 2015 01:35:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=joobrht+; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 594EE4BB20; Fri, 31 Jul 2015 17:34:09 +0200 (CEST) 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 VaHKokdvR6MZ; Fri, 31 Jul 2015 17:34:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3124E4BAD4; Fri, 31 Jul 2015 17:33:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32EC04BA7A for ; Fri, 31 Jul 2015 17:32:37 +0200 (CEST) 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 CRSxoZ-a2SFZ for ; Fri, 31 Jul 2015 17:32:37 +0200 (CEST) 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-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by theia.denx.de (Postfix) with ESMTPS id 2031E4BA78 for ; Fri, 31 Jul 2015 17:32:31 +0200 (CEST) Received: by igr7 with SMTP id 7so18703860igr.0 for ; Fri, 31 Jul 2015 08:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=zzztrWBEVyADbyRK+vCtzKT+gVun/im/MykePZccyh8=; b=joobrht+QFX9Ms3VKh4OLsXQ+kmLqPz6k/O0NRiSR7TC8in85PIX6rLaM2s90h64eC 6XYQ8wGl9tnHG2CSLTxRP6q7TYTyKbfhvkkOHkmshVavZSRnhwITAjWVSFYi4Lsb2dgQ +tFADHMxMZAL2/B4MHysL06+9F9h3vGeXcnTajMJrw1rZvPMYPUlM429diodjfk6uUQW rocWOfhYHPfuOb/ax8qkOotj9gQyiRXVIH2UkSz0HYu0LhljOwEz8bTscbAAt7PfWGEx 2hUhBmxFY0FTw8+pvFZTkhZNnpYVV1WbO9Odv2p6Rqge3RoqN4dbaPKBpPcBAOV7jeNh aPOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=zzztrWBEVyADbyRK+vCtzKT+gVun/im/MykePZccyh8=; b=Tt0Vd7vEe2awNzA1/m1sqYpd7FKAqJ4hUrYDcRz40hc4w8Xy4VIGQ9zie0Oy12A4fD mN1zZ+wtgaTnqO/vaEYQvnUPhDTLnko+2gTQnnv9WfsmEExBzX01/E0gO730uZJOFxSt K4szaAQ7MivIRFcspIezO0ZAmXsfeyH3fQLpgpf1k3nPBzK6bnVIGA3c50ajUdiARfzl ez09P0Q9atpU96a08/BkhajNFnHJ4g4U5+5whc9S5o9HDrZZ6yn3H4V3Db3AR/FWp1GK tn+eKwsZ7vp8FayiSiHRIZYu2zbCtm0miKYTEZnJRi4GXdKtPwhtOgLlQ9RK+6ZNx/u7 ndrg== X-Gm-Message-State: ALoCoQlATQwzHbmzW13brDv+T/Dn8jV1MJPJ1ovz4sGdsVTILsYm3GtunGGbMDpMkvz+69sj94yE X-Received: by 10.50.132.70 with SMTP id os6mr6337573igb.27.1438356749910; Fri, 31 Jul 2015 08:32:29 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:1100:346c:34ae:e5bb:43d5]) by smtp.gmail.com with ESMTPSA id s5sm2464636igh.6.2015.07.31.08.32.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 08:32:27 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 136102220C3; Fri, 31 Jul 2015 09:32:23 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 31 Jul 2015 09:31:31 -0600 Message-Id: <1438356724-6561-15-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.5.0.rc2.392.g76e840b In-Reply-To: <1438356724-6561-1-git-send-email-sjg@chromium.org> References: <1438356724-6561-1-git-send-email-sjg@chromium.org> Cc: Graeme Russ Subject: [U-Boot] [PATCH v2 14/47] x86: Add some missing global_data declarations in files that use gd X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Some files use global_data but don't declare it. Fix this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/mp_init.c | 2 ++ arch/x86/lib/bootm.c | 2 ++ arch/x86/lib/fsp/fsp_common.c | 2 ++ arch/x86/lib/lpc-uclass.c | 2 ++ arch/x86/lib/pch-uclass.c | 2 ++ drivers/gpio/intel_ich6_gpio.c | 2 ++ 6 files changed, 12 insertions(+) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index e686b28..3294a50 100644 --- a/arch/x86/cpu/mp_init.c +++ b/arch/x86/cpu/mp_init.c @@ -24,6 +24,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + /* Total CPUs include BSP */ static int num_cpus; diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index 86030cf..445ee6e 100644 --- a/arch/x86/lib/bootm.c +++ b/arch/x86/lib/bootm.c @@ -22,6 +22,8 @@ #include #endif +DECLARE_GLOBAL_DATA_PTR; + #define COMMAND_LINE_OFFSET 0x9000 /* diff --git a/arch/x86/lib/fsp/fsp_common.c b/arch/x86/lib/fsp/fsp_common.c index 5b25632..c585710 100644 --- a/arch/x86/lib/fsp/fsp_common.c +++ b/arch/x86/lib/fsp/fsp_common.c @@ -11,6 +11,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + int print_cpuinfo(void) { post_code(POST_CPU_INFO); diff --git a/arch/x86/lib/lpc-uclass.c b/arch/x86/lib/lpc-uclass.c index 6aeb4d4..c6e8f73 100644 --- a/arch/x86/lib/lpc-uclass.c +++ b/arch/x86/lib/lpc-uclass.c @@ -9,6 +9,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + static int lpc_uclass_post_bind(struct udevice *bus) { /* diff --git a/arch/x86/lib/pch-uclass.c b/arch/x86/lib/pch-uclass.c index d1082e1..20dfa81 100644 --- a/arch/x86/lib/pch-uclass.c +++ b/arch/x86/lib/pch-uclass.c @@ -9,6 +9,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + static int pch_uclass_post_bind(struct udevice *bus) { /* diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 8a108f3..cb408a4 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -35,6 +35,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + #define GPIO_PER_BANK 32 struct ich6_bank_priv {