From patchwork Wed Jan 9 09:26:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shamir Rabinovitch X-Patchwork-Id: 10753715 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 6008F14E5 for ; Wed, 9 Jan 2019 09:26:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5179428D96 for ; Wed, 9 Jan 2019 09:26:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45C3128E53; Wed, 9 Jan 2019 09:26:58 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SUBJ_OBFU_PUNCT_FEW, UNPARSEABLE_RELAY 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 E3B0C28D96 for ; Wed, 9 Jan 2019 09:26:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730358AbfAIJ05 (ORCPT ); Wed, 9 Jan 2019 04:26:57 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:38972 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730338AbfAIJ04 (ORCPT ); Wed, 9 Jan 2019 04:26:56 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x099IXJO063375; Wed, 9 Jan 2019 09:26:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=QvIRS014KQtTpDx3JyWTGf7F1d6eCNlqGwx9uHKcHH8=; b=ogl5o0ydq4N1YEX/n84eSIUAdfU4Mi6L6da+AdVBlRHa2DpBXazx3WGtkKlqfOtOk/mF yJ8cPoscQr0WYz+FeHhbcZhZwNOolZKLhEQ40N56XQnBYpxBjX+Cj/7XRC8HcpwDLmJH k7IudcPbZLn8EyK+Eb8b5eokdzqlAa2svlgW9eNWmB6+NdckDDwkupOA4BIxxJN2jNcy iwFBXZm0eTuWasWEeqJ5ACX7NykQ9uilkSEhbwF8frQkqH4+OnmkLkRtGG2SntisNHKP M400+ICYGGd8ZXpz+UDNsew2032xyCvvXf/9hppDH4dGqCZ7gYbeYfvfCfQkseiVUSXC 6g== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2ptn7r02d2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Jan 2019 09:26:50 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x099Qnil023513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Jan 2019 09:26:49 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x099QlAP027348; Wed, 9 Jan 2019 09:26:48 GMT Received: from localhost.localdomain (/10.175.22.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Jan 2019 01:26:47 -0800 From: Shamir Rabinovitch Cc: dledford@redhat.com, jgg@ziepe.ca, monis@mellanox.com, leonro@mellanox.com, majd@mellanox.com, shamir.rabinovitch@oracle.com, Leon Romanovsky , Yishai Hadas , Ariel Levkovich , Matan Barak , Parav Pandit , linux-rdma@vger.kernel.org Subject: [PATCH for-next v1 1/2] IB/{core,uverbs}: move ib_umem_xxx functions from ib_core to ib_uverbs Date: Wed, 9 Jan 2019 11:26:12 +0200 Message-Id: <20190109092630.23180-1-shamir.rabinovitch@oracle.com> X-Mailer: git-send-email 2.17.2 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9130 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901090080 To: unlisted-recipients:; (no To-header on input) 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 next patch will add dependency from ib_umem_get in to ib_uverbs so move the required ib_umem_xxx functionality to it's correct module - ib_uverbs - and avoid circular dependecy from the form ib_core -> ib_uverbs -> ib_core in depmod. Signed-off-by: Shamir Rabinovitch --- drivers/infiniband/core/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/core/Makefile b/drivers/infiniband/core/Makefile index 69dee36e0e89..313f2349b518 100644 --- a/drivers/infiniband/core/Makefile +++ b/drivers/infiniband/core/Makefile @@ -15,8 +15,6 @@ ib_core-y := packer.o ud_header.o verbs.o cq.o rw.o sysfs.o \ nldev.o restrack.o ib_core-$(CONFIG_SECURITY_INFINIBAND) += security.o -ib_core-$(CONFIG_INFINIBAND_USER_MEM) += umem.o -ib_core-$(CONFIG_INFINIBAND_ON_DEMAND_PAGING) += umem_odp.o ib_core-$(CONFIG_CGROUP_RDMA) += cgroup.o ib_cm-y := cm.o @@ -39,3 +37,5 @@ ib_uverbs-y := uverbs_main.o uverbs_cmd.o uverbs_marshall.o \ uverbs_std_types_flow_action.o uverbs_std_types_dm.o \ uverbs_std_types_mr.o uverbs_std_types_counters.o \ uverbs_uapi.o uverbs_std_types_device.o +ib_uverbs-$(CONFIG_INFINIBAND_USER_MEM) += umem.o +ib_uverbs-$(CONFIG_INFINIBAND_ON_DEMAND_PAGING) += umem_odp.o