From patchwork Tue Jan 10 19:08:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9508367 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A24A60231 for ; Tue, 10 Jan 2017 19:12:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DFB528595 for ; Tue, 10 Jan 2017 19:12:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52B072859B; Tue, 10 Jan 2017 19:12:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADFB228596 for ; Tue, 10 Jan 2017 19:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932784AbdAJTKW (ORCPT ); Tue, 10 Jan 2017 14:10:22 -0500 Received: from mail-sn1nam02on0080.outbound.protection.outlook.com ([104.47.36.80]:21315 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S937417AbdAJTIe (ORCPT ); Tue, 10 Jan 2017 14:08:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0/zWJNAzWi3WkLnOhOfPIoyZp2E6xHjZRWdfAzHOwLQ=; b=W2Owy1gAIfSY/sNTTlBvTeotDQ+C+ZSelSJHsE58RHvPvxspnzg/SV+0VpeigPX13m5UUMyJNqVvBba3YuUhEPsHuyJ1Pp0ajUcXIYtVu4cvb44vpEeERhpGWSfzHuuQ4/xEiHgBvhD4ctoGI7TUjGFnK6iHtlDUmNvLl8YNH0g= Received: from BN6PR02CA0040.namprd02.prod.outlook.com (10.173.146.154) by BY2PR02MB041.namprd02.prod.outlook.com (10.242.44.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Tue, 10 Jan 2017 19:08:30 +0000 Received: from BN1BFFO11OLC001.protection.gbl (2a01:111:f400:7c10::1:110) by BN6PR02CA0040.outlook.office365.com (2603:10b6:404:5f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Tue, 10 Jan 2017 19:08:30 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Tue, 10 Jan 2017 19:08:28 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 57.A9.65426.88E25785; Tue, 10 Jan 2017 10:57:13 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:08:24 -0800 X-AuditID: 0ac94369-b62949800001ff92-c9-58752e882cdc Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id A8.38.16817.82135785; Tue, 10 Jan 2017 11:08:24 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Moni Shoua Subject: [PATCH v2 07/15] IB/rxe: Let the compiler check the type of the cleanup functions Date: Tue, 10 Jan 2017 11:08:14 -0800 Message-ID: <20170110190822.16953-8-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110190822.16953-7-bart.vanassche@sandisk.com> References: <20170110190822.16953-1-bart.vanassche@sandisk.com> <20170110190822.16953-2-bart.vanassche@sandisk.com> <20170110190822.16953-3-bart.vanassche@sandisk.com> <20170110190822.16953-4-bart.vanassche@sandisk.com> <20170110190822.16953-5-bart.vanassche@sandisk.com> <20170110190822.16953-6-bart.vanassche@sandisk.com> <20170110190822.16953-7-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHLMWRmVeSWpSXmKPExsXCddJ5kW6nXmmEwZyVbBYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZj640sxT06lZsvbCDvYGx V62LkZNDQsBEov/dbPYuRi4OIYGlTBJth3+wQjjbGCXm7HrJDlPV0/yBCSKxkVHi3Z6rrCAJ NgEjiW/vZ7KA2CICahKbXi0Ca2AWcJS4NO0TE4gtLBAlsePoejYQm0VAVWLJhlvMIDavgL3E gf6HTBAL5CV2tV0Em8kp4CBxc+1/NohlzcwSK449YgRxJARes0i8uXOdCaJbUOLkzCcsENsk JA6+eAE2VUhAXeLkkvlMExiFZiEpm4WkbAEj0ypGsdzMnOLc9NQCQ1O94sS8lMzibL3k/NxN jJBQztzBePeJ9yFGAQ5GJR7eBy9KIoRYE8uKK3MPMUpwMCuJ8KYCI0GINyWxsiq1KD++qDQn tfgQozQHi5I4r9u9L2FCAumJJanZqakFqUUwWSYOTqkGxtg9/WJnVpzLz5UNurfV+Pga91td 7NM3bD/DGXvp7Mz708LiZ03I6sq1insvvPOcdGNbpOuKK3+PfH24LPIEd0barrTTpQV5q206 l7U3yPsstnrRsSxnykc+zZmaLD8iwyy2rzgbM611vnLyj5Mnkg0+3nt8Yu3x6rM/ZXo/fKi6 Vrl7XYLwhUtKLMUZiYZazEXFiQAQiZquYQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIJMWRmVeSWpSXmKPExsXCtZGTTVfDsDTC4MESTYuX5z+wWjw71Mti seH9GnYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MR1eaWQp6dSu2XtjB3sDY q9bFyMkhIWAi0dP8gamLkYtDSGA9o8T9918YQRJsAkYS397PZAGxRQTUJDa9WsTexcjBwSzg KHH7fAhIWFggSmLH0fVsIDaLgKrEkg23mEFKeAXsJQ5N9IcYLy+xq+0iK4jNKeAgcXPtfzaI Vc3MEiuOPWKcwMi9gJFhFaNYbmZOcW56ZoGhoV5xYl5KZnG2XnJ+7iZGiKcjdzA+nWh+iJGJ g1OqgXFm8nXHXYy3O37sYFgpffTz4QjbObGWAqoFmT/Xnn0/I8r2WGLy7rMZSdO3WUR9lwvv LOGbY/uM66P+SQGjVX58ilMCN9/WTGAyebd+kXVQXKp9ycpzi5bk32juzJ4QYxPdsMn1RKro 5cy2D78OT+W5dffEo4vu+QYTnl5VTlx2Kn7XBaOWmr1KLMUZiYZazEXFiQBOl6TppAEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(39860400002)(39840400002)(39410400002)(39850400002)(2980300002)(438002)(199003)(189002)(305945005)(189998001)(68736007)(8676002)(81156014)(97736004)(48376002)(81166006)(33646002)(50226002)(50466002)(93886004)(69596002)(92566002)(2270400002)(47776003)(86362001)(356003)(575784001)(8936002)(110136003)(626004)(54906002)(5003940100001)(36756003)(50986999)(77096006)(2906002)(2950100002)(6666003)(1076002)(76176999)(6916009)(106466001)(5660300001)(4326007)(38730400001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB041; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:yeWB/4vXlDKE62+byBnDDVo2ab8KBjF6Jihqz/FMwViLhSYT93fFvK7lICmvLWIjnNQ257sAz/sUb7YM33028uy5MQhtiKM3al4PrLIHnKOiPgz/KCWt9wAK+oBMNWzGnP7bxG2XM5P3Y8UjIUfgJvDi+519oKwDQpmpB94xUTKinn3r8JVnnAXifamKzhzvSsHletxFbewlD6lj67fHlz62erx5527UlhAyv5CZrJJbg8lziACugbxCjEa/5jn7u6x2x+4eolkWU2HHfxN7QQTTQ19BkD+9gTeb9Iw+TPrMYbSTgTYlAsR4tNEzH12YxK5opaThG8bPsQ4bV9HG/cy82Qk0vvG7E8zVN7IjXFHG2SEWpRivT1bmh2a0hgssqnPA4sqycz5R7vStCjPFFJ6ZszLRPkj8bI2O8VvFWYXQsMBezn/CfSk8RCiFCjEPEY+lbMv+rPsk6dredZ5KFNvJLmYUetjjAd4hDW1KJ1dDw0YPjQHRkghj6wszXrU94SxVvmQ03HDmez52GE6pNA== X-MS-Office365-Filtering-Correlation-Id: 7f158ab4-bad0-486f-4927-08d4398c1010 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB041; X-Microsoft-Exchange-Diagnost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exchange-Antispam-Report-Test: UriScan:(56004941905204)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY2PR02MB041; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB041; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 4:sctSgP1zSlTlEFKycXJ0Z3LRLG219I3EYqRChKzascKZuVjOyUx5lFbjWt+tc+HiLVrh8GImabFKM9tNQlzXgbdsH2XiS5Sa3ghbwDFJ/HjtU1fE+gmnEvYmMVdRtxn/vJnVT2kjA0R134uFlet0oAp98t6iKYoQEGY/kVU6w00wWqIbyrTGvi69qeEZ8vdZ4HHGHs2F/vtctJv57qO5FRgterKpE/+d1E6EiWQaxxQeIrc/pHbzskGb7HAMJ967cv+CKEuqwuhVcb2qOzJnd17hi9Yk4/zqltG11twlJcndah/xP93nLORFNHrWN70Y+in5+VmX5svWLojF4n3mGOzYGAJc0Dr5cam62wxCJzqI2QlDpF1Inb8dX2LJEfVPvjK4oJK9x/KhA8ahQubMcPFH6bR5t+Ygl3hUpm6DOGlpASpupZhyYQeUOX45zqLMXQ0GQlS0c6+tlR3T63uA/x0Xs3+EoMHjmuZAWYmSQQEzYGt/r2mU+BQiHFz0YdAjGJ7f56YHcaxmHtk8cBSAyYsVS8rge/eWh0ljM/HYBsiCDgqwilCPegC49wrk9W9itHzsq5IxcNx+s2uT1W+Y5Er9NsmqKQifajiME/3WzAyl5wCFSmpqlmaGGKL2DbvOtLONwIT2/z8tEpEf314bwDif5abGuKQO+DUjHo33qLJ2fGX38nK7xwMJVVbvaiq0YUQWi71Rjm7NPFPKQqHlYw== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB041; 23:J8hoerWnpvzZnyVZfm/8wzz2Bf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AHCOH9gDVRULry+IM8XqH2Vx64AlPNbdDdzpOrI64P0BUAYbJjuJOj4QkdyPWSb+XhwIDMqeC072qnrHRGAGBurV02M4h9ywqY9yLJRAVg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 7:f4D3jHBdcF+6oOnzj6/EJaX+61I9UbUwn6PuE/LDHDUgTF4DEJ1V/DF7kbthCnGG44mLR8JNtm3ggrVPsWpV4FfJ8Ay4KCee1NneWMIQBPcCGtq5MfApxj/7wAnmeLJlfiTl474JblK772RjC4I9e+ExpWtorSU1WWaMiFxj5KMyd7xyVrWWbg3+jIc33dweR5raw5baTjeBJ+mWnfuDGIfKqD1LWsvXjyjt+dD6ngtYFyFOd5qA/lvHTXCWooWcu/bPssBdCotsPB4+nW6PuNHwektrhBBVZ8sVkiUMU25Hoaz+AxoXTa9r0P812CKqIjAqRRRhb1G6U0ArbZpE5pf2X8dAngV1e1REsuzxhCKdgC0/6EK0ra2fV0OHTKJbo9pumhUFA2CTOD0pheVBFtnj+ZJ/3PHfJBnc6F3Jz0OvrUF5XqQn8YL9JEUY7g3v6AkMx30KYZXGETMCw+IZ8Q== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:08:28.9890 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB041 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change the argument type of these functions from void * into struct rxe_pool_entry *. Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer Cc: Moni Shoua --- drivers/infiniband/sw/rxe/rxe_cq.c | 4 ++-- drivers/infiniband/sw/rxe/rxe_loc.h | 8 ++++---- drivers/infiniband/sw/rxe/rxe_mcast.c | 4 ++-- drivers/infiniband/sw/rxe/rxe_mr.c | 4 ++-- drivers/infiniband/sw/rxe/rxe_pool.h | 6 ++++-- drivers/infiniband/sw/rxe/rxe_qp.c | 4 ++-- drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +- 7 files changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_cq.c b/drivers/infiniband/sw/rxe/rxe_cq.c index e5e6a5e7dee9..49fe42c23f4d 100644 --- a/drivers/infiniband/sw/rxe/rxe_cq.c +++ b/drivers/infiniband/sw/rxe/rxe_cq.c @@ -156,9 +156,9 @@ int rxe_cq_post(struct rxe_cq *cq, struct rxe_cqe *cqe, int solicited) return 0; } -void rxe_cq_cleanup(void *arg) +void rxe_cq_cleanup(struct rxe_pool_entry *arg) { - struct rxe_cq *cq = arg; + struct rxe_cq *cq = container_of(arg, typeof(*cq), pelem); if (cq->queue) rxe_queue_cleanup(cq->queue); diff --git a/drivers/infiniband/sw/rxe/rxe_loc.h b/drivers/infiniband/sw/rxe/rxe_loc.h index efe4c6a35442..da191d7acb6f 100644 --- a/drivers/infiniband/sw/rxe/rxe_loc.h +++ b/drivers/infiniband/sw/rxe/rxe_loc.h @@ -64,7 +64,7 @@ int rxe_cq_resize_queue(struct rxe_cq *cq, int new_cqe, struct ib_udata *udata); int rxe_cq_post(struct rxe_cq *cq, struct rxe_cqe *cqe, int solicited); -void rxe_cq_cleanup(void *arg); +void rxe_cq_cleanup(struct rxe_pool_entry *arg); /* rxe_mcast.c */ int rxe_mcast_get_grp(struct rxe_dev *rxe, union ib_gid *mgid, @@ -78,7 +78,7 @@ int rxe_mcast_drop_grp_elem(struct rxe_dev *rxe, struct rxe_qp *qp, void rxe_drop_all_mcast_groups(struct rxe_qp *qp); -void rxe_mc_cleanup(void *arg); +void rxe_mc_cleanup(struct rxe_pool_entry *arg); /* rxe_mmap.c */ struct rxe_mmap_info { @@ -137,7 +137,7 @@ int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length); int rxe_mem_map_pages(struct rxe_dev *rxe, struct rxe_mem *mem, u64 *page, int num_pages, u64 iova); -void rxe_mem_cleanup(void *arg); +void rxe_mem_cleanup(struct rxe_pool_entry *arg); int advance_dma_data(struct rxe_dma_info *dma, unsigned int length); @@ -162,7 +162,7 @@ void rxe_qp_error(struct rxe_qp *qp); void rxe_qp_destroy(struct rxe_qp *qp); -void rxe_qp_cleanup(void *arg); +void rxe_qp_cleanup(struct rxe_pool_entry *arg); static inline int qp_num(struct rxe_qp *qp) { diff --git a/drivers/infiniband/sw/rxe/rxe_mcast.c b/drivers/infiniband/sw/rxe/rxe_mcast.c index fa95544ca7e0..e0fb6752f90e 100644 --- a/drivers/infiniband/sw/rxe/rxe_mcast.c +++ b/drivers/infiniband/sw/rxe/rxe_mcast.c @@ -180,9 +180,9 @@ void rxe_drop_all_mcast_groups(struct rxe_qp *qp) } } -void rxe_mc_cleanup(void *arg) +void rxe_mc_cleanup(struct rxe_pool_entry *arg) { - struct rxe_mc_grp *grp = arg; + struct rxe_mc_grp *grp = container_of(arg, typeof(*grp), pelem); struct rxe_dev *rxe = grp->rxe; rxe_drop_key(grp); diff --git a/drivers/infiniband/sw/rxe/rxe_mr.c b/drivers/infiniband/sw/rxe/rxe_mr.c index d0faca294006..8ca3acd327b3 100644 --- a/drivers/infiniband/sw/rxe/rxe_mr.c +++ b/drivers/infiniband/sw/rxe/rxe_mr.c @@ -89,9 +89,9 @@ static void rxe_mem_init(int access, struct rxe_mem *mem) mem->map_shift = ilog2(RXE_BUF_PER_MAP); } -void rxe_mem_cleanup(void *arg) +void rxe_mem_cleanup(struct rxe_pool_entry *arg) { - struct rxe_mem *mem = arg; + struct rxe_mem *mem = container_of(arg, typeof(*mem), pelem); int i; if (mem->umem) diff --git a/drivers/infiniband/sw/rxe/rxe_pool.h b/drivers/infiniband/sw/rxe/rxe_pool.h index 7846ccc58b25..47df28e43acf 100644 --- a/drivers/infiniband/sw/rxe/rxe_pool.h +++ b/drivers/infiniband/sw/rxe/rxe_pool.h @@ -57,10 +57,12 @@ enum rxe_elem_type { RXE_NUM_TYPES, /* keep me last */ }; +struct rxe_pool_entry; + struct rxe_type_info { const char *name; size_t size; - void (*cleanup)(void *obj); + void (*cleanup)(struct rxe_pool_entry *obj); enum rxe_pool_flags flags; u32 max_index; u32 min_index; @@ -91,7 +93,7 @@ struct rxe_pool { spinlock_t pool_lock; /* pool spinlock */ size_t elem_size; struct kref ref_cnt; - void (*cleanup)(void *obj); + void (*cleanup)(struct rxe_pool_entry *obj); enum rxe_pool_state state; enum rxe_pool_flags flags; enum rxe_elem_type type; diff --git a/drivers/infiniband/sw/rxe/rxe_qp.c b/drivers/infiniband/sw/rxe/rxe_qp.c index 486d576e55bc..917147ce4cf9 100644 --- a/drivers/infiniband/sw/rxe/rxe_qp.c +++ b/drivers/infiniband/sw/rxe/rxe_qp.c @@ -825,9 +825,9 @@ void rxe_qp_destroy(struct rxe_qp *qp) } /* called when the last reference to the qp is dropped */ -void rxe_qp_cleanup(void *arg) +void rxe_qp_cleanup(struct rxe_pool_entry *arg) { - struct rxe_qp *qp = arg; + struct rxe_qp *qp = container_of(arg, typeof(*qp), pelem); rxe_drop_all_mcast_groups(qp); diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index cac1d52a08f0..536974b69ed9 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -475,6 +475,6 @@ static inline struct rxe_mem *to_rmw(struct ib_mw *mw) int rxe_register_device(struct rxe_dev *rxe); int rxe_unregister_device(struct rxe_dev *rxe); -void rxe_mc_cleanup(void *arg); +void rxe_mc_cleanup(struct rxe_pool_entry *arg); #endif /* RXE_VERBS_H */