Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1987601imu; Fri, 14 Dec 2018 04:07:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJsxnItgpedCMoFvbUTy4faQ23185gWMfs3O4dL/zgVd3ZD90UJLuYD2eZQcgtdsHfwwbc X-Received: by 2002:a63:ac46:: with SMTP id z6mr2486364pgn.162.1544789260632; Fri, 14 Dec 2018 04:07:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789260; cv=none; d=google.com; s=arc-20160816; b=1DlP7n7wD6zNodQf1kSLZ8O4L8uO4POsZ9z2zhYcoViC4a3WoHZPPc+sqeJjnXHKje DHRzyKXc1wwKJnVXLWvFwzD0IPyfle2A+32LwTK7vBimoBMCxnH7PgLfopph9pVOsgD0 DYY1a5tNs5curawCcmtVY0mGDdv0wV/WZL9FhYtpQLFjANbZUMc6SVlBkomudRokUbxb 88m5gcTxUPszHK3JFtcZQwaYsyZ2vuz9hWHZghaOp6mWBPBq/lG4FRJiixKGdZjyoKYv CvQbefMN+NK6jA9jK0BwDX3IPGgox3un7tzQzbfCe/3yjGlHvTA4P6y2NOGNsDjA9U8p mxhA== 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=qo5OumHtzeWPnrk8/aWiNIQYb5zOgRTYgUD78QnEg5g=; b=M3hj30du9LfwjhvucfzAbllCPub4nYRuFo/Ssf+JzUZADYNj3oECSUDLasrTwZIqRn oOpK7aGctgfraioeTTzGgYrFHbnCj1eLkT60jZloVoGj+gAe0Z5zgBRBsOMAc+RddfFo DKXfmaXqwq7jnvRkwIf8z3eI7ZdAz0HQsoEt3GVaak9UxeR0YQGSjp9ZiP3/XOFzm1qk D3pghTDIGehV0KJktdQIh1U61VnqfSWgVxh6MmOvf1LHkIuT7AD1kxPposBT7T2Z+6fH vpVWVZNHVnUpeGZRpRWGyeiIo1TqOkr9lRe3+weaLvByDc2ChubAsmW+DhYE4OF4iTKW 3EBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="q/gZA/iJ"; 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 l9si3971665pgj.543.2018.12.14.04.07.25; Fri, 14 Dec 2018 04:07:40 -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="q/gZA/iJ"; 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 S1730654AbeLNMFN (ORCPT + 99 others); Fri, 14 Dec 2018 07:05:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:49952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730184AbeLNMFK (ORCPT ); Fri, 14 Dec 2018 07:05:10 -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 214C221479; Fri, 14 Dec 2018 12:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789109; bh=UaaZTQWEhQR3bRTLZlYkEx4miRdMFJMPypQB0A+5Xsw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q/gZA/iJsVkfnnA4Fek1fQibOwGIEs2lB4kVVFBC7+8pd05JkE7efDqlSGT9aY9gs PeLVVik+eEFS0ocwhzF3jvKzq+mfp9Vg6klZ9D0DbvaP4DkVnWobWTQAqowyJqAkQR CKADwExmGWvIcXiXk0GJP/x362DQCz+QUzSaG+fM= 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.19 075/142] RDMA/rdmavt: Fix rvt_create_ah function signature Date: Fri, 14 Dec 2018 12:59:20 +0100 Message-Id: <20181214115750.061062619@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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.19-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 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); -- 2.19.1