coreboot/src/device
Julius Werner 3e034b6e9a Change all assert(0) to BUG()
I would like to make assertions evaluate at compile time where possible,
but sometimes people used a literal assert(0) to force an assertion in a
certain code path. We already have BUG() for that so let's just replace
those instances with that.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I674e5f8ec7f5fe8b92b1c7c95d9f9202d422ce32
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44047
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2020-08-03 05:15:15 +00:00
..
dram src: Change BOOL CONFIG_ to CONFIG() in comments & strings 2020-07-26 21:20:30 +00:00
oprom src: Remove whitespace between 'sizeof' and '(' 2020-07-26 21:18:16 +00:00
azalia_device.c src: Use pci_dev_ops_pci where applicable 2020-06-06 20:36:51 +00:00
cardbus_device.c src: Never set ISA Enable on PCI bridges 2020-07-28 10:54:02 +00:00
cpu_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
device.c treewide: Replace CONFIG(ARCH_xx) tests 2020-06-17 21:13:09 +00:00
device_const.c Change all assert(0) to BUG() 2020-08-03 05:15:15 +00:00
device_util.c device_util,agesa/family14: Do not consider unassigned resources in find_pci_tolm() 2020-05-26 15:15:05 +00:00
hypertransport.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c_bus.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
Makefile.inc device/xhci: Add xHCI utility to enumerate capabilities 2020-06-10 18:50:36 +00:00
mmio.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_class.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_device.c device/pci_device.c: Do not complain about disabled devices 2020-07-24 23:12:07 +00:00
pci_early.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_ops.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_rom.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pciexp_device.c Revert "Revert "pciexp_device: Add option to allocate prefetch memory above 4G boundary"" 2020-05-28 09:42:46 +00:00
pcix_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pnp_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
resource_allocator_common.c device: Move resource allocation into a separate compilation unit 2020-05-26 15:15:21 +00:00
resource_allocator_v3.c device/resource_allocator_v3: Do not set IORESOURCE_ASSIGNED for size 0 resource 2020-05-26 15:15:54 +00:00
resource_allocator_v4.c device/resource_allocator_v4: Improve the logging in resource allocator 2020-05-28 09:43:44 +00:00
root_device.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smbus_ops.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
software_i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
xhci.c device/xhci: Add helper method to iterate over xhci_supported_protocl 2020-07-12 17:01:24 +00:00