From patchwork Fri Sep 22 10:15:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Segarra Fernandez X-Patchwork-Id: 726767 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 55DD6CD4F4F for ; Fri, 22 Sep 2023 10:17:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbjIVKRz (ORCPT ); Fri, 22 Sep 2023 06:17:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjIVKRy (ORCPT ); Fri, 22 Sep 2023 06:17:54 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF94A9 for ; Fri, 22 Sep 2023 03:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695377868; x=1726913868; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nOpnjYO8cnHiXkmLkpb3bPewKEwhboyBzwsk8IQ/mok=; b=BJwJOUG28fhlrZsI0R0NjNl/vRMyhA5257Ku1oZD8E/AeS2RcETx2mx/ ZPV/O7Xd4yPvCMeizb0D9U2qk9DNy0y66DG4EfWjSsPyQsC2gwZokcUKr 66WCsSTUBlpReVH5PaJPZWTo4X8zZETdKNHNhb3g/n+lkLZ9bpf3WO285 0nf0LfDLD3FYM+dzA+BnKFZ/oBgOQVYnLXzyMoJ889VUAAIq5UHhq02Sj cxB+SRCTwwDVyGPYTMOMo9+Hs34aHNwZHJWj/9d3cZu7XoFCeyYxSfzgJ 4Z+DN0La45GME8WBHpBNdkyVl/Q3Q7855eKQ1R/5ODF5b4G4Fk4pI8x6i w==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="371115937" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="371115937" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 03:17:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="871199523" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="871199523" Received: from r007s007_zp31l10c01.deacluster.intel.com (HELO fedora.deacluster.intel.com) ([10.219.171.169]) by orsmga004.jf.intel.com with ESMTP; 22 Sep 2023 03:17:47 -0700 From: Lucas Segarra Fernandez To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Lucas Segarra Fernandez , Giovanni Cabiddu Subject: [PATCH v5 1/2] crypto: qat - refactor included headers Date: Fri, 22 Sep 2023 12:15:26 +0200 Message-ID: <20230922101541.19408-2-lucas.segarra.fernandez@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230922101541.19408-1-lucas.segarra.fernandez@intel.com> References: <20230922101541.19408-1-lucas.segarra.fernandez@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Include kernel.h for GENMASK(), kstrtobool() and types. Add forward declaration for struct adf_accel_dev. Remove unneeded include. This change doesn't introduce any function change. Signed-off-by: Lucas Segarra Fernandez Reviewed-by: Giovanni Cabiddu --- drivers/crypto/intel/qat/qat_common/adf_gen4_pm.c | 2 ++ drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.c b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.c index 34c6cd8e27c0..b0e60471163c 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.c +++ b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.c @@ -2,6 +2,8 @@ /* Copyright(c) 2022 Intel Corporation */ #include #include +#include + #include "adf_accel_devices.h" #include "adf_common_drv.h" #include "adf_gen4_pm.h" diff --git a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h index c2768762cca3..39d37b352b45 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h +++ b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h @@ -3,7 +3,9 @@ #ifndef ADF_GEN4_PM_H #define ADF_GEN4_PM_H -#include "adf_accel_devices.h" +#include + +struct adf_accel_dev; /* Power management registers */ #define ADF_GEN4_PM_HOST_MSG (0x50A01C)