From patchwork Mon Jan 2 10:41:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9493337 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 5216760414 for ; Mon, 2 Jan 2017 10:41:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C9C620008 for ; Mon, 2 Jan 2017 10:41:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5107B267EC; Mon, 2 Jan 2017 10:41:33 +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 9C49C20008 for ; Mon, 2 Jan 2017 10:41:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755166AbdABKlb (ORCPT ); Mon, 2 Jan 2017 05:41:31 -0500 Received: from mail-bn3nam01on0047.outbound.protection.outlook.com ([104.47.33.47]:48208 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751279AbdABKla (ORCPT ); Mon, 2 Jan 2017 05:41:30 -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=dYXNUPwL3kpdUcLwDhwlR1FpN/Y6OitKMVsAZT0wB8s=; b=aW0qPMV6oN6gbRszKR/Mey3U9gQN6dqVhD3zQvW7Djq+L3z8SgTCvpE3i1G/w4mBWr+SzsCkTjFb+0U/Ukyl0SNKyCGvLIN2BgeKR5r0B0i5/xbj1OB/H01xmSHB6V0O15qkydgBjG8ZfkPCu+O+VSehEcNJQaprO6/ddM8gzeg= Received: from BLUPR0201CA0024.namprd02.prod.outlook.com (10.163.116.34) by DM2PR0201MB0992.namprd02.prod.outlook.com (10.160.219.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Mon, 2 Jan 2017 10:41:27 +0000 Received: from BN1AFFO11FD035.protection.gbl (2a01:111:f400:7c10::153) by BLUPR0201CA0024.outlook.office365.com (2a01:111:e400:52e7::34) 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; Mon, 2 Jan 2017 10:41:27 +0000 Authentication-Results: spf=pass (sender IP is 74.221.232.54) 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 74.221.232.54 as permitted sender) receiver=protection.outlook.com; client-ip=74.221.232.54; helo=sacsmgep14.sandisk.com; Received: from sacsmgep14.sandisk.com (74.221.232.54) by BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) 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; Mon, 2 Jan 2017 10:41:26 +0000 X-AuditID: ac1c2133-b8fff70000000ec6-52-586aa94c8bde Received: from SACHUBIP02.sdcorp.global.sandisk.com (Unknown_Domain [172.28.1.254]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 80.57.03782.C49AA685; Mon, 2 Jan 2017 11:26:04 -0800 (PST) Received: from ULS-OP-MBXIP03.sdcorp.global.sandisk.com ([fe80::f9ec:1e1b:1439:62d8]) by SACHUBIP02.sdcorp.global.sandisk.com ([10.181.10.104]) with mapi id 14.03.0319.002; Mon, 2 Jan 2017 02:41:25 -0800 From: Bart Van Assche To: "dledford@redhat.com" CC: "andrew.boyer@dell.com" , "monis@mellanox.com" , "linux-rdma@vger.kernel.org" Subject: [PATCH 07/15] IB/rxe: Let the compiler check the type of the cleanup functions Thread-Topic: [PATCH 07/15] IB/rxe: Let the compiler check the type of the cleanup functions Thread-Index: AQHSZOTDGLS90SG4VUmirMVQNkUcUw== Date: Mon, 2 Jan 2017 10:41:23 +0000 Message-ID: <1483353591.3592.26.camel@sandisk.com> References: <1483353316.3592.14.camel@sandisk.com> In-Reply-To: <1483353316.3592.14.camel@sandisk.com> Accept-Language: nl-NL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.28.1.254] Content-ID: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGIsWRmVeSWpSXmKPExsWyRobxn67PyqwIg53TRSyute9jtXh5/gOr xbNDvSwWG96vYXdg8Zg0cwazx7Pph5k83u+7yubxeZNcAEsUl01Kak5mWWqRvl0CV8b6xmfs BavsKh7uOc3WwHjHpouRk0NCwERi54dzLCC2kMASJokfK6O6GLmA7POMEt9mN7CDJNgEjCRm T9gDViQioC9xaPVKRpAiZoG5jBLr7ywFKxIWiJTofTiXDaIoTmLqoa9QDXoSkzp/MoLYLAIq EvcPLGYGsXmBht7qOcYEsdlI4mTnM7AaTgFjiePTjwP1cnAwCshKtLzmBgkzC4hL3Hoynwni aAGJJXvOM0PYohIvH/9jhbAVJD6v+McG0sosoCmxfpc+RKuVxN/jl1ghbEWJKd0P2SEuEJQ4 OfMJywRGsVlINsxC6J6FpHsWku5ZSLoXMLKuYhQrTkwuzk1PLTA00StOzEvJLM7WS87P3cQI jj1F4x2M/za4H2IU4GBU4uFdcDMzQog1say4MvcQowQHs5IIb4t6VoQQb0piZVVqUX58UWlO avEhRmkOFiVxXvkDu0OFBNITS1KzU1MLUotgskwcnFINjHLbmt7x806uf3nc9XZ3+cpPnUqh hxTv2x6Mrcu+wHpYNyR613mHQ52GxTOyd03hbo33dD64KDuXw8RA2Pdt3cntrtM0jdNTHk/L WSO9NtXvLO+SK1dc9W5NXFjXol8kO/nj4p02S58UTfGZn2+eUnbj93P/J3YR8r9sPKsvnleX 6zDc+ez/SiWW4oxEQy3mouJEABxmgB25AgAA X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:74.221.232.54; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39850400002)(39860400002)(39840400002)(39410400002)(39450400003)(2980300002)(438002)(189002)(199003)(5660300001)(3846002)(103116003)(81156014)(2270400002)(81166006)(106466001)(189998001)(106116001)(7736002)(54906002)(97736004)(1730700003)(5640700003)(23676002)(6116002)(2501003)(575784001)(38730400001)(356003)(8936002)(50466002)(2906002)(4326007)(2900100001)(2351001)(110136003)(6916009)(305945005)(86362001)(102836003)(68736007)(626004)(8666007)(33646002)(54356999)(50986999)(69596002)(36756003)(76176999)(47776003)(92566002)(2950100002)(8676002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0992; H:sacsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD035; 1:laDvgLYN1lWgJ4CvKO9Nz1F9ORQa9GDXZ/i82bNTT2jSk9BPYzO06+9XYE+Fir9mIhtOmkIHfrJcNub5XuT5hGtkDyOtVS+sTF9dpP2jM0TdoLrDHNxXTSWd7UdliZc6Q4OZYHO1kp3tEOvCszWZkDXIVWrc15JVlirbQZFUjz24uyKNR62vwE0RF0HCfrtbac2Cjfj60m2uos37IEg3i28jlaw9I+zNuYPg3frQ8pte7Z5IeaWHhS35So4cg9pz7rZhK6t4jU8uG99tqit7704EewXcYTKFVZpJoboPfIeThVkVrl0kR7PxFz2/p7vMmQNruo4ikp4mPNCTMEYDd1dv9jQDOka/mmrhNFOjGG29U+J7TOSURWmeeYFgsxCvditA2lPCtKpeo+VRPvLadKjgnlkk/2v0XY92OvxMb7DTbN9xgUbjccA0S7mwkZ+2anCsLTJPeBI94VtJOXwsG4mx0VZuv75uhzqAY1y5KkRTyWtyS6llIanfMswVoqSIl4FVccarZpfd4vZ9m43zk4bHPL4LN1NYgWNmKLZIwbta+gkEJ076fyOiL6pIFLyfdE1d45i0aL3CHbQrcq6uJrkLchX+kYztFNnPfsxTEbE= X-MS-Office365-Filtering-Correlation-Id: a4585f5c-a998-423f-fa94-08d432fbe79a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:DM2PR0201MB0992; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0992; 3:IkozHzP+/JAKtjHNMHFFDvN3ajN2911iqCO1usDfu6feeYvASaUfgrBOdTove4RzJ99cFMN4ffLju+KAQq1LMsa6DgrQ8K5YlWEyIGphEMJSdBmy72qA/21z+l5gB2KwsE/h0J9iIwb8i2bYAH5Bf6Fewt6aOyhGPe0+4ipY+QV+bzUoHcQ4A3H6Mk71ty2C8cqlLYxXxySFxR8KdwitL5poDwDqAvF70h4rUQqtmvCYYyPxoO9VHpmm5X6dv1HdUJXa1Xkyv1IwKUQqtBjbnjYYi05JzUvSwXzyCk4xEHbYcu4mg8ao+2JB4sLr6Rke58716GVjlY/bXfN2l+s812RqlHoBpjv+viMJj9irQbpcHednHW5g/tuBl8Mfuzn/VWsToJDFLflLrHxnD984Jw==; 25:16XhxIqKGGis918TVk7NrNDMIGJIlVPnGNlklBZufAbClkLCgMejXuR4rOyTZMYHEHYui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5v3XefltzAXQGe4jgeDxVTKpkRQx5yWOdv0JVSJLUdiR7QA2g1ZEcRSecJEbYmBNBbnOMefUOrxCQWo+K6XuLfeend9zWdsC4h2VQ56D5KRbF+BZiW1dIjsKCwHJ6o9KGjtnakME2OZKFuwSMkao4B+OAr47DpK+RZndDoKj+tXhZqFD7zOEuP1 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)(13023025)(13015025)(13017025)(13024025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(20161123558021)(6072148); SRVR:DM2PR0201MB0992; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0992; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0992; 4:2RXfxBA8NbD0zAwsKVuR2yYanQ7JicFXL8tSe3X0liw/FWIsVb/icyCeMLNV2+4Apy6Q85lNVkyXatBdm/iipYKc3gHXK+Lge5hWJK8QvOXXM/URVja/iYe8l7QFic1AZsZFTPCOIZ0l5CAqjetL86USzpU3z2HhxJFsC9AQA8hi7QRe73slB0lhknLTojOZFmQ6t4Bf8hPpcErFFxI9b2+JOa3vntYuQ8uYM/briBBv3GhALbmLtH03F3tx73wWKyzmodg2mhA+EeqexspV6FelanwEIvbEz8Ogp1UC7ZT7lOLpD+Pu339ZQsxKAwizssvXLKozjGOL3YaQE8YimtFZriDiItYxxVLEeUlmvsTlGAtZ6UJbDGlSfnLELA1om/EAQvT0NOBbmdyM9u2FRAwZ+DOjy0kECr7hP8sljQjR7KvL0AhXZqlYfQUBE0tEWr1SS6i8yucM4nelKT5BHsGJHLKF9VKMi7b567sTE75XiBaGACDHgFBXREe2RrEqSBGwCD76ASsX0W+Q7DVGtwegOTCbkbMfnLj/zh5nNGwBjLnewT8jeHMhO1oMNcotvLftCmO+UADwX7GZMVm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gYsTr395iT3yYGwISMrlCPM+CC54gIXe3LwOi0XaBmHZCTI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0992; 7:b/WX7U8C8LMsZA5h6nJFFAFJfbIfYOk2oeHZngvsURDI2IyaGZNW7+sIGXHojZY4s9hPGrrQrGpJOOmQjtCpJWnNdpDZb/ekwc8H/pnyAi/nXhp5Dj7nHEqbxV8ivS8zYqPHGkA0jtpgZPC32LKx19HhAv7lE/LlHwGu7vOYzQfAQyT2OlAxjpQ+wDDHUz2CzjoCEqNM9O4rBkgX2D+oKIpVjfoTL4cR7GWC+NJMvGrQxsLhjTisKthUJPuWsjgd9uYpzI0QuuxHlU1CgN+j9uaBnuMQbdDFLJ88aP3XnLgDcnfNGpFClNHZadbLSpQMLSG+TlnH/3Oo0OXOQrVhPjtN9lipX29vjKJlgWAwrB0AkOSsU4QTexvnk0tvgc7OafNeVOyzU9Z8/OEU3WtlFdeVB6rbjoQxjJIbOEfXqLRyyAShRBwElVZ24pUoa6tsKpUr4ZkMJrcTXcKZAMyC5w== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2017 10:41:26.5432 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[74.221.232.54]; Helo=[sacsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0992 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 Cc: Moni Shoua Cc: Andrew Boyer ---  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(-) --  2.11.0 Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer 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 */