src/mainboard: Remove unused 'include <stdlib.h>'
Found using following commande: diff <(git grep -l '#include <stdlib.h>' -- src/) <(git grep -l ' memalign\|malloc\|free' -- src/) |grep -v vendorcode |grep '<' Change-Id: Ib2ee840a10de5c10d57aa7a75b805ef69dc8da84 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41241 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6a197964d9
commit
bc867d5b1d
|
@ -6,7 +6,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/* Select the CPU family. */
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
#define INSTALL_FT3_SOCKET_SUPPORT TRUE
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
/* Select the CPU family. */
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <amdblocks/acpimmio.h>
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/* Select the CPU family. */
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/* Select the CPU family. */
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
/* Select the CPU family. */
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/* Select the CPU family. */
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
#include <option.h>
|
||||
#include <types.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <vendorcode/amd/agesa/f16kb/AGESA.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
#include <spd_bin.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
#define INSTALL_FT3_SOCKET_SUPPORT TRUE
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <console/console.h>
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
#include <spd_bin.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
#define INSTALL_FT3_SOCKET_SUPPORT TRUE
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <amdblocks/acpimmio.h>
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/* Select the cpu family. */
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "imc.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
#define INSTALL_FT3_SOCKET_SUPPORT TRUE
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <FchPlatform.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
const BIOS_CALLOUT_STRUCT BiosCallouts[] =
|
||||
{
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <AGESA.h>
|
||||
|
||||
#define INSTALL_FT3_SOCKET_SUPPORT TRUE
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <amdblocks/acpimmio.h>
|
||||
#include <vendorcode/amd/cimx/sb800/SB800.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINTN Data, VOID *ConfigPtr);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <vendorcode/amd/agesa/f14/AGESA.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Should AGESA_GNB_PCIE_SLOT_RESET use agesa_NoopSuccess?
|
||||
*
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <arch/io.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <SB800.h>
|
||||
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Should AGESA_GNB_PCIE_SLOT_RESET use agesa_NoopSuccess?
|
||||
*
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <amdblocks/acpimmio.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <soc/pci_devs.h>
|
||||
#include <soc/pcr_ids.h>
|
||||
#include <soc/soc_util.h>
|
||||
#include <stdlib.h>
|
||||
#include <soc/util.h>
|
||||
#include <timer.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
#include <device/mmio.h>
|
||||
#include <console/console.h>
|
||||
#include <stdlib.h>
|
||||
#include <soc/addressmap.h>
|
||||
#include <soc/dramc_common.h>
|
||||
#include <soc/dramc_register.h>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <console/console.h>
|
||||
#include <delay.h>
|
||||
#include <device/mmio.h>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <console/console.h>
|
||||
#include <device/pnp.h>
|
||||
#include <device/device.h>
|
||||
|
|
Loading…
Reference in New Issue