]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
hw/intc/exynos4210_gic: Constify array of combiner interrupts
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 13 Jun 2017 13:56:58 +0000 (14:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 Jun 2017 13:56:58 +0000 (14:56 +0100)
The static array of interrupt combiner mappings is not modified so it
can be made const for code safeness.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/exynos4210_gic.c

index 62acede72f62505414a440fee0f5ac1c70c7148a..b6b00a4f5891a0c3172367f581341fb38b274e2f 100644 (file)
@@ -116,7 +116,7 @@ enum ExtInt {
  * which is INTG16 in Internal Interrupt Combiner.
  */
 
-static uint32_t
+static const uint32_t
 combiner_grp_to_gic_id[64-EXYNOS4210_MAX_EXT_COMBINER_OUT_IRQ][8] = {
     /* int combiner groups 16-19 */
     { }, { }, { }, { },