From patchwork Mon May 8 20:07:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Zanussi X-Patchwork-Id: 680286 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DE81C7EE2D for ; Mon, 8 May 2023 20:07:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233781AbjEHUH5 (ORCPT ); Mon, 8 May 2023 16:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233514AbjEHUHr (ORCPT ); Mon, 8 May 2023 16:07:47 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3925959FF; Mon, 8 May 2023 13:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683576467; x=1715112467; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=j3IZVcJECFbyMWLrGNlFQPmLKRsGPfVxfHL1YGVHaIQ=; b=dxU4gPhXpjprQ71A0wPb2zGeVxFWzKM8cmCIfyro4phJcolhQjL6L3Qk kj0seCysNhlGTW+P1Q4Tb3g4yeIebL2IS9XzDD1k/2F0+ynhw0K0lwLOg 3q77gt1aISV0rrSnbLBmijayGgVyTG8sKVYaB9vpLDzRnmJF7y3ZdFLoX Gz+1yyQ78OiCQwlAMGmqcrrIVmb5dbd1XfM/vhdPBXsWn3wLO+mZCHR6H rQ3sN9uDsabtR6BfWTve5sJmEgvQIqFfH5oo1O9TUACYUJ8fGv2b5VEFg BNkGMw1a5/LeKYfRwVggQpyZxsq7EyQWFyhAh1uSe2zzTrBeqpPi+xJny g==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="348573624" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="348573624" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 13:07:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="788241624" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="788241624" Received: from sajmal-mobl1.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.74.4]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 13:07:45 -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, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v4 03/15] dmaengine: idxd: Export drv_enable/disable and related functions Date: Mon, 8 May 2023 15:07:25 -0500 Message-Id: <8fe2bc424a5eb4c2253c40477d85f4e4df67f10f.1683573703.git.zanussi@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org To allow idxd sub-drivers to enable and disable wqs, export them. Signed-off-by: Tom Zanussi Reviewed-by: Dave Jiang Reviewed-by: Fenghua Yu --- drivers/dma/idxd/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c index 5f321f3b4242..af1aa88a66c1 100644 --- a/drivers/dma/idxd/device.c +++ b/drivers/dma/idxd/device.c @@ -1406,6 +1406,7 @@ int drv_enable_wq(struct idxd_wq *wq) err: return rc; } +EXPORT_SYMBOL_NS_GPL(drv_enable_wq, IDXD); void drv_disable_wq(struct idxd_wq *wq) { @@ -1427,6 +1428,7 @@ void drv_disable_wq(struct idxd_wq *wq) wq->type = IDXD_WQT_NONE; wq->client_count = 0; } +EXPORT_SYMBOL_NS_GPL(drv_disable_wq, IDXD); int idxd_device_drv_probe(struct idxd_dev *idxd_dev) {