From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38587C761AF for ; Mon, 27 Mar 2023 09:31:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbjC0Jbx (ORCPT ); Mon, 27 Mar 2023 05:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233225AbjC0Jbt (ORCPT ); Mon, 27 Mar 2023 05:31:49 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6503849E1; Mon, 27 Mar 2023 02:31:45 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1pgiQ7-0008H4-00; Mon, 27 Mar 2023 10:41:39 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id D8533C1B91; Mon, 27 Mar 2023 10:41:08 +0200 (CEST) Date: Mon, 27 Mar 2023 10:41:08 +0200 From: Thomas Bogendoerfer To: Stephen Rothwell Cc: Rob Herring , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the mips tree Message-ID: <20230327084108.GA6182@alpha.franken.de> References: <20230327161217.7cc4b439@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230327161217.7cc4b439@canb.auug.org.au> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 04:12:17PM +1100, Stephen Rothwell wrote: > 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()") I've added below patch to fix the problem. Thomas. commit 101f26c72825c5dba1dfe826e4202a9a04b435c6 Author: Thomas Bogendoerfer 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()") Signed-off-by: Thomas Bogendoerfer diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon/octeon-irq.c index 064e2409377a..8425a6b38aa2 100644 --- a/arch/mips/cavium-octeon/octeon-irq.c +++ b/arch/mips/cavium-octeon/octeon-irq.c @@ -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); -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]