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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81B4FC433F5 for ; Thu, 24 Feb 2022 10:14:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9837A8D0002; Thu, 24 Feb 2022 05:14:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 933558D0001; Thu, 24 Feb 2022 05:14:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8237D8D0002; Thu, 24 Feb 2022 05:14:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0109.hostedemail.com [216.40.44.109]) by kanga.kvack.org (Postfix) with ESMTP id 743628D0001 for ; Thu, 24 Feb 2022 05:14:39 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 19EE79F857 for ; Thu, 24 Feb 2022 10:14:39 +0000 (UTC) X-FDA: 79177264278.20.58DE775 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf28.hostedemail.com (Postfix) with ESMTP id 6CD47C000B for ; Thu, 24 Feb 2022 10:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645697662; x=1677233662; h=date:from:to:cc:subject:message-id:mime-version; bh=aXgiZIZbDmDtpVyFcNRXn0BwTAD64Cg00PCsDExK1P4=; b=Aru1CbT27sL6S2eUzHTInAvwR4T8nb6kNdjyRgQa4baNJNX9v7Cg93qG bw6gDZcBLFmy6XvX8XYvUXekkLYvIp+vjYgNFMa9NShgk4gdShh0q/H2i iI0xiXfl5LeGL4BPWoCQ6oK33ozM2VUxYyQZFFRqd6Lwqrhx2qRR4+x1+ yxtyVO3mvZYPXeQXb5XNbwmXqtpTVkctU6XaY8OWultoxmVEOazhDMY2X 4J6k8Nt8b2CKrvMFAYqcf3gYkgBk8r30hIl2y2Cy7GkxJwinougBM1Hil 2zM6vhOFkUKgZEJccXpeDQjEUafPZRSoO/8IIkOdrsheV/HM084/C5mwi w==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="252120190" X-IronPort-AV: E=Sophos;i="5.88,393,1635231600"; d="scan'208";a="252120190" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 02:14:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,393,1635231600"; d="scan'208";a="707402437" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 24 Feb 2022 02:14:19 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nNB8c-0002zJ-T7; Thu, 24 Feb 2022 10:14:18 +0000 Date: Thu, 24 Feb 2022 18:13:16 +0800 From: kernel test robot To: "Liam R. Howlett" Cc: kbuild-all@lists.01.org, Linux Memory Management List , "Matthew Wilcox (Oracle)" Subject: [linux-next:master 6791/7915] arch/mips/kernel/mips-mt.c:233:19: error: conflicting types for 'mt_init'; have 'int(void)' Message-ID: <202202241817.MXoE0NcM-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 6CD47C000B X-Stat-Signature: pgcipxjsz8u9gksyxzgwy7qqmje6kpuu Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Aru1CbT2; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1645697662-649623 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d4a0ae62a277377de396850ed4b709b6bd9b7326 commit: 37f4270132af31dd08a209799d420f72bfddb49c [6791/7915] mm: Start tracking VMAs with maple tree config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220224/202202241817.MXoE0NcM-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=37f4270132af31dd08a209799d420f72bfddb49c git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 37f4270132af31dd08a209799d420f72bfddb49c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/mips/kernel/mips-mt.c:50:6: warning: no previous prototype for 'mips_mt_regdump' [-Wmissing-prototypes] 50 | void mips_mt_regdump(unsigned long mvpctl) | ^~~~~~~~~~~~~~~ arch/mips/kernel/mips-mt.c:159:6: warning: no previous prototype for 'mips_mt_set_cpuoptions' [-Wmissing-prototypes] 159 | void mips_mt_set_cpuoptions(void) | ^~~~~~~~~~~~~~~~~~~~~~ >> arch/mips/kernel/mips-mt.c:233:19: error: conflicting types for 'mt_init'; have 'int(void)' 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' with type 'void(struct maple_tree *)' 589 | static inline void mt_init(struct maple_tree *mt) | ^~~~~~~ vim +233 arch/mips/kernel/mips-mt.c 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 232 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 @233 static int __init mt_init(void) 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 234 { 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 235 struct class *mtc; 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 236 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 237 mtc = class_create(THIS_MODULE, "mt"); 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 238 if (IS_ERR(mtc)) 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 239 return PTR_ERR(mtc); 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 240 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 241 mt_class = mtc; 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 242 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 243 return 0; 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 244 } 27a3bbaf4b1e23 Ralf Baechle 2007-02-07 245 :::::: The code at line 233 was first introduced by commit :::::: 27a3bbaf4b1e23a3afbae4d9f72b51a36859f74a [MIPS] VPE: Sprinkle device model code into code to make udev happier. :::::: TO: Ralf Baechle :::::: CC: Ralf Baechle --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org