coreboot/src
Edward O'Callaghan fb17a7de89 vendorcode/amd/agesa/f16kb/*/PcieComplexDataKB.c: Implicit truncation
Clang complains:
 "implicit truncation from 'int' to bitfield changes value from -1 to 15"

-1 is define in 'c11std 6.3.1.3p2' as:

 [Signed and unsigned integers] Otherwise, if the new type is unsigned,
 the value is converted by repeatedly adding or subtracting one
 more than the maximum value that can be represented in the new type
 until the value is in the range of the new type.60)
 FOOTNOTE.60 The rules describe arithmetic on the mathem...

This is "0xFF" on Mullins and "0xF" in this case. Clang seems to
complain about this two's complement in a bitfield as being truncated.
As the bitfield is 4 bits wide, (a maximum of 15 decimal), we set the
field as '0x0F'. Ideally this field /should/ be set to 'UINT8_MAX' however
we still have silly truncation warnings.

Change-Id: Ib7476d453ffd932bb911e638117cf9f56f71f269
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7719
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Tested-by: build bot (Jenkins)
2014-12-10 08:09:26 +01:00
..
arch x86: provide symmetry between arm for cache_sync_instructions() 2014-12-09 18:40:50 +01:00
console ipq8064: prepare UART driver for use in coreboot 2014-12-05 20:22:47 +01:00
cpu vendorcode/amd/agesa/fam10: Build as a static library 2014-12-08 06:24:18 +01:00
device ddr3: Plumber DIMM type to parsed structure. 2014-12-07 15:18:41 +01:00
drivers vboot: allow for non-memory-mapped VBOOT regions 2014-12-09 18:41:00 +01:00
ec spi: Factor EC protocol details out of the SPI drivers. 2014-12-09 20:32:06 +01:00
include spi: Eliminate the spi_cs_activate and spi_cs_deactivate functions. 2014-12-09 20:32:18 +01:00
lib x86: provide symmetry between arm for cache_sync_instructions() 2014-12-09 18:40:50 +01:00
mainboard spi: Factor EC protocol details out of the SPI drivers. 2014-12-09 20:32:06 +01:00
northbridge northbridge/amd/gx2,lx: Treat MSR constant as unsigned long 2014-12-10 07:06:39 +01:00
soc spi: Eliminate the spi_cs_activate and spi_cs_deactivate functions. 2014-12-09 20:32:18 +01:00
southbridge spi: Eliminate the spi_cs_activate and spi_cs_deactivate functions. 2014-12-09 20:32:18 +01:00
superio Mark non-executable files non-executable 2014-12-01 17:33:07 +01:00
vendorcode vendorcode/amd/agesa/f16kb/*/PcieComplexDataKB.c: Implicit truncation 2014-12-10 08:09:26 +01:00
Kconfig Kconfig: Remove ACPI_SSDTX_NUM. 2014-12-07 21:06:34 +01:00