Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR

We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2018-04-18 13:50:47 -04:00
parent f1b1f77060
commit d024236e5a
362 changed files with 0 additions and 717 deletions

View File

@ -17,8 +17,6 @@
#include <efi.h>
#include <efi_api.h>
DECLARE_GLOBAL_DATA_PTR;
/*
* Unfortunately we cannot access any code outside what is built especially
* for the stub. lib/string.c is already being built for the U-Boot payload

View File

@ -21,8 +21,6 @@
#include <linux/err.h>
#include <linux/types.h>
DECLARE_GLOBAL_DATA_PTR;
#ifndef CONFIG_X86
/*
* Problem areas:

View File

@ -13,8 +13,6 @@
#include <pe.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
const efi_guid_t efi_global_variable_guid = EFI_GLOBAL_VARIABLE_GUID;
const efi_guid_t efi_guid_device_path = DEVICE_PATH_GUID;
const efi_guid_t efi_guid_loaded_image = LOADED_IMAGE_GUID;

View File

@ -12,8 +12,6 @@
#include <lcd.h>
#include <malloc.h>
DECLARE_GLOBAL_DATA_PTR;
static const efi_guid_t efi_net_guid = EFI_SIMPLE_NETWORK_GUID;
static const efi_guid_t efi_pxe_guid = EFI_PXE_GUID;
static struct efi_pxe_packet *dhcp_ack;

View File

@ -16,8 +16,6 @@
#include <dm/of_access.h>
#include <linux/err.h>
DECLARE_GLOBAL_DATA_PTR;
static void *unflatten_dt_alloc(void **mem, unsigned long size,
unsigned long align)
{

View File

@ -16,8 +16,6 @@
#include <dm/uclass-internal.h>
#endif
DECLARE_GLOBAL_DATA_PTR;
/**
* smbios_add_string() - add a string to the string area
*