mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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:
@ -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
|
||||
|
@ -21,8 +21,6 @@
|
||||
#include <linux/err.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#ifndef CONFIG_X86
|
||||
/*
|
||||
* Problem areas:
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -16,8 +16,6 @@
|
||||
#include <dm/uclass-internal.h>
|
||||
#endif
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/**
|
||||
* smbios_add_string() - add a string to the string area
|
||||
*
|
||||
|
Reference in New Issue
Block a user