From patchwork Tue Jan 10 19:15:46 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: 9508393 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 6340260231 for ; Tue, 10 Jan 2017 19:16:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5688827F89 for ; Tue, 10 Jan 2017 19:16:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B1702859B; Tue, 10 Jan 2017 19:16:21 +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 8CF2827F89 for ; Tue, 10 Jan 2017 19:16:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939875AbdAJTQM (ORCPT ); Tue, 10 Jan 2017 14:16:12 -0500 Received: from mail-sn1nam01on0062.outbound.protection.outlook.com ([104.47.32.62]:22461 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S940524AbdAJTQB (ORCPT ); Tue, 10 Jan 2017 14:16:01 -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=ReSWwqLk4qlCt5vk2oBp9IcABMcypGIzaO8kdVOe1rguLXWarINHBKqXs9gstohqwlDbJz9vx/sfxLBtED+bWHAm3nSEEaSNiZYbjeFSrZEA9EPoOvY0RF6vy9u5hrTdMvByHYHWbZbDcCnedfgiqnzrI9iVOyqnzTQ3c/xmJJE= Received: from BLUPR02CA034.namprd02.prod.outlook.com (10.160.23.152) by BY2PR02MB044.namprd02.prod.outlook.com (10.242.44.27) 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:15:58 +0000 Received: from BN1AFFO11FD027.protection.gbl (2a01:111:f400:7c10::174) by BLUPR02CA034.outlook.office365.com (2a01:111:e400:8ad::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Tue, 10 Jan 2017 19:15:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; 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 BN1AFFO11FD027.mail.protection.outlook.com (10.58.52.87) 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:15:57 +0000 Received: from MILHUBIP04.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 AF.A9.65426.84035785; Tue, 10 Jan 2017 11:04:40 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:15:55 -0800 X-AuditID: 0ac94369-7f3ff7000001ff92-37-58753048f285 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 5D.48.16817.AE235785; Tue, 10 Jan 2017 11:15:54 -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:15:46 -0800 Message-ID: <20170110191554.17359-8-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110191554.17359-1-bart.vanassche@sandisk.com> References: <20170110191554.17359-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsXCddJ5ka6HQWmEwc7lAhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZj640sxT06lZsvbCDvYGx V62LkZNDQsBEovflVJYuRi4OIYGlTBJXjlyDcrYxSizvnsQKUzVz6zkmiMRGRomJO/awgyTY BIwkvr2fyQJiiwioSWx6tQgszizgKHFp2icmEFtYIEpix9H1bCA2i4CqxP3GVjCbV8Be4tWi T8wQC+QldrVdBFvGKeAg8WHBfaBeDqBl9hJTVhmD7JUQeM4isXjlb0aIXkGJkzOfsEDskpA4 +OIF2BwhAXWJk0vmM01gFJqFpGwWkrIFjEyrGMVyM3OKc9NTCwxN9YoT81Iyi7P1kvNzNzFC wjhzB+PdJ96HGAU4GJV4eB+8KIkQYk0sK67MPcQowcGsJMKbqlcaIcSbklhZlVqUH19UmpNa fIhRmoNFSZzX7d6XMCGB9MSS1OzU1ILUIpgsEwenVAPjev7fLYJZz1S2xVq4Xjx8vb14Qsfr epPDy6+6zvPbtbdD5NnSncYRzzON7A1vZhkKJ52bYnbYkv2R7+GjcTOkdkb8+6Irc5UjKDBW jt/Ccx6rU25D8AGz8FXnOcsT2ex08/1lqh062I4xv67fV2himdhee5gr7/rPo3Jxt4N8M9Na 511YfUiJpTgj0VCLuag4EQAItRbFXwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZGTTfeVUWmEwbX1KhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZj640sxT06lZsvbCDvYGx V62LkZNDQsBEYubWc0xdjFwcQgLrGSW+fvzBDJJgEzCS+PZ+JguILSKgJrHp1SL2LkYODmYB R4nb50NAwsICURI7jq5nA7FZBFQl7je2gtm8AvYSFw9uYIaYLy+xq+0iK4jNKeAg8WHBfSaQ MUJANVNWGU9g5F7AyLCKUSw3M6c4Nz2zwNBQrzgxLyWzOFsvOT93EyPEz5E7GJ9OND/EyMTB KdXAqPBlYpBwh5nUpXq2nTM8SyYkfPt/RdKhrW9zX9RkwyTJRRZcgY8Xl/Ss4Ds/z05IuUqy fVKb6twugV3uGzRunboSMGOVYdeNS2w3DR1XrU7LXpygUuba6Ljzp9tRH14OrlPhc35NWZbz Q0Pd3/A1b8L/J79iBeddu9Z34/8LmefrZ8jyn92brMRSnJFoqMVcVJwIAKKb/T2jAQAA 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)(39410400002)(39850400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(199003)(189002)(36756003)(77096006)(38730400001)(8676002)(6666003)(6916009)(2950100002)(575784001)(110136003)(92566002)(50466002)(81166006)(8936002)(5660300001)(81156014)(48376002)(54906002)(86362001)(2270400002)(33646002)(4326007)(189998001)(50226002)(76176999)(50986999)(68736007)(106466001)(626004)(69596002)(47776003)(305945005)(356003)(97736004)(2906002)(5003940100001)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB044; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD027; 1:FbSjSnbpWE1jLB23daJRtNL1eQ98tBf3w0h+9fM1970id4U5Wq0MI3KLrMf1Zrw/Zo/XOC/34Mjy9NBwaEpvNyZxLrf8ubFLMih+3TQLok8PfgR5b/ugGgjNNPvZhvUnl840tVju+Z3S34M7pQZ8DPRxlluYkmDFHTmIJiKvLUJyrmApV6A4VTUaiHyrr3zLXb96sVnEhkiR0QSp8Ecgy0Ert0RJ7ZkIalO53g6V8VJoCy/iM73wlJQbcAT7lig/DET4KyXDL4FGLlFxt5R4y/K6KPHOkb45x6JfRqAx0XojDRCQ8tgYYI2EgQyfCNFHNaqXlnJM58OqOF18nBEIFc7wLI03d2sMZ0wcbb/Qm0FWmkwBnOQVVY+c2VTceifhE0F3AJCnQSQ5GhtWQG0JfifrhVxlgI91u20b7glBZXKdK0FrDkytpjSj2J8v5Ducv7UEDzaglvGccaw0xNmTHaBbHiLysTCkKCgsxKWixSM= X-MS-Office365-Filtering-Correlation-Id: 61e38f96-7fce-48c7-111a-08d4398d1b38 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB044; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB044; 3:pGogEslL+0s8ZiddfTWPBnnnbq2AwOdvipX8ilTGKRy8hKt2MLS/JlNb6EdFimlV1A/KLr/fEdHAdIDS5DUfU+iz2Uh/ZlD3yqPAve6/UI5jLRgILhyCj1SwT4P5ccKZi2HUeMZw3DVYMa866tQmPzqbfj89XdXdMmciLszRynftwy6egM8u0Qvm9/QWQtaMC61uFZGyROxeOirQohvLkWZ0/5+qPkVIRUN8UhWFFhcd1pY87cNPH3xy6ePG/NQRej734Neoo0O2yzBleuOdzWw2v9krVnjh0PrXWwfhKpIM6UNB+C3x2yg8BBlPVdxOhsvaBcxAItxZKHQGfI4rgkU0RxygW6yAiiinjqPxDzf8m11cA74bpdcxEUDsUENGLg0MpjLnIY614bAg/vQxQQ== X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB044; 25:2/LkosEmtdt6+uFZScLakGdBg+qOe9ZLKF2rZDA0lyqY4ePSTpe4cZqDA6rWhAeW6iaCYJAHkXTJu+5HV2GI3V966b79kSnI96SPolibhRd/Bya24YXwns8JnKhqEKv/eZFPfdtGxnZ6Pib8oT22TpDhm/uYCSZ9+lbVN7n3BMEQDZ6F+U+usnjeg/cshBIIWIaghx4tI8y2jxWrP8nDX4Hp7skFlnjp+CPPPqEQtwkQ9Mmp114qtvQnKPDuTqX7z0sqQjYeSmhT4u7jzKyPvIwLaLM09qacp6/zC4awaOUyhzTb674huNHYGVIq/o7EM0tcbk3d6Af8eFMN+61S54RxAerWzwT6t1RAmvMEPR+OMhRKaMuObb3IdqpfvcaXMjmMsD+UrihGwp0flP5r/E6apdSTLAwlkPNFvgjn7SJWlEWyP6/Uo01KjLx4x3ZCc+Xo14tX5rfG8nKCgqLOI34aUTC754absBnJsL5dcd5RhWsdB9FRhoqzwjcD3lM64R9HNgjO+c9vohMJke+Y4eOviaYIeh460xzEf8ja6mj1XWESZHWDs2HVy67tpYxnH12wZOVwYNAVmDenVH/Rv4Q59Ke6BVkBQL0bucKt4o1omXLU7B627LRTQh/CjPgUWg139BD04U3DJlndU0KAus3livHWlWOnZOUKFvCSTu1U3YCaN/6xo1OcCMQpnei6ttQc8iL0WhrdVOrMG2DDjVf30zofcwTqRyvaMGEtvXt2zjqXbHVJR2gvixX2X9WFra7oQP3VvhkXN2hDB3JWb+81O1khND4W90kutAoDzvm6GdSBsLgEhQ7GMzCpqRj6 X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB044; 31:TxCJb/d2kNSvi/T/1wyumqbz4Owsl4vwse4ywY4S71ifPVjjjy8rtdCEplHw/PfqxQV11Dv9ZEIJpupF0J+2qvSvFElXnPGBa5GiFQpJo0rcjaflHfPkkQYrCwuXYO9rLCc+mY5JeX9yQg4iwlDA7tuo751ZzAaxJZJHPs2tiJaZo2MGc4kUa/i7DIfKQUHwKCfvCE3hBdxA/Qbsv2B2ul8TRHdTwoIeb870q6P2jBps/SFA+hriX+apM/fIsxNE39UIQjwVWOidTdgjn1x7uA==; 20:4A6DL4r5yytTHWpqchVoPas4VK1CGXpBGO3Edzr/USqFeP7ezShgdVVtlWR22GoSg6HwHauRuCYUOT7LmChjyC/AgMJCOMptmFNG62oCAMdTf+xGqko9Ux5WUThTHfcmxkBgF8pqyQNXbYUjMBMs25t0ClKVE0KmYhEsR3zzCRvfG0F4aLJZDT+XR5sQPoF5RXHISlqUPVVVmSA6h1cWSxm3PwGsx3Gz5CrkLIZHqGHgeaVrHg8VfoSZtk0xKmp8C5VcrWV7J8Cyh/LYnYinINi5shaSVIyvVbnEh4HbcjPxNZevSyQhklpUyuh8nR6RU9GBFcz9OReg2wrUk5TEwl9VvwAZ5V0jvSLbjULk1m39nl5BFpMl0F6S2Yd7InD+dPk4VRpskZ60W98jPQbQm+K0yujF2o2R8a6wqtVClXGnoMSiUfgDk1B57HPeSUMhpn3+abU2qUqKWne3Rhm6Io52I0Tl/hjClpJda7ZQwOeh3E9yJ1RDxM/pc8lBRlzM X-Microsoft-Antispam-PRVS: X-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:BY2PR02MB044; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB044; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB044; 4:z1KNVV0mR0YLmv4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/gdARyQRTAvLoFyawxo6Z5SRYkufksP422zvAGf4UlP5pKO1+ZYo1kXIQVnorw0KcF8MrPH8TqgGcClhnvIvu2m0/xAZKwIcZAuN4eEX/7dxPLk0tlpqIQE0Ynh7n8FqNw5Cm5Qj5XkuQcOdmwYmM8oSP++WoJuq9tZg1C8OIwl4SEs47QC72B42xiiIjQKosO6KfbOloxBzYMLlrcKdFFSL6m9CsCTFidKEj0fMh8OrkmmfBBMoFB31xkr/DYiTmOC0F5gGZ2mkafie60S3qHaRTi8kYIvjAhbfeH4voZLcl52JV4wCfhUsyaLnA3rmgF0f4EbdZoPiinSaJYEA3QA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:15:57.2169 (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: BY2PR02MB044 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 */