src: include <assert.h> when appropriate

Change-Id: Ib843eb7144b7dc2932931b9e8f3f1d816bcc1e1a
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/26796
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: David Guckian
This commit is contained in:
Elyes HAOUAS 2019-03-29 17:12:15 +01:00 committed by Patrick Georgi
parent 351e3e520b
commit cd4fe0f718
56 changed files with 4 additions and 53 deletions

View File

@ -18,7 +18,6 @@
#include <arch/mmu.h> #include <arch/mmu.h>
#include <arch/transition.h> #include <arch/transition.h>
#include <arm_tf.h> #include <arm_tf.h>
#include <assert.h>
#include <bootmem.h> #include <bootmem.h>
#include <cbfs.h> #include <cbfs.h>
#include <console/console.h> #include <console/console.h>

View File

@ -28,6 +28,7 @@
#include <lib.h> #include <lib.h>
#include <string.h> #include <string.h>
#include <arch/acpigen.h> #include <arch/acpigen.h>
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>

View File

@ -18,7 +18,6 @@
#ifndef LIBACPI_H #ifndef LIBACPI_H
#define LIBACPI_H #define LIBACPI_H
#include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <arch/acpi.h> #include <arch/acpi.h>

View File

@ -18,7 +18,6 @@
#endif #endif
#include <arch/early_variables.h> #include <arch/early_variables.h>
#include <assert.h>
#include <commonlib/sdhci.h> #include <commonlib/sdhci.h>
#include <device/pci.h> #include <device/pci.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>

View File

@ -19,7 +19,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <commonlib/sd_mmc_ctrlr.h> #include <commonlib/sd_mmc_ctrlr.h>
#include <commonlib/storage.h> #include <commonlib/storage.h>
#include <delay.h> #include <delay.h>

View File

@ -20,7 +20,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <commonlib/storage.h> #include <commonlib/storage.h>
#include <delay.h> #include <delay.h>
#include <endian.h> #include <endian.h>

View File

@ -17,7 +17,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include "bouncebuf.h" #include "bouncebuf.h"
#include <commonlib/sd_mmc_ctrlr.h> #include <commonlib/sd_mmc_ctrlr.h>
#include <commonlib/sdhci.h> #include <commonlib/sdhci.h>

View File

@ -17,7 +17,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <commonlib/sdhci.h> #include <commonlib/sdhci.h>
#include <commonlib/storage.h> #include <commonlib/storage.h>
#include <console/console.h> #include <console/console.h>

View File

@ -21,7 +21,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <commonlib/storage.h> #include <commonlib/storage.h>
#include "sd_mmc.h" #include "sd_mmc.h"
#include "storage.h" #include "storage.h"

View File

@ -17,7 +17,6 @@
#include <device/device.h> #include <device/device.h>
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <smp/spinlock.h> #include <smp/spinlock.h>
#include <assert.h>
#if CONFIG(PARALLEL_CPU_INIT) #if CONFIG(PARALLEL_CPU_INIT)
#error Intel hyper-threading requires serialized CPU init #error Intel hyper-threading requires serialized CPU init

View File

@ -15,7 +15,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <arch/acpi.h> #include <arch/acpi.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <cpu/x86/mp.h> #include <cpu/x86/mp.h>

View File

@ -18,7 +18,6 @@
#include <spi_flash.h> #include <spi_flash.h>
#include <spi-generic.h> #include <spi-generic.h>
#include <string.h> #include <string.h>
#include <assert.h>
#include <delay.h> #include <delay.h>
#include <lib.h> #include <lib.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <base3.h> #include <base3.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h> #include <delay.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <soc/romstage.h> #include <soc/romstage.h>

View File

@ -12,7 +12,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <bootmode.h> #include <bootmode.h>
#include <device/i2c_simple.h> #include <device/i2c_simple.h>
#include <soc/i2c.h> #include <soc/i2c.h>

View File

@ -33,7 +33,6 @@
#include <cpu/amd/msr.h> #include <cpu/amd/msr.h>
#include <cpu/amd/mtrr.h> #include <cpu/amd/mtrr.h>
#include <arch/acpigen.h> #include <arch/acpigen.h>
#include <assert.h>
#include <northbridge/amd/pi/nb_common.h> #include <northbridge/amd/pi/nb_common.h>
#include <northbridge/amd/agesa/agesa_helper.h> #include <northbridge/amd/agesa/agesa_helper.h>
#if CONFIG(BINARYPI_LEGACY_WRAPPER) #if CONFIG(BINARYPI_LEGACY_WRAPPER)

View File

@ -14,7 +14,6 @@
*/ */
#include <arch/early_variables.h> #include <arch/early_variables.h>
#include <assert.h>
#include <commonlib/region.h> #include <commonlib/region.h>
#include <console/console.h> #include <console/console.h>
#include <string.h> #include <string.h>

View File

@ -23,7 +23,6 @@
#include <soc/addressmap.h> #include <soc/addressmap.h>
#include <soc/cavium/common/pci/chip.h> #include <soc/cavium/common/pci/chip.h>
#include <soc/ecam.h> #include <soc/ecam.h>
#include <assert.h>
#define CAVM_PCCPF_XXX_VSEC_CTL 0x108 #define CAVM_PCCPF_XXX_VSEC_CTL 0x108
#define CAVM_PCCPF_XXX_VSEC_SCTL 0x10c #define CAVM_PCCPF_XXX_VSEC_SCTL 0x10c

View File

@ -20,7 +20,6 @@
#include <soc/clock.h> #include <soc/clock.h>
#include <device/i2c.h> #include <device/i2c.h>
#include <device/i2c_simple.h> #include <device/i2c_simple.h>
#include <assert.h>
#include <delay.h> #include <delay.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <soc/addressmap.h> #include <soc/addressmap.h>

View File

@ -22,7 +22,6 @@
#include <device/pci.h> #include <device/pci.h>
#include <soc/addressmap.h> #include <soc/addressmap.h>
#include <soc/ecam.h> #include <soc/ecam.h>
#include <assert.h>
/** /**
* Get PCI BAR address from cavium specific extended capability. * Get PCI BAR address from cavium specific extended capability.

View File

@ -21,6 +21,7 @@
#include <console/console.h> #include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>
#include <assert.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <cbmem.h> #include <cbmem.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>

View File

@ -15,7 +15,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <intelblocks/gpio.h> #include <intelblocks/gpio.h>
#include <intelblocks/pcr.h> #include <intelblocks/pcr.h>
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>

View File

@ -15,7 +15,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <intelblocks/gpio.h> #include <intelblocks/gpio.h>
#include <intelblocks/pcr.h> #include <intelblocks/pcr.h>
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>

View File

@ -20,7 +20,6 @@
* shouldn't cause any fragmentation. * shouldn't cause any fragmentation.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <intelblocks/uart.h> #include <intelblocks/uart.h>
#include <soc/gpio.h> #include <soc/gpio.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <chip.h> #include <chip.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cbmem.h> #include <cbmem.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <intelblocks/gpio.h> #include <intelblocks/gpio.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <arch/acpi.h> #include <arch/acpi.h>
#include <assert.h>
#include <cbmem.h> #include <cbmem.h>
#include <console/uart.h> #include <console/uart.h>
#include <device/device.h> #include <device/device.h>

View File

@ -16,7 +16,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <intelblocks/gpio.h> #include <intelblocks/gpio.h>
#include <intelblocks/pcr.h> #include <intelblocks/pcr.h>
#include <soc/pcr.h> #include <soc/pcr.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <chip.h> #include <chip.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cbmem.h> #include <cbmem.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <intelblocks/gpio.h> #include <intelblocks/gpio.h>

View File

@ -16,7 +16,6 @@
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <assert.h>
#include <bootstate.h> #include <bootstate.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci_ids.h> #include <device/pci_ids.h>

View File

@ -15,7 +15,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <arch/cpu.h> #include <arch/cpu.h>
#include <bootstate.h> #include <bootstate.h>
#include <console/console.h> #include <console/console.h>

View File

@ -14,7 +14,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <intelblocks/gpio.h> #include <intelblocks/gpio.h>
#include <intelblocks/pcr.h> #include <intelblocks/pcr.h>
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>

View File

@ -16,7 +16,6 @@
#ifndef SOC_MEDIATEK_RTC_COMMON_H #ifndef SOC_MEDIATEK_RTC_COMMON_H
#define SOC_MEDIATEK_RTC_COMMON_H #define SOC_MEDIATEK_RTC_COMMON_H
#include <assert.h>
#include <bcd.h> #include <bcd.h>
#include <console/console.h> #include <console/console.h>
#include <rtc.h> #include <rtc.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <soc/pmic_wrap.h> #include <soc/pmic_wrap.h>
#include <timer.h> #include <timer.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <stdlib.h> #include <stdlib.h>
#include <soc/addressmap.h> #include <soc/addressmap.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <boardid.h> #include <boardid.h>
#include <console/console.h> #include <console/console.h>
#include <soc/addressmap.h> #include <soc/addressmap.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h> #include <delay.h>
#include <soc/infracfg.h> #include <soc/infracfg.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <soc/pmic_wrap.h> #include <soc/pmic_wrap.h>
#include <soc/mt6358.h> #include <soc/mt6358.h>

View File

@ -29,7 +29,6 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/i2c_simple.h> #include <device/i2c_simple.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -27,7 +27,6 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/i2c_simple.h> #include <device/i2c_simple.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h> #include <delay.h>
#include <device/device.h> #include <device/device.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <soc/addressmap.h> #include <soc/addressmap.h>
#include <soc/grf.h> #include <soc/grf.h>
#include <soc/soc.h> #include <soc/soc.h>

View File

@ -20,7 +20,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h> #include <delay.h>
#include <edid.h> #include <edid.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <soc/clock.h> #include <soc/clock.h>
#include <soc/grf.h> #include <soc/grf.h>
#include <soc/pmu.h> #include <soc/pmu.h>

View File

@ -15,7 +15,6 @@
*/ */
#include <arm_tf.h> #include <arm_tf.h>
#include <assert.h>
#include <cbmem.h> #include <cbmem.h>
#include <soc/bl31_plat_params.h> #include <soc/bl31_plat_params.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <delay.h> #include <delay.h>
#include <device/device.h> #include <device/device.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <device/mmio.h> #include <device/mmio.h>
#include <assert.h>
#include <delay.h> #include <delay.h>
#include <soc/clock.h> #include <soc/clock.h>
#include <soc/grf.h> #include <soc/grf.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <boot_device.h> #include <boot_device.h>
#include <console/console.h> #include <console/console.h>
#include <soc/alternate_cbfs.h> #include <soc/alternate_cbfs.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <soc/gpio.h> #include <soc/gpio.h>
#include <soc/pinmux.h> #include <soc/pinmux.h>

View File

@ -14,7 +14,6 @@
*/ */
#include <arch/cache.h> #include <arch/cache.h>
#include <assert.h>
#include <boot_device.h> #include <boot_device.h>
#include <console/console.h> #include <console/console.h>
#include <soc/alternate_cbfs.h> #include <soc/alternate_cbfs.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <assert.h>
#include <soc/gpio.h> #include <soc/gpio.h>
#include <soc/pinmux.h> #include <soc/pinmux.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -17,7 +17,6 @@
#include <device/pnp.h> #include <device/pnp.h>
#include <console/console.h> #include <console/console.h>
#include <device/smbus.h> #include <device/smbus.h>
#include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <pc80/keyboard.h> #include <pc80/keyboard.h>

View File

@ -17,7 +17,9 @@
/* Pre-RAM driver for SMSC LPC47N227 Super I/O chip. */ /* Pre-RAM driver for SMSC LPC47N227 Super I/O chip. */
#include <arch/io.h> #include <arch/io.h>
#include <assert.h>
#include <device/pnp_ops.h> #include <device/pnp_ops.h>
#include "lpc47n227.h" #include "lpc47n227.h"
void pnp_enter_conf_state(pnp_devfn_t dev) void pnp_enter_conf_state(pnp_devfn_t dev)