diff mbox series

[05/10] sparse: various SPIRA structures, declare them.

Message ID 20190718065117.16923-6-stewart@linux.ibm.com
State Accepted
Headers show
Series Misc sparse fixes | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (3a6fdede6ce117facec0108afe716cf5d0472c3f)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith July 18, 2019, 6:51 a.m. UTC
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 <stewart@linux.ibm.com>
---
 hdata/spira.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/hdata/spira.c b/hdata/spira.c
index a23fd17c5245..945cc7e8c50f 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),