From patchwork Tue Dec 18 20:55:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10736291 X-Patchwork-Delegate: jgg@ziepe.ca 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 94D6E13BF for ; Tue, 18 Dec 2018 20:55:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8370129213 for ; Tue, 18 Dec 2018 20:55:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 759842ACDA; Tue, 18 Dec 2018 20:55:20 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB 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 2FEB929213 for ; Tue, 18 Dec 2018 20:55:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726912AbeLRUzT (ORCPT ); Tue, 18 Dec 2018 15:55:19 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52730 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeLRUzT (ORCPT ); Tue, 18 Dec 2018 15:55:19 -0500 Received: by mail-wm1-f65.google.com with SMTP id m1so4019674wml.2 for ; Tue, 18 Dec 2018 12:55:17 -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:mime-version :content-transfer-encoding; bh=akb9xjZ0O6ryBHAU5SDKSVhtI4CvDZNHcgD9N8qJqEA=; b=El27W8KrxvPX3qduFWhgA9RPM4LycXGMqj/w6X4voWVAUppqCL8d8O9dhnZ54GJbS+ J50QkHpHXRp43suFSYKlBdYbRnMiHHuJHZQfjR63B0vQLaZegwPe1j516Y0IRmeIhxVD kLD9CP7eX3oMFVokitXwsXmVuyQxCEHPqlMyvYEk+sa5qfX39Cxt6xdoaCl9MOFaAQBJ ODHrlrn0dhWZd9j2J4eocvHEGXQ13HycsQgt7Hol/sO3AmyF+qEW9eb8TGnSqv7SJXRe kUpeR1EK6znVWejNG/VBMZfAOFGARKIK776WIiJqr99udCOBpQLpa2gXwonkj9HPEdnU ir0Q== 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:mime-version :content-transfer-encoding; bh=akb9xjZ0O6ryBHAU5SDKSVhtI4CvDZNHcgD9N8qJqEA=; b=MsZsa7oo0aozUZ0gUW70Cba8T3cpaGTnfCPXssvpm5r0uBQzJd+5NzYjHIsLvNl+Ru OOu+mpgG/QD9qkmyJmnAET5XmWVLwm+JtUO2h4hOjskZlgzWjAu0RMxHjua7Ezi8pNdN +vyGnj106fs0dsDSzRkfRw0PXkV/N2vq/l1Un9dK29il5ZELYDQUWmocIWIll3EjD9r8 9U0sorPgkgijTcUVCC17y6y23KEylu5Ckg49tonc0KI+MgB/REmmAmw/glG+pZb9Xk5L 2LWi2KjhlyFX8nlaz1t/3Uzp6rer4VEv5ViorJ7ctvpyMSc9fFUtfwdNX0Bi/zhD3Rcr q0bQ== X-Gm-Message-State: AA+aEWYT6shog0sIZn2PNLeybnMKL+iD+Wnrm0rnxw1IisFIjV5Ipvqf QD205n3j/eiXAHehwP9zMak= X-Google-Smtp-Source: AFSGD/UxDOXdmnCiiYDPSnZj+zzIsNcIob6T5Tj60voPcQYFVcmONCb2HBkeUGLnMsMhHo0FJyddig== X-Received: by 2002:a1c:a104:: with SMTP id k4mr4570163wme.54.1545166516850; Tue, 18 Dec 2018 12:55:16 -0800 (PST) Received: from localhost.localdomain (bzq-109-64-38-215.red.bezeqint.net. [109.64.38.215]) by smtp.gmail.com with ESMTPSA id v4sm3843461wme.6.2018.12.18.12.55.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 12:55:16 -0800 (PST) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, Kamal Heib Subject: [PATCH rdma-next] RDMA/i40iw: Make sure to initialize ib_device_ops Date: Tue, 18 Dec 2018 22:55:07 +0200 Message-Id: <20181218205507.10810-1-kamalheib1@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 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 initialization of the ib_device_ops was dropped by mistake when rebasing the ib_device_ops series, this patch fixes that. Fixes: 15644f57cb66 ("RDMA/i40iw: Initialize ib_device_ops struct") Signed-off-by: Kamal Heib --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 9e42ac2db3ca..475f32cf447e 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -2816,6 +2816,7 @@ static struct i40iw_ib_device *i40iw_init_rdma_device(struct i40iw_device *iwdev iwibdev->ibdev.iwcm->destroy_listen = i40iw_destroy_listen; memcpy(iwibdev->ibdev.iwcm->ifname, netdev->name, sizeof(iwibdev->ibdev.iwcm->ifname)); + ib_set_device_ops(&iwibdev->ibdev, &i40iw_dev_ops); return iwibdev; }