octeon_edac: fix broken build
Subsystems (2)
PATCH RESEND 1/1 octeon_edac: fix broken build
Commit debe6a623d3c ("MIPS: OCTEON: Update octeon-model.h code for new SoCs.") renamed some SoC model helper functions, but forgot to update the EDAC drivers resulting in build failures. Fix that.
--- drivers/edac/octeon_edac-l2c.c | 2 +- drivers/edac/octeon_edac-lmc.c | 2 +- drivers/edac/octeon_edac-pc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/edac/octeon_edac-l2c.c +1 -1
@@ -151,7 +151,7 @@ static int octeon_l2c_probe(struct platform_device *pdev) l2c->ctl_name ="octeon_l2c_err" ; -if (OCTEON_IS_MODEL (OCTEON_FAM_1_PLUS )) { +if (OCTEON_IS_OCTEON1PLUS ()) {union cvmx_l2t_err l2t_err;union cvmx_l2d_err l2d_err;
drivers/edac/octeon_edac-lmc.c +1 -1
@@ -234,7 +234,7 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev) layers[0 ].size =1 ; layers[0 ].is_virt_csrow = false; -if (OCTEON_IS_MODEL (OCTEON_FAM_1_PLUS )) { +if (OCTEON_IS_OCTEON1PLUS ()) {union cvmx_lmcx_mem_cfg0 cfg0; cfg0.u64 =cvmx_read_csr (CVMX_LMCX_MEM_CFG0 (0 ));
drivers/edac/octeon_edac-pc.c +1 -1
@@ -73,7 +73,7 @@ static int co_cache_error_event(struct notifier_block *this,edac_device_handle_ce (p->ed, cpu,0 ,"dcache" );/* Clear the error indication */ -if (OCTEON_IS_MODEL (OCTEON_FAM_2 )) +if (OCTEON_IS_OCTEON2 ())write_octeon_c0_dcacheerr (1 );else write_octeon_c0_dcacheerr (0 );
Signature · 1 line
2.4.3
Borislav Petkov
maintainerQuoted 43 lines · Aaro Koskinen
Commit
debe6a623d3c("MIPS: OCTEON: Updateocteon-model.hcode for new SoCs.") renamed some SoC model helper functions, but forgot to update the EDAC drivers resulting in build failures. Fix that.Cc [email protected] # v4.0+Signed-off-by Aaro Koskinen <[email protected]>--- drivers/edac/octeon_edac-l2c.c | 2 +- drivers/edac/octeon_edac-lmc.c | 2 +- drivers/edac/octeon_edac-pc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/edac/octeon_edac-l2c.c +1
-1@@ -151,7 +151,7 @@ static int octeon_l2c_probe(struct platform_device *pdev) l2c->ctl_name ="octeon_l2c_err" ; -if (OCTEON_IS_MODEL (OCTEON_FAM_1_PLUS )) { +if (OCTEON_IS_OCTEON1PLUS ()) {union cvmx_l2t_err l2t_err;union cvmx_l2d_err l2d_err;drivers/edac/octeon_edac-lmc.c +1
-1@@ -234,7 +234,7 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev) layers[0 ].size =1 ; layers[0 ].is_virt_csrow = false; -if (OCTEON_IS_MODEL (OCTEON_FAM_1_PLUS )) { +if (OCTEON_IS_OCTEON1PLUS ()) {union cvmx_lmcx_mem_cfg0 cfg0; cfg0.u64 =cvmx_read_csr (CVMX_LMCX_MEM_CFG0 (0 ));drivers/edac/octeon_edac-pc.c +0
-0
drivers/edac/octeon_edac-pc.c static int co_cache_error_event(struct notifier_block *this, · line 79
Quoted 8 lines
drivers/edac/octeon_edac-pc.c +1
-1@@ -73,7 +73,7 @@ static int co_cache_error_event(struct notifier_block *this,edac_device_handle_ce (p->ed, cpu,0 ,"dcache" );/* Clear the error indication */ -if (OCTEON_IS_MODEL (OCTEON_FAM_2 )) +if (OCTEON_IS_OCTEON2 ())write_octeon_c0_dcacheerr (1 );else write_octeon_c0_dcacheerr (0 );
I'm still waiting on an ACK for that.
Ralf, David? What's up?
I started looking and then got lost in that macro "fun" in arch/mips/include/asm/octeon/octeon-model.h
Signature · 5 lines
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--David Daney
Acked-byQuoted 46 lines · Borislav Petkov
Quoted 45 lines · Aaro Koskinen
Commit
debe6a623d3c("MIPS: OCTEON: Updateocteon-model.hcode for new SoCs.") renamed some SoC model helper functions, but forgot to update the EDAC drivers resulting in build failures. Fix that.Cc [email protected] # v4.0+Signed-off-by Aaro Koskinen <[email protected]>--- drivers/edac/octeon_edac-l2c.c | 2 +- drivers/edac/octeon_edac-lmc.c | 2 +- drivers/edac/octeon_edac-pc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/edac/octeon_edac-l2c.c +1
-1@@ -151,7 +151,7 @@ static int octeon_l2c_probe(struct platform_device *pdev) l2c->ctl_name ="octeon_l2c_err" ; -if (OCTEON_IS_MODEL (OCTEON_FAM_1_PLUS )) { +if (OCTEON_IS_OCTEON1PLUS ()) {union cvmx_l2t_err l2t_err;union cvmx_l2d_err l2d_err;drivers/edac/octeon_edac-lmc.c +1
-1@@ -234,7 +234,7 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev) layers[0 ].size =1 ; layers[0 ].is_virt_csrow = false; -if (OCTEON_IS_MODEL (OCTEON_FAM_1_PLUS )) { +if (OCTEON_IS_OCTEON1PLUS ()) {union cvmx_lmcx_mem_cfg0 cfg0; cfg0.u64 =cvmx_read_csr (CVMX_LMCX_MEM_CFG0 (0 ));drivers/edac/octeon_edac-pc.c +0
-0@@ -73,7 +73,7 @@ static int co_cache_error_event(struct notifier_block *this,edac_device_handle_ce (p->ed, cpu,0 ,"dcache" );
Quoted 8 lines
drivers/edac/octeon_edac-pc.c static int co_cache_error_event(struct notifier_block *this, · line 79
Quoted 6 lines
drivers/edac/octeon_edac-pc.c +1
-1/* Clear the error indication */ -if (OCTEON_IS_MODEL (OCTEON_FAM_2 )) +if (OCTEON_IS_OCTEON2 ())write_octeon_c0_dcacheerr (1 );else write_octeon_c0_dcacheerr (0 );I'm still waiting on an ACK for that.
It seems obvious and corrects a build issue, so ...
Quoted 6 lines
Ralf, David? What's up?
I started looking and then got lost in that macro "fun" in
arch/mips/include/asm/octeon/octeon-model.h
Quoted 3 lines · David Daney
It seems obvious and corrects a build issue, so ...
Acked-by David Daney <[email protected]>
Thanks, applied.
Signature · 5 lines
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--