Skip to contentSkip to conversation

Two Octeon compile errors with 2.6.32-rc1

PATCH In review David Daney 2 participants 4 messages Oct 1, 2009 – Oct 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Two Octeon compile errors with 2.6.32-rc1

Ralf,

There are a couple of problems I found with 2.6.32-rc1.

Two trivial patches to follow.

David Daney

#1 lore raw

PATCH 1/2 MIPS: Octeon: Fix compile error in arch/mips/cavium-octeon/smp.c

---
 arch/mips/cavium-octeon/smp.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/mips/cavium-octeon/smp.c +3 -2
index 32d51a3..c198efd 100644
@@ -65,11 +65,12 @@ void octeon_send_ipi_single(int cpu, unsigned int action)
 	cvmx_write_csr(CVMX_CIU_MBOX_SETX(coreid), action);
 }
 
-static inline void octeon_send_ipi_mask(cpumask_t mask, unsigned int action)
+static inline void octeon_send_ipi_mask(const struct cpumask *mask,
+					unsigned int action)
 {
 	unsigned int i;
 
-	for_each_cpu_mask(i, mask)
+	for_each_cpu_mask(i, *mask)
 		octeon_send_ipi_single(i, action);
 }
 
Signature · 1 line
1.6.0.6
#2 lore raw

PATCH 2/2 MIPS: Octeon: Fix compile error in drivers/staging/octeon/ethernet-mdio.c

In reply to David Daney
---
 drivers/staging/octeon/ethernet-mdio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/octeon/ethernet-mdio.c +1 -1
index 42230e6..31a58e5 100644
@@ -170,7 +170,7 @@ static u32 cvm_oct_get_link(struct net_device *dev)
 	return ret;
 }
 
-struct const ethtool_ops cvm_oct_ethtool_ops = {
+const struct ethtool_ops cvm_oct_ethtool_ops = {
 	.get_drvinfo = cvm_oct_get_drvinfo,
 	.get_settings = cvm_oct_get_settings,
 	.set_settings = cvm_oct_set_settings,
Signature · 1 line
1.6.0.6