From 963419a312e283c28f8f788303a1ddceb1e20a05 Mon Sep 17 00:00:00 2001 From: Daniel Kurtz Date: Tue, 17 Apr 2018 17:45:01 -0600 Subject: soc/amd/stoneyridge: Static constify smi_sources smi_sources is a file local array of constants. Change-Id: I431f181449a591ccaf8395f01a84c8e006a29b52 Signed-off-by: Daniel Kurtz Reviewed-on: https://review.coreboot.org/25814 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/soc/amd/stoneyridge/smihandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/stoneyridge/smihandler.c') diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c index 2830d18905..606378966e 100644 --- a/src/soc/amd/stoneyridge/smihandler.c +++ b/src/soc/amd/stoneyridge/smihandler.c @@ -186,7 +186,7 @@ int southbridge_io_trap_handler(int smif) * Table of functions supported in the SMI handler. Note that SMI source setup * in southbridge.c is unrelated to this list. */ -struct smi_sources_t smi_sources[] = { +static const struct smi_sources_t smi_sources[] = { { .type = SMITYPE_SMI_CMD_PORT, .handler = sb_apmc_smi_handler }, { .type = SMITYPE_SLP_TYP, .handler = sb_slp_typ_handler}, }; -- cgit v1.2.3