src/southbridge: Use 'include <stdlib.h>' when appropriate

Also, including <types.h>, is supposed to provide stdint and stddef.

Change-Id: I7e1a3483aae0e3f0a7bc2eb2c1862ae7a325fd9c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33683
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Elyes HAOUAS 2019-06-23 07:01:22 +02:00 committed by Patrick Georgi
parent 34715df801
commit 400f9ca261
8 changed files with 9 additions and 9 deletions

View File

@ -19,7 +19,7 @@
#include <device/smbus.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
#include <stdlib.h>
#include "hudson.h"
#include "smbus.c"

View File

@ -15,7 +15,7 @@
#include <device/pci_def.h>
#include <device/device.h>
#include <stdlib.h>
#include <stddef.h>
#include <OEM.h> /* SMBUS0_BASE_ADDRESS */
/* warning: Porting.h includes an open #pragma pack(1) */

View File

@ -12,8 +12,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <stdint.h>
#include <stdlib.h>
#include <device/mmio.h>
#include <console/console.h>
#include <spi_flash.h>
@ -21,6 +20,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <types.h>
#include "SBPLATFORM.h"
#include <vendorcode/amd/cimx/sb800/ECfan.h>

View File

@ -19,7 +19,7 @@
#include <device/smbus.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
#include <stdlib.h>
#include "hudson.h"
#include "smbus.c"

View File

@ -24,7 +24,7 @@
#include <arch/io.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
#include <stdlib.h>
#include "sb700.h"
#include "smbus.h"

View File

@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
#include <stdint.h>
#include <stdlib.h>
#include <device/mmio.h>
#include <console/console.h>
#include <spi-generic.h>
@ -23,6 +21,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <types.h>
#define AMD_SB_SPI_TX_LEN 8

View File

@ -23,7 +23,7 @@
#include <arch/io.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
#include <stdlib.h>
#include "sb800.h"
#include "smbus.c"

View File

@ -34,6 +34,7 @@
#include <delay.h>
#include <elog.h>
#include <halt.h>
#include <stdlib.h>
#include "chip.h"
#include "me.h"