src: Include <stdint.h> instead of <inttypes.h>

The <inttypes.h> header currently does nothing but include the
definitions from <stdint.h>, so let's #include that directly instead.

Change-Id: I9d83ad37d0d7300a093001596ce3f0b3830c5701
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34800
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Jacob Garber 2019-08-08 13:35:31 -06:00 committed by Martin Roth
parent 6b212d8fcf
commit 5cf9ccc57d
59 changed files with 58 additions and 59 deletions

View File

@ -92,7 +92,7 @@ b.- prep_fid_change(...)
#include <console/console.h>
#include <cpu/amd/msr.h>
#include <device/pci_ops.h>
#include <inttypes.h>
#include <stdint.h>
#include <northbridge/amd/amdht/AsPsDefs.h>
static inline void print_debug_fv(const char *str, u32 val)

View File

@ -16,7 +16,7 @@
#include <console/console.h>
#include <fsp/api.h>
#include <fsp/util.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#define HOB_HEADER_LEN 8

View File

@ -10,7 +10,7 @@
#ifndef __DRIVERS_UART_PL011_H
#define __DRIVERS_UART_PL011_H
#include <inttypes.h>
#include <stdint.h>
#include <types.h>
/* PL011 r1p5 registers */

View File

@ -9,7 +9,7 @@
#ifndef __LIB_VPD_TABLES_H__
#define __LIB_VPD_TABLES_H__
#include <inttypes.h>
#include <stdint.h>
#define VPD_ENTRY_MAGIC "_SM_"
#define VPD_INFO_MAGIC \

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include <lib.h>
#include <console/console.h>

View File

@ -17,7 +17,7 @@
#ifndef AMDFAM10_H
#define AMDFAM10_H
#include <inttypes.h>
#include <stdint.h>
#include <device/device.h>
#include "early_ht.h"

View File

@ -16,7 +16,7 @@
#ifndef AMDFAM10_DEBUG_H
#define AMDFAM10_DEBUG_H
#include <inttypes.h>
#include <stdint.h>
#include "pci.h"
void print_debug_addr(const char *str, void *val);

View File

@ -14,7 +14,7 @@
*/
#include "early_ht.h"
#include <inttypes.h>
#include <stdint.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>

View File

@ -16,7 +16,7 @@
#ifndef AMDFAM10_PCI_H
#define AMDFAM10_PCI_H
#include <inttypes.h>
#include <stdint.h>
#include <device/pci_type.h>
#include <device/pci_def.h>

View File

@ -15,7 +15,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include <arch/acpi.h>
#include <arch/cpu.h>
#include <device/pci.h>

View File

@ -15,7 +15,7 @@
*/
#include <arch/io.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <device/pci_ops.h>
#include <northbridge/amd/amdfam10/raminit.h>

View File

@ -17,7 +17,7 @@
#define COMLIB_H
#include <assert.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include "porting.h"

View File

@ -17,7 +17,7 @@
#ifndef H3NCMN_H
#define H3NCMN_H
#include <inttypes.h>
#include <stdint.h>
#include <device/pci.h>
#include <cpu/amd/msr.h>

View File

@ -18,7 +18,7 @@
#include <northbridge/amd/amdfam10/raminit.h>
#include <northbridge/amd/amdfam10/amdfam10.h>
#include <inttypes.h>
#include <stdint.h>
#include "h3finit.h"
void amd_ht_fixup(struct sys_info *sysinfo);

View File

@ -22,7 +22,7 @@
#define DQS_TRAIN_DEBUG 0
#include <inttypes.h>
#include <stdint.h>
#include <northbridge/amd/amdfam10/debug.h>
#include <northbridge/amd/amdfam10/raminit.h>

View File

@ -16,7 +16,7 @@
#ifndef MCT_D_GCC_H
#define MCT_D_GCC_H
#include <inttypes.h>
#include <stdint.h>
void _WRMSR(u32 addr, u32 lo, u32 hi);
void _RDMSR(u32 addr, u32 *lo, u32 *hi);

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
static void Get_ChannelPS_Cfg0_D(u8 MAAdimms, u8 Speed, u8 MAAload,

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
static void Get_ChannelPS_Cfg0_D(u8 MAAdimms, u8 Speed, u8 MAAload,

View File

@ -22,7 +22,7 @@
#define DQS_TRAIN_DEBUG 0
#include <inttypes.h>
#include <stdint.h>
#include <northbridge/amd/amdfam10/raminit.h>
/*===========================================================================

View File

@ -15,7 +15,7 @@
*/
#include "mct_d_gcc.h"
#include <inttypes.h>
#include <stdint.h>
#include <arch/cpu.h>
void _WRMSR(u32 addr, u32 lo, u32 hi)

View File

@ -17,7 +17,7 @@
#ifndef MCT_D_GCC_H
#define MCT_D_GCC_H
#include <inttypes.h>
#include <stdint.h>
#include <cpu/x86/cr.h>
void _WRMSR(u32 addr, u32 lo, u32 hi);

View File

@ -17,7 +17,7 @@
/* AM3/ASB2/C32/G34 DDR3 */
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"
#include <console/console.h>

View File

@ -20,7 +20,7 @@
* ;page size), and subtract 8.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"
#include <console/console.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <cpu/x86/cr.h>
#include <string.h>

View File

@ -15,7 +15,7 @@
*/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <device/pci_ops.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -15,7 +15,7 @@
*/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <string.h>
#include "mct_d.h"

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <cpu/amd/mtrr.h>
#include <cpu/x86/mtrr.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include "mct_d.h"

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -15,7 +15,7 @@
*/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include "mct_d.h"

View File

@ -15,7 +15,7 @@
*/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include "mct_d.h"

View File

@ -20,7 +20,7 @@
******************************************************************************/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <cpu/x86/cr.h>
#include <string.h>

View File

@ -15,7 +15,7 @@
*/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -18,7 +18,7 @@
* Description: Max Read Latency Training feature for DDR 3 MCT
*/
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <cpu/amd/msr.h>
#include <cpu/x86/cr.h>

View File

@ -15,7 +15,7 @@
*/
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include "mct_d.h"

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include <northbridge/amd/amdfam10/amdfam10.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -16,7 +16,7 @@
/* This file contains functions for odt setting on registered DDR3 dimms */
#include <inttypes.h>
#include <stdint.h>
#include <console/console.h>
#include "mct_d.h"

View File

@ -14,7 +14,7 @@
*/
#include <arch/io.h>
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -17,7 +17,7 @@
/* This file contains functions for common utility functions */
#include <arch/cpu.h>
#include <inttypes.h>
#include <stdint.h>
#include "mct_d.h"
#include "mct_d_gcc.h"

View File

@ -29,7 +29,7 @@
#include <spi-generic.h>
#include <spi_flash.h>
#include <pc80/mc146818rtc.h>
#include <inttypes.h>
#include <stdint.h>
#include <types.h>
#include "mct_d.h"

View File

@ -18,7 +18,7 @@
#ifndef MCTI_H
#define MCTI_H
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <pc80/mc146818rtc.h>

View File

@ -16,7 +16,7 @@
#ifndef __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
#define __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
#include <inttypes.h>
#include <stdint.h>
#include <types.h>
/* MIO BOOT Registers */

View File

@ -16,7 +16,7 @@
#ifndef __SOC_CAVIUM_CN81XX_TIMER_H__
#define __SOC_CAVIUM_CN81XX_TIMER_H__
#include <inttypes.h>
#include <stdint.h>
#include <types.h>
/* Watchdog functions */

View File

@ -16,7 +16,7 @@
#ifndef __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
#define __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
#include <inttypes.h>
#include <stdint.h>
#include <types.h>
int uart_is_enabled(const size_t bus);

View File

@ -20,7 +20,6 @@
#include <device/mmio.h>
#include <arch/lib_helpers.h>
#include <console/console.h>
#include <inttypes.h>
#include <soc/clock.h>
#include <soc/timer.h>
#include <stdint.h>

View File

@ -17,7 +17,7 @@
#include <device/mmio.h>
#include <console/console.h>
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <soc/dma.h>
#include <stddef.h>

View File

@ -18,7 +18,7 @@
#ifndef __NVIDIA_TEGRA124_DMA_H__
#define __NVIDIA_TEGRA124_DMA_H__
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
/*

View File

@ -20,7 +20,7 @@
#include <boot_device.h>
#include <console/console.h>
#include <delay.h>
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <soc/dma.h>
#include <soc/spi.h>

View File

@ -17,7 +17,7 @@
#include <device/mmio.h>
#include <console/console.h>
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <soc/dma.h>
#include <stddef.h>

View File

@ -17,7 +17,7 @@
#ifndef __NVIDIA_TEGRA210_DMA_H__
#define __NVIDIA_TEGRA210_DMA_H__
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <types.h>

View File

@ -20,7 +20,7 @@
#include <boot_device.h>
#include <console/console.h>
#include <delay.h>
#include <inttypes.h>
#include <stdint.h>
#include <spi-generic.h>
#include <spi_flash.h>
#include <soc/addressmap.h>

View File

@ -16,7 +16,7 @@
#ifndef __SOC_ROCKCHIP_RK3288_TIMER_H__
#define __SOC_ROCKCHIP_RK3288_TIMER_H__
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <timer.h>

View File

@ -16,7 +16,7 @@
#ifndef __SOC_ROCKCHIP_RK3399_TIMER_H__
#define __SOC_ROCKCHIP_RK3399_TIMER_H__
#include <inttypes.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <timer.h>

View File

@ -39,7 +39,7 @@
* ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
***********************license end**************************************/
#include <inttypes.h>
#include <stdint.h>
#include <bdk-devicetree.h>
/**