Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4987133rwb; Mon, 31 Jul 2023 16:10:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGF9eYnuR9LBnA12mQdu01vkWVFqw/62tmFRM4zaaJGClX7uT3R/RWxQYfiqJpL79eoHw4E X-Received: by 2002:a19:5009:0:b0:4fe:19ef:879e with SMTP id e9-20020a195009000000b004fe19ef879emr663445lfb.28.1690845016169; Mon, 31 Jul 2023 16:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690845016; cv=none; d=google.com; s=arc-20160816; b=lWnZpfhsJtqeIVvol/ZcQ4D/KsdN3OwWWTvuaCi77bSG9gyW7SVYF2dZ4MCiocJiZX /Hs6h4rNUF0KSfLFo0MosvLldShaB0YGhHvPH1Sn9HbVM3P8a+QDhZTvYfMR37HbUmfr opmWPnvS8rWu0gJuC3qOwF9RdfKMX6FKK+4Rry6bo994i7P28EZ1UzTuvDNcRy2hXCYw kUtQ8oQo5EaBAhHBzpRnkE5ouEGbxFBhqcLZ615uKzTMAzVEZ6XSNNkccRnl046T4FIy /oLz2pTuzD6yfGJJiMYDeW5Wq53/oZ2UHIetOOx5/tDBOXxu2XVvY0oyPlB7aR76Uq/+ lwjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xUCnNEkutjRm+xP8XozB0tO0wGbiHMTjxATOl4/JdOA=; fh=KKYX96Dyn269sAN9Nbt8IfOk86mWVdLVST7Tbph7224=; b=R/xmPo+BiJ9gOLUwmdTnQ88GRv1OfO7e21QMkL1/l/JKrIj90I3agzBo9DCjk3k1Vf Hx4nDW4aMVdLBZHo8Upzb9cmLvA8o8Oq5snKB5P+kvyIgJCLieHD8ciEhW3/6aU+5bqa IeIgxqfmcs7ers9HSznjWgFMySHbkfRcOSLlZqgSEW+76e+YAmNqcNO4kltoreLgLJ1t kpTc+l4UuaY0I9hPN8TozxTp0yY3tTlGkX5HHwY4YUDy3S3K4DNH50IAwQ3GM43P4Q7s kXWtA1hAAhrejJOvHOOKt6mjHu/uFjWqh2Kv/A9tl9raIfu0jAzMroZ4+046U65R4Zof Kgyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q+XMHKPz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020aa7d293000000b0051e15629c02si7171397edq.564.2023.07.31.16.09.48; Mon, 31 Jul 2023 16:10:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q+XMHKPz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231345AbjGaVaS (ORCPT + 99 others); Mon, 31 Jul 2023 17:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjGaVaE (ORCPT ); Mon, 31 Jul 2023 17:30:04 -0400 Received: from mgamail.intel.com (unknown [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1A81BD3; Mon, 31 Jul 2023 14:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690838994; x=1722374994; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yHOF6DrEvuRACHmnKROaRDudHiYk2POqQye99IoY3vM=; b=Q+XMHKPzphiYqULZb/e+JP0kSCnQZqQStfRP+2E9Nwcg5NIXZP+eN9Kj garS4Rm7cQCWmL4m3eEwCLped4jU6YVmVH2xkWnyC1BzyXnP+nSz2ja+f RHRz9RVtwIXft9VK2B0XiFOxeflICRRbzcCohKd6ZFct7q3lMupfwT32W htJhmiYorrrRQnSwWrHEHdp/scQp0TwTjW62g6T7AqNDimVMc7PIvGBNy A9CTdqvtQLXQp44TuPgQyaPcpKwZ4O2o/r+iQq1fuM0ZaBmElThKYAftt 6KJKxF2zHrmWUQegpEdWp8mRO/4Lq+yClqY7q3ajUW4mx5mRLX/moO7Z9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="349425780" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="349425780" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 14:29:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="728428401" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="728428401" Received: from sgimmeke-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.91.213]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 14:29:52 -0700 From: Tom Zanussi To: herbert@gondor.apana.org.au, davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org Cc: dave.jiang@intel.com, tony.luck@intel.com, wajdi.k.feghali@intel.com, james.guilford@intel.com, kanchana.p.sridhar@intel.com, vinodh.gopal@intel.com, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v8 04/14] dmaengine: idxd: Export descriptor management functions Date: Mon, 31 Jul 2023 16:29:29 -0500 Message-Id: <20230731212939.1391453-5-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230731212939.1391453-1-tom.zanussi@linux.intel.com> References: <20230731212939.1391453-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org To allow idxd sub-drivers to access the descriptor management functions, export them. Signed-off-by: Tom Zanussi Reviewed-by: Dave Jiang Reviewed-by: Fenghua Yu --- drivers/dma/idxd/submit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/idxd/submit.c b/drivers/dma/idxd/submit.c index c01db23e3333..5e651e216094 100644 --- a/drivers/dma/idxd/submit.c +++ b/drivers/dma/idxd/submit.c @@ -61,6 +61,7 @@ struct idxd_desc *idxd_alloc_desc(struct idxd_wq *wq, enum idxd_op_type optype) return __get_desc(wq, idx, cpu); } +EXPORT_SYMBOL_NS_GPL(idxd_alloc_desc, IDXD); void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) { @@ -69,6 +70,7 @@ void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) desc->cpu = -1; sbitmap_queue_clear(&wq->sbq, desc->id, cpu); } +EXPORT_SYMBOL_NS_GPL(idxd_free_desc, IDXD); static struct idxd_desc *list_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie, struct idxd_desc *desc) @@ -215,3 +217,4 @@ int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc) percpu_ref_put(&wq->wq_active); return 0; } +EXPORT_SYMBOL_NS_GPL(idxd_submit_desc, IDXD); -- 2.34.1