Skip to contentSkip to conversation

linux-next: build failure after merge of the mips tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Mar 27, 2023

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

Hi all,

After merging the mips tree, today's linux-next build (mips cavium_octeon_defconfig) failed like this:

arch/mips/cavium-octeon/octeon-irq.c:2893:35: error: assignment to ‘u64’ {aka ‘long long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]

(reported here: https://linux.kernelci.org/build/id/6420fc4409ffd05fb69c951a/logs/)

Caused by commit

ed6a0b6e9fd7 ("MIPS: octeon: Use of_address_to_resource()")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the mips tree, today's linux-next build (mips cavium_octeon_defconfig) failed like this:

Quoted 7 lines

arch/mips/cavium-octeon/octeon-irq.c:2893:35: error: assignment to ‘u64’ {aka ‘long long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]

(reported here: https://linux.kernelci.org/build/id/6420fc4409ffd05fb69c951a/logs/)

Caused by commit

ed6a0b6e9fd7 ("MIPS: octeon: Use of_address_to_resource()")

I've added below patch to fix the problem.

Thomas.

commit 101f26c72825c5dba1dfe826e4202a9a04b435c6

Author: Thomas Bogendoerfer <[email protected]>
Date:   Mon Mar 27 10:35:22 2023 +0200

MIPS: octeon: Fix compile error

Commit ed6a0b6e9fd7 ("MIPS: octeon: Use of_address_to_resource()") lost a cast, which causes a compile error.

Fixes ed6a0b6e9fd7 ("MIPS: octeon: Use of_address_to_resource()")
arch/mips/cavium-octeon/octeon-irq.c +1 -1
index 064e2409377a..8425a6b38aa2 100644
@@ -2890,7 +2890,7 @@ static int __init octeon_irq_init_ciu3(struct device_node *ciu_node,
 	if (WARN_ON(ret))
 		return ret;
 
-	ciu3_info->ciu3_addr = base_addr = phys_to_virt(res.start);
+	ciu3_info->ciu3_addr = base_addr = (u64)phys_to_virt(res.start);
 	ciu3_info->node = node;
 
 	consts.u64 = cvmx_read_csr(base_addr + CIU3_CONST);
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]