Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2430785pxp; Mon, 7 Mar 2022 15:29:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyatQQUb5hX76M+3/302vg4DciNwN2Nwpnqskdql9K0MMGKIKZ3oA74k55Xee/gmxnjqOV/ X-Received: by 2002:a17:903:2341:b0:150:2371:ee59 with SMTP id c1-20020a170903234100b001502371ee59mr14620711plh.57.1646695750532; Mon, 07 Mar 2022 15:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646695750; cv=none; d=google.com; s=arc-20160816; b=rRuXL+l2Ydx5T7yYL16mQ2E+SfsJB9y3JyznOPtOVsqFz6nQhgiRq2xvF1tn8MWvCV 0Ph9HTO0i0dv7TC6UIAxyoeIQn6V3or98WuxHKQTtnohrSRij82W0nO71ZDcUUsxY+Q5 03cz9f1mheRtwQPSE5YsHTZkgaSgjHRkpmZPmggE+QHyB4kTQEaY7l8P83gmaDRCG3kU nAgs9+OqjQW0l+afTAc3txwvMfEcGm2kC8FK0/xwY6D598N8OGKXZYibjDsd1xnq7lzj 0S2gKLbrZ+g0xUzS+b0jO7aPNsm/3Afy1LJCmySdSegcmxR9QJda122OJ/G21ggh66H/ zUog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9tM1IcUHnS8qh7d8odUKJS/jksWImABpShrJtrAv/fU=; b=uZkLOp7PnkUMHXM7B9+NnVqumitlpCet5h+HbWTPiQyG493wiM42WQf9xAlJaho1gv nnzmrHszXX76Ne89tOjAZrWsBKXG3ZsrPVFZbto52pEChZpf0gI6UyTQRGxnDITZuKK4 /XQz5OXTHjKI/uchGZG+DpOgPLq+KMMcp1bmbSiu4+Sxn1muR1AH36OUbLrEcA5RGj1f 1McgwFICPfVQ7ujeozu9zglb84HTTkpqbWcz9OER0cKOU/EHSx939V9ND7ZLBvFfJ/iI y7xLQ/L/cztuxD7smEamddw65R3EdtOHuV5ERTGObrZQqg1X4LDjKCpIsBlwXjFVLpMP 4VKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nl0IUzM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk7-20020a17090b33c700b001bd14e03073si609508pjb.75.2022.03.07.15.28.54; Mon, 07 Mar 2022 15:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nl0IUzM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242373AbiCGUw2 (ORCPT + 99 others); Mon, 7 Mar 2022 15:52:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233015AbiCGUw0 (ORCPT ); Mon, 7 Mar 2022 15:52:26 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F60A29CA1; Mon, 7 Mar 2022 12:51:30 -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=9tM1IcUHnS8qh7d8odUKJS/jksWImABpShrJtrAv/fU=; b=nl0IUzM8m9zG2uM2Bg1l50f93u KdNLWT3fvZCaIQHByKLJO5y2Buzwqj8Unp7PsxqY+A/7hfqDwG1abfy6lpWiWax7EH6HCkI8Rifpf pTbTkH/N4loW4QOk09E5UVOaVV6Zy3Hp9/YBxSjW6rCbb1+zFcI+jldU/JHP/KL8JrgEzuDHfLFEQ PEPholr+lgZBFTNDokot78d3MP0pRcaOE3Qv3H2xjgpOmgwESq5DoseTRGpfnpAB8MMHy3zBC+HK+ PH2a7IlVhUJDYCHvL/J7yHfRuTSvMcXAOMxYUHrkNM2Z35el1UXIQ2mj8tv/06ctcHAD1H+MFX325 t9kuHWtg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRKK7-00FXcm-Nt; Mon, 07 Mar 2022 20:51:20 +0000 Message-ID: Date: Mon, 7 Mar 2022 12:51:13 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [next] mips-mt.c:233:19: error: conflicting types for 'mt_init' Content-Language: en-US To: Liam Howlett Cc: Naresh Kamboju , "linux-mips@vger.kernel.org" , open list , Linux-Next Mailing List , Tiezhu Yang , Thomas Bogendoerfer , Kees Cook , Juxin Gao , Xuefeng Li , Stephen Rothwell , "lkft-triage@lists.linaro.org" , Matthew Wilcox References: <4c8f31d0-d51c-bb8c-acae-da1f1b1ada51@infradead.org> <20220307191537.jz6rho2vikdybpam@revolver> From: Randy Dunlap In-Reply-To: <20220307191537.jz6rho2vikdybpam@revolver> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/7/22 11:15, Liam Howlett wrote: > Hello Randy, > > I did address this when it occurred on the 24th [1]. I had looked at > this and was thinking I would rename the maple tree function, but > Matthew suggested renaming the mips function instead. I looked into the > conflict and the arch/mips/kernel/mips-mt.c uses the mips_ prefix for > almost all of the functions. So I generated a patch on my tree for > next-20220225 which fixes the issue by renaming the mips side of things. > Please see 51e773764d11 for the very small rename. > > [1] > https://lore.kernel.org/linux-mm/202202241817.MXoE0NcM-lkp@intel.com/ > > Thanks, > Liam OK, sounds good. Thanks. > > * Randy Dunlap [220305 22:50]: >> 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 -- ~Randy