Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6653882rwr; Tue, 9 May 2023 19:27:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66x9RWthyFNEqhhJ5osVaUfosHaaooRuS1I9YhX6nqZkchZkjATsYSQ0ADk4QQhdGqjLL2 X-Received: by 2002:a17:90a:e645:b0:24e:3409:6112 with SMTP id ep5-20020a17090ae64500b0024e34096112mr16537042pjb.32.1683685661918; Tue, 09 May 2023 19:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683685661; cv=none; d=google.com; s=arc-20160816; b=y2+U5OwY5QmUM63p6w5EgKxXPVnhy8U6n4RKva6f6knT9yTBmwPeuuHydTFodfQ0Pv ua5fR9Y9WO6hRmx0Zt3zDKItgQ1ixdKzdbWzCD2S3KpztuJnCMb7j0ZnCBi0916p1f/L 6hQqtSiyu2pO12W59J+1UtT1ECPH8P3rUYN/g9EAcQpdRI4PVXBebr8OM7SaJuHu924P nTLqESq+QCcEDMBTigIh7JCbOk5WE7Ey0/Xxp5lweTxXw8PTgMb+0nyb7RbYd+s5ambs DAkv8W37eeehhFehpf0e88ii3Fi1GXiS0GichC5UvQMFs1AUWSXMwyenIsK4f+d6MZ7D 1fjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=GEG34Qp0lqAOluC2zUHhIaBIPADEJsDyiJxUwHUwcBQ=; b=XPEvQtv8Ltvv4tRsNfSVeNp51OiCBN+dwtPAjHxN7pRt0RNJ1762VrdnZk0/z081Pb yRpbyTqLVuSOm3Q/XdNWCOUsjW5wvdFgBo+S/A4k0qzYgiZr2JzGjj9PSI7mFNHF6gRH toB9jOwW8CfyT2wWLvsPlFnUaxzQ+9IQUJMFturA/CugWssZklNbeT8qepldHeFwHBDe HOMe/5P4xTLtLAaIN8COTzDY6Jw3WggGqe+mBBo+A3mnIQ/WxPgs7PRFAgLxyuqTkmsM ytP7kEgoM38vEWhToq3/JtfH8HY002uHS6M2pck9EYfqzE+apXGZ/ZsiraJFFuLx17db f8eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D8Xk1bBJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020a637059000000b0052c89d50011si3004186pgn.676.2023.05.09.19.27.28; Tue, 09 May 2023 19:27:41 -0700 (PDT) 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=@intel.com header.s=Intel header.b=D8Xk1bBJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbjEJCAL (ORCPT + 99 others); Tue, 9 May 2023 22:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjEJCAJ (ORCPT ); Tue, 9 May 2023 22:00:09 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD93E74 for ; Tue, 9 May 2023 19:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683684008; x=1715220008; h=date:from:to:cc:subject:message-id:mime-version; bh=B9ArjFq88tRK/W8TdAMdDGRhtdgpeucVRoEz9w5Qd0I=; b=D8Xk1bBJBBvZDCZx0Imr1KxAs1jZM1qRwp3Y20EuIB2kwgsnlH4Uu/X4 OyKQszTj4/I7GzIlkHyY6+CefZWfvCbMNYfT2iX9fgR7Otzdka9avJk/2 MFBVHx1yrzn59XcMq53nZyHI9dpekrmNnNHLL5KsvNa4jF8mjrkvRuRKO Vvd4CWTTM5pMVlJKSDJuSzsOrSyG7i7pkRV5zizzTCyRRebBGf6QlOXup UcQbu1tnl3aZZ+CzM9snFmLMkaqXc8MJX0iLVKSpnfFLHmAFCvXoIpwpM AOlAJfNA0RmDE4d7FSEYjtGr7W3zBYmE+ijPvThVjaZtJS8QRucuG0ktp Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="378200130" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="378200130" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 19:00:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="873410089" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="873410089" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 09 May 2023 19:00:06 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pwZ7d-0002mX-2X; Wed, 10 May 2023 02:00:05 +0000 Date: Wed, 10 May 2023 09:59:31 +0800 From: kernel test robot To: "Uladzislau Rezki (Sony)" Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, "Paul E. McKenney" , "Joel Fernandes (Google)" Subject: [paulmck-rcu:dev.2023.05.08c 15/67] drivers/infiniband/sw/rxe/rxe_verbs.c:1359:21: error: macro "kfree_rcu" requires 2 arguments, but only 1 given Message-ID: <202305100912.lreD3oLd-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2023.05.08c head: b7c6d563fb2aa29acb91fd8665380979bb8d131d commit: df2d6f48c0dc148ea5dc86d3264ac27bd908b1e5 [15/67] rcu/kvfree: Eliminate k[v]free_rcu() single argument macro config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230510/202305100912.lreD3oLd-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.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/paulmck/linux-rcu.git/commit/?id=df2d6f48c0dc148ea5dc86d3264ac27bd908b1e5 git remote add paulmck-rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git git fetch --no-tags paulmck-rcu dev.2023.05.08c git checkout df2d6f48c0dc148ea5dc86d3264ac27bd908b1e5 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305100912.lreD3oLd-lkp@intel.com/ Note: the paulmck-rcu/dev.2023.05.08c HEAD b7c6d563fb2aa29acb91fd8665380979bb8d131d builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): drivers/infiniband/sw/rxe/rxe_verbs.c: In function 'rxe_dereg_mr': >> drivers/infiniband/sw/rxe/rxe_verbs.c:1359:21: error: macro "kfree_rcu" requires 2 arguments, but only 1 given 1359 | kfree_rcu(mr); | ^ In file included from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/infiniband/sw/rxe/rxe_verbs.c:7: include/linux/rcupdate.h:961: note: macro "kfree_rcu" defined here 961 | #define kfree_rcu(ptr, rhf) kvfree_rcu_arg_2(ptr, rhf) | >> drivers/infiniband/sw/rxe/rxe_verbs.c:1359:9: error: 'kfree_rcu' undeclared (first use in this function); did you mean 'kfree_skb'? 1359 | kfree_rcu(mr); | ^~~~~~~~~ | kfree_skb drivers/infiniband/sw/rxe/rxe_verbs.c:1359:9: note: each undeclared identifier is reported only once for each function it appears in vim +/kfree_rcu +1359 drivers/infiniband/sw/rxe/rxe_verbs.c 8700e3e7c4857d Moni Shoua 2016-06-16 1342 5bf944f24129cb Bob Pearson 2023-03-03 1343 static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) 5bf944f24129cb Bob Pearson 2023-03-03 1344 { 5bf944f24129cb Bob Pearson 2023-03-03 1345 struct rxe_mr *mr = to_rmr(ibmr); 5bf944f24129cb Bob Pearson 2023-03-03 1346 int err, cleanup_err; 5bf944f24129cb Bob Pearson 2023-03-03 1347 5bf944f24129cb Bob Pearson 2023-03-03 1348 /* See IBA 10.6.7.2.6 */ 5bf944f24129cb Bob Pearson 2023-03-03 1349 if (atomic_read(&mr->num_mw) > 0) { 5bf944f24129cb Bob Pearson 2023-03-03 1350 err = -EINVAL; 5bf944f24129cb Bob Pearson 2023-03-03 1351 rxe_dbg_mr(mr, "mr has mw's bound"); 5bf944f24129cb Bob Pearson 2023-03-03 1352 goto err_out; 5bf944f24129cb Bob Pearson 2023-03-03 1353 } 5bf944f24129cb Bob Pearson 2023-03-03 1354 5bf944f24129cb Bob Pearson 2023-03-03 1355 cleanup_err = rxe_cleanup(mr); 5bf944f24129cb Bob Pearson 2023-03-03 1356 if (cleanup_err) 5bf944f24129cb Bob Pearson 2023-03-03 1357 rxe_err_mr(mr, "cleanup failed, err = %d", cleanup_err); 5bf944f24129cb Bob Pearson 2023-03-03 1358 5bf944f24129cb Bob Pearson 2023-03-03 @1359 kfree_rcu(mr); 5bf944f24129cb Bob Pearson 2023-03-03 1360 return 0; 5bf944f24129cb Bob Pearson 2023-03-03 1361 5bf944f24129cb Bob Pearson 2023-03-03 1362 err_out: 5bf944f24129cb Bob Pearson 2023-03-03 1363 rxe_err_mr(mr, "returned err = %d", err); 5bf944f24129cb Bob Pearson 2023-03-03 1364 return err; 5bf944f24129cb Bob Pearson 2023-03-03 1365 } 5bf944f24129cb Bob Pearson 2023-03-03 1366 :::::: The code at line 1359 was first introduced by commit :::::: 5bf944f24129cbc4b5828348bdce2db94ca9fbd6 RDMA/rxe: Add error messages :::::: TO: Bob Pearson :::::: CC: Jason Gunthorpe -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests