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 7BDF9C433F5 for ; Sun, 6 Mar 2022 03:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232334AbiCFDus (ORCPT ); Sat, 5 Mar 2022 22:50:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231794AbiCFDur (ORCPT ); Sat, 5 Mar 2022 22:50:47 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF0F649F29; Sat, 5 Mar 2022 19:49:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=0kT2cAjbEikOYDhh0GLJi6kOamdwm6etWf1GvgjFBIY=; b=r3FwRsNUzI1YEK82/E9MsQl1si sc04IEgPIznHECsCjoSW/VcEZnauiagj80/jGUUTH3/tThQ+Ccxl6cmltAP+fkHWxDHn71/rj8vwN yUi/G55u3ldPvRD8rxjOpFXfK3XM9owhyrh2aZ3A8U9XBOCTvyoO1kFf3/TDoH+16Zhtq9sxUnhOX WYho+N7DMhkIzqdasebAbH2Hx38E/X+aXMve606mHva4ipRtS5OfgHXSneixAUA3IkVeaEOvbk5/N jHeYYMwYF8WNblgiW59xafxCLw5OiIvWYQBh3iGTJxjVFxTpnpnL3Fjsfn8HCAm389Rk/paCUm2Cc k3py8osg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQhtz-00E537-9J; Sun, 06 Mar 2022 03:49:47 +0000 Message-ID: <4c8f31d0-d51c-bb8c-acae-da1f1b1ada51@infradead.org> Date: Sat, 5 Mar 2022 19:49:40 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [next] mips-mt.c:233:19: error: conflicting types for 'mt_init' Content-Language: en-US To: Naresh Kamboju , linux-mips@vger.kernel.org, open list , Linux-Next Mailing List , Liam Howlett Cc: Tiezhu Yang , Thomas Bogendoerfer , Kees Cook , Juxin Gao , Xuefeng Li , Stephen Rothwell , lkft-triage@lists.linaro.org References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liam, Would you consider renaming maple tree's "mt_init()" function to maple_tree_init() or mtree_init() or something that does not conflict with the mt_init() function in arch/mips/ so that these build errors don't happen? thanks. On 2/24/22 23:09, Naresh Kamboju wrote: > [Please ignore this email if it is already reported] > > Linux next-20220224 arch mips build errors / warnings noticed [1]. > > Build configs: > - mips-gcc-8-malta_defconfig > - mips-gcc-10-malta_defconfig > - mips-gcc-8-defconfig > - mips-gcc-10-defconfig > > metadata: > git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > git_sha: 44948bd49d878dad6c9707e34f4a06df73c3a800 > git_short_log: 44948bd49d87 (\Add linux-next specific files for 20220224\) > kconfig: defconfig > target_arch: mips > toolchain: gcc-10 > > > Build errors / warnings: > > arch/mips/kernel/mips-mt.c:233:19: error: conflicting types for 'mt_init' > 233 | static int __init mt_init(void) > | ^~~~~~~ > In file included from include/linux/mm_types.h:12, > from include/linux/mmzone.h:21, > from include/linux/gfp.h:6, > from include/linux/radix-tree.h:12, > from include/linux/idr.h:15, > from include/linux/kernfs.h:12, > from include/linux/sysfs.h:16, > from include/linux/kobject.h:20, > from include/linux/energy_model.h:7, > from include/linux/device.h:16, > from arch/mips/kernel/mips-mt.c:7: > include/linux/maple_tree.h:589:20: note: previous definition of > 'mt_init' was here > 589 | static inline void mt_init(struct maple_tree *mt) > | ^~~~~~~ > make[3]: *** [scripts/Makefile.build:288: arch/mips/kernel/mips-mt.o] Error 1 > > Reported-by: Linux Kernel Functional Testing > > Steps to reproduce: > ------------------ > # To install tuxmake on your system globally: > # sudo pip3 install -U tuxmake > > tuxmake --runtime podman --target-arch mips --toolchain gcc-10 > --kconfig defconfig > > -- > > [1] https://builds.tuxbuild.com/25aFF2X7uoyebURaYzNHW9FVEmN/ -- ~Randy