From patchwork Mon Nov 5 11:35:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10667901 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E62A117D4 for ; Mon, 5 Nov 2018 11:36:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D560E28DB6 for ; Mon, 5 Nov 2018 11:36:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9D842978D; Mon, 5 Nov 2018 11:36:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 7A1C82977F for ; Mon, 5 Nov 2018 11:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbeKEUz0 (ORCPT ); Mon, 5 Nov 2018 15:55:26 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51768 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727563AbeKEUz0 (ORCPT ); Mon, 5 Nov 2018 15:55:26 -0500 Received: by mail-wm1-f66.google.com with SMTP id w7-v6so7940287wmc.1 for ; Mon, 05 Nov 2018 03:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c3nY6Mt9GVN6B8vISJ1RV6ZA4XwyIGXas9qanU8QFPQ=; b=P4giycBipfGMMHH8e/D1JUdInRdT3ze9IlJht6Ofpv1nm8U2ckh61geH9kEmpWjLef G1v15H3u4sFCUi2yGp1+lxtg9obUJOK6nlwLqVYwD1jlB12XdfHscmfV67ILT4gBZhpM RHOm3PKv4vmkTXOo66CsPQc+qKS3XZ5mgJ70dv6AfqdcN6Sl5hvKDyD5Au/qzcvIqdNO rnHtgfTxFPaA/p7JSkSkIEu3Nvv5FXyDQOL2sIo2qWxwsJHPgHEvVx9gWGWeRLFYoSUB Yqfnv8QUmzbpABnTGXob/DCK1egr4BDa/XXCzk9v+POvD4+BJXDQSZAe0Isq4IfTRHno PU7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c3nY6Mt9GVN6B8vISJ1RV6ZA4XwyIGXas9qanU8QFPQ=; b=eIqVQH/NsIzquTYCAdJOF4jzaHPOV/jIc62ffjGtv3fqhhK6FmzGQmPwEk2yWfgcf/ mwvryGdrOWGl47rKeo6cP2vFbwXSuniBWmTu3gZ+56o65hzyVHwSzRTqf1NzZi/9W7/o xPatZqGawjoGgWZSG8IQSt+51kLeoljg/hPICDeNooIMZvW5TmVgVLImOAzDF6BIbQ7t dbL+RWFxcR6T4ZfvqtWQaGyOBIVqbmlxR8Je6s22rhVYC+OC9EYJ3zJBwZv8kzGc9WiY mStAsutqnqxJM4Qb2h6HBE0ebDvEc1asDSxx2tKJBZ/XmFZqxzgz9MEu0+eOpw/1T2q5 2pAA== X-Gm-Message-State: AGRZ1gLMGO4eAUmroUJPjI4cEddfBsjlgw32X9BJ/RdI/mWDTdJk5rKU Wal0TFRMN7jB3FKNQwQ+Jv+dexeJ X-Google-Smtp-Source: AJdET5cano0OvX+IyQg0kJa17fgnWXFLOs7dwykub2QGlYtcpFYJvCckL3rnXXxFC+KTVh4zevRp5A== X-Received: by 2002:a1c:e088:: with SMTP id x130-v6mr5646144wmg.6.1541417767618; Mon, 05 Nov 2018 03:36:07 -0800 (PST) Received: from kheib-workstation.redhat.com ([192.116.94.216]) by smtp.gmail.com with ESMTPSA id z18-v6sm10762147wru.83.2018.11.05.03.36.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 03:36:07 -0800 (PST) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, kamalheib1@gmail.com Subject: [PATCH rdma-next v3 18/20] RDMA/rdmavt: Fix rvt_create_ah prototype Date: Mon, 5 Nov 2018 13:35:26 +0200 Message-Id: <20181105113528.8317-19-kamalheib1@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20181105113528.8317-1-kamalheib1@gmail.com> References: <20181105113528.8317-1-kamalheib1@gmail.com> 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 The create_ah verb receive as parameter an udata buffer, this parameter is missing in rvt_create_ah - fixing that. Signed-off-by: Kamal Heib --- drivers/infiniband/sw/rdmavt/ah.c | 4 +++- drivers/infiniband/sw/rdmavt/ah.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/sw/rdmavt/ah.c b/drivers/infiniband/sw/rdmavt/ah.c index 89ec0f64abfc..084bb4baebb5 100644 --- a/drivers/infiniband/sw/rdmavt/ah.c +++ b/drivers/infiniband/sw/rdmavt/ah.c @@ -91,13 +91,15 @@ EXPORT_SYMBOL(rvt_check_ah); * rvt_create_ah - create an address handle * @pd: the protection domain * @ah_attr: the attributes of the AH + * @udata: pointer to user's input output buffer information. * * This may be called from interrupt context. * * Return: newly allocated ah */ struct ib_ah *rvt_create_ah(struct ib_pd *pd, - struct rdma_ah_attr *ah_attr) + struct rdma_ah_attr *ah_attr, + struct ib_udata *udata) { struct rvt_ah *ah; struct rvt_dev_info *dev = ib_to_rvt(pd->device); diff --git a/drivers/infiniband/sw/rdmavt/ah.h b/drivers/infiniband/sw/rdmavt/ah.h index 16105af99189..25271b48a683 100644 --- a/drivers/infiniband/sw/rdmavt/ah.h +++ b/drivers/infiniband/sw/rdmavt/ah.h @@ -51,7 +51,8 @@ #include struct ib_ah *rvt_create_ah(struct ib_pd *pd, - struct rdma_ah_attr *ah_attr); + struct rdma_ah_attr *ah_attr, + struct ib_udata *udata); int rvt_destroy_ah(struct ib_ah *ibah); int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);