Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2016173imu; Fri, 14 Dec 2018 04:33:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/UxUVXh7tvEmt8GqLx6mbbpmSLQIsbxH7IWX4qHfQmehwaKyzdbrXQ2tz6ETJ4ljCFetgeu X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr2653519plq.195.1544790798803; Fri, 14 Dec 2018 04:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544790798; cv=none; d=google.com; s=arc-20160816; b=0DZYjmkxoEiu3VVwtWk8aaho5A4ejbOmf++QU0waF+gh/B1WvkUQmbKlaX2fHwribU yloh23zYmi0td5pwiXIUv3bcFx0wwtOdQWRfVU1zY09LgyCNhSIyVkiYNi8fkji5+zaT Gff4Yvz/lgEpk2Ykyy2r3Q29I7XL+26Q+djxGGGRjD+Pj9Jzt7cVQaXYlo1txh/5rFRx micNL3LUT1oTUJas8c3X0FPmdRG7IvAOjB8Ht2EFMD9eGcpvAmM6b0SWvWWQeDNFDZbt FCbSHH8AfzRhpEA4P1Mqr2jj1HHNUr/sFLc7nKTSqT5nwkZwVPAcU2Syzmjx7ndS4adP IcEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PG+lLTiTq6ni5DKUfoxJXckuI9Du+fqCgfaWrb0sRwI=; b=n/+AhlWe/clNd27IznIKXp9Ca4Y5aAzehtWnDWT1RKLQp+QjMx5BWhCQFySSthTjof xuqFUbdcuIkbe+vZJezEk+myLf/PcrsV8Ri4C4qoVXxbitSh3Xe4+JUy1NPv0LVqQ3L0 dd2zfE+bseXWMFEjAb8xDW7UiSmW/8T1wSnCmzdUQzZLL/m1chUbW52KMd4N5JFq2qlU 5h3EeNPnDObAKYoXKpjveMJnEVhviK4oW8cXrAYP7jQDNv5om4CTMppqPyU/rXa3f8AN rSD8SmMG5QS+aqMj1TCNkLF0GBCiMatEQBtFhbFb1T1rJvDkmkNRVsvsDzAT9715lWAU //WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sOZCq+5w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si3961671plz.233.2018.12.14.04.33.02; Fri, 14 Dec 2018 04:33:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sOZCq+5w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730542AbeLNMJM (ORCPT + 99 others); Fri, 14 Dec 2018 07:09:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:54800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731403AbeLNMJJ (ORCPT ); Fri, 14 Dec 2018 07:09:09 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 820522148E; Fri, 14 Dec 2018 12:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789349; bh=1iERpigCWub/RARw5vFEopUscvgeaKEilCsr67Tphwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sOZCq+5wFum6HjnZ7GQQPsPwoKArH54X4/nABflcWD7Y75sCskWAkSUjiwdSOsWvu o0Nmsaf0/iPT+0H1rq30D4/PX4beu7fWbbruLAZo8vEtnS3117phreYy9YBnXaTXs5 o9QRFr2P60SLEl5rRxq0bdb30t5qTe+zh57IJ6kA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kamal Heib , Dennis Dalessandro , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.14 40/89] RDMA/rdmavt: Fix rvt_create_ah function signature Date: Fri, 14 Dec 2018 12:59:53 +0100 Message-Id: <20181214115731.659863939@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115729.658859279@linuxfoundation.org> References: <20181214115729.658859279@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 4f32fb921b153ae9ea280e02a3e91509fffc03d3 ] rdmavt uses a crazy system that looses the type checking when assinging functions to struct ib_device function pointers. Because of this the signature to this function was not changed when the below commit revised things. Fix the signature so we are not calling a function pointer with a mismatched signature. Fixes: 477864c8fcd9 ("IB/core: Let create_ah return extended response to user") Signed-off-by: Kamal Heib Reviewed-by: Dennis Dalessandro Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- 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 ba3639a0d77c..48ea5b8207f0 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); -- 2.19.1