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

Stewart Smith stewart at linux.ibm.com
Thu Jul 18 16:51:12 AEST 2019


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 at linux.ibm.com>
---
 hdata/spira.c | 7 +++++++
 1 file changed, 7 insertions(+)

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),
-- 
2.21.0



More information about the Skiboot mailing list