From 64b30ec54bf7d225f2f0e87d0c075141e4e04ddd Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 18 Jul 2019 16:51:12 +1000 Subject: sparse: various SPIRA structures, declare them. hdata/spira.c:42:49: warning: symbol 'proc_init_data' was not declared. Should it be static? hdata/spira.c:51:49: warning: symbol 'cpu_ctl_spat_area' was not declared. Should it be static? hdata/spira.c:54:49: warning: symbol 'cpu_ctl_hsr_area' was not declared. Should it be static? hdata/spira.c:56:53: warning: symbol 'cpu_ctl_init_data' was not declared. Should it be static? hdata/spira.c:92:48: warning: symbol 'init_mdst_table' was not declared. Should it be static? Signed-off-by: Stewart Smith Signed-off-by: Oliver O'Halloran --- hdata/spira.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hdata') diff --git a/hdata/spira.c b/hdata/spira.c index a23fd17..945cc7e 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -39,6 +39,8 @@ static int cpu_type; +extern struct proc_init_data proc_init_data; + __section(".procin.data") struct proc_init_data proc_init_data = { .hdr = HDIF_SIMPLE_HDR("PROCIN", 1, struct proc_init_data), .regs_ptr = HDIF_IDATA_PTR(offsetof(struct proc_init_data, regs), 0x10), @@ -48,11 +50,14 @@ __section(".procin.data") struct proc_init_data proc_init_data = { }, }; +extern struct sp_addr_table cpu_ctl_spat_area; __section(".cpuctrl.data") struct sp_addr_table cpu_ctl_spat_area; __section(".cpuctrl.data") struct sp_attn_area cpu_ctl_sp_attn_area1; __section(".cpuctrl.data") struct sp_attn_area cpu_ctl_sp_attn_area2; +extern struct hsr_data_area cpu_ctl_hsr_area; __section(".cpuctrl.data") struct hsr_data_area cpu_ctl_hsr_area; +extern struct cpu_ctl_init_data cpu_ctl_init_data; __section(".cpuctrl.data") struct cpu_ctl_init_data cpu_ctl_init_data = { .hdr = HDIF_SIMPLE_HDR(CPU_CTL_HDIF_SIG, 2, struct cpu_ctl_init_data), .cpu_ctl = HDIF_IDATA_PTR(offsetof(struct cpu_ctl_init_data, cpu_ctl_lt), sizeof(struct cpu_ctl_legacy_table)), @@ -89,6 +94,8 @@ __section(".cpuctrl.data") struct cpu_ctl_init_data cpu_ctl_init_data = { * addresses, we set the top bit to 1 on physical addresses */ +extern struct dump_mdst_table init_mdst_table[]; + __section(".mdst.data") struct dump_mdst_table init_mdst_table[2] = { { .addr = CPU_TO_BE64(INMEM_CON_START | HRMOR_BIT), -- cgit v1.1