Emit warnings when using deprecated GIC init
authorDan Handley <dan.handley@arm.com>
Thu, 1 Mar 2018 16:00:15 +0000 (16:00 +0000)
committerDan Handley <dan.handley@arm.com>
Thu, 1 Mar 2018 16:14:29 +0000 (16:14 +0000)
commitdcf01a0a8dddde79b8315c30395f40f9afa85af4
tree11d0aff2c1a91dd0e4bb1b0f8711fe78c502b6a5
parentbc1a03c7a6db40a1ab86192675aa47d17afb7f4c
Emit warnings when using deprecated GIC init

Emit runtime warnings when intializing the GIC drivers using the
deprecated method of defining integer interrupt arrays in the GIC driver
data structures; interrupt_prop_t arrays should be used instead. This
helps platforms detect that they have migration work to do. Previously,
no warning was emitted in this case. This affects both the GICv2 and GICv3
drivers.

Also use the __deprecated attribute to emit a build time warning if these
deprecated fields are used. These warnings are suppressed in the GIC
driver compatibility functions but will be visible if platforms use them.

Change-Id: I6b6b8f6c3b4920c448b6dcb82fc18442cfdf6c7a
Signed-off-by: Dan Handley <dan.handley@arm.com>
drivers/arm/gic/v2/gicv2_main.c
drivers/arm/gic/v3/gicv3_main.c
include/drivers/arm/gicv2.h
include/drivers/arm/gicv3.h