Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp179244pxb; Thu, 12 Aug 2021 13:44:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjxXCB1F8b5xZatDXxaJCnwFgCmCzqZa9p/lFbJIDX+R5qq3DTDKmctK39RwGAOaz3F+BU X-Received: by 2002:aa7:d144:: with SMTP id r4mr7664638edo.111.1628801084484; Thu, 12 Aug 2021 13:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628801084; cv=none; d=google.com; s=arc-20160816; b=uwj9G+VsyEe/g0c+Jt6fBKyUmZ0TwD8CvBzY8ocka2VJ6DTR0muB/qrXWMr53qiwEB EjZNGDilX+gKXP2q/SqI8AMlG/7ZsR/e+PpdRdZp24aQvREizJDSTO/xKHXXdi/83F1U mkOfixinPI/fHV7kyFj0ah3S6tJZJoINzUT3BM34EnFbusEX2Dma1Vk91Sc6y84Z1i5r 43rnFJgzKUwxRGJsuCeZtTP8HF51S5UIcFp1NQEFgPdgHxvY0t2vmacKZcSwr1vy+Rmn f+8IQXGzfpmkkGXIdiFm4CinumhxbREkCLO9JuTNkAtVwzx5XGJ6rH8+Olyh2hqY/h1j olSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=QmOvpKPKwnQOLYeLIuP424AkCCvXgs0sHY5XygGs6kk=; b=j3T8ifHNfvzjeTMEPndoJLdXFeGXUPJAeI/Al4tnBhlkLYRrobnIb06m4CvUeREkPw xFuBHKgiYTz/4LapSeYlCl93G6S0iEQgj77YRt4KQ0sVT6gGbW/503lNPQIUix3lNqkp qwBwns3qJfk/cqGbMPXNsh2OJk62fZh8W7l9PdydlgcySzI+CRVH2zn7vvSED9Ux+EFh imQJnqzJHKarlxC4O+OPJiJPGYQLLho87jU+qhXxruxliTVd39j5oDvvDeuT9B5lXp0o /SQxHFLyhMw79AWMVICPkC5D+d2o+nyJfewKbANoXb8NWP0SQm7kV08zAg4Qw/kbkIwN 8fFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si3803162edt.203.2021.08.12.13.44.20; Thu, 12 Aug 2021 13:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236576AbhHLUWV (ORCPT + 99 others); Thu, 12 Aug 2021 16:22:21 -0400 Received: from mga03.intel.com ([134.134.136.65]:4146 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232564AbhHLUWU (ORCPT ); Thu, 12 Aug 2021 16:22:20 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10074"; a="215474005" X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="215474005" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 13:21:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="517608559" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.51]) by FMSMGA003.fm.intel.com with ESMTP; 12 Aug 2021 13:21:40 -0700 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Marco Chiappero , Giovanni Cabiddu , Fiona Trahe Subject: [PATCH 02/20] crypto: qat - remove empty sriov_configure() Date: Thu, 12 Aug 2021 21:21:11 +0100 Message-Id: <20210812202129.18831-3-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210812202129.18831-1-giovanni.cabiddu@intel.com> References: <20210812202129.18831-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Marco Chiappero Remove the empty implementation of sriov_configure() and set the sriov_configure member of the pci_driver structure to NULL. This way, if a user tries to enable VFs on a device, when kernel and driver are built with CONFIG_PCI_IOV=n, the kernel reports an error message saying that the driver does not support SRIOV configuration via sysfs. Signed-off-by: Marco Chiappero Co-developed-by: Giovanni Cabiddu Signed-off-by: Giovanni Cabiddu Reviewed-by: Fiona Trahe --- drivers/crypto/qat/qat_common/adf_common_drv.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/qat/qat_common/adf_common_drv.h b/drivers/crypto/qat/qat_common/adf_common_drv.h index c61476553728..c7deca7f0607 100644 --- a/drivers/crypto/qat/qat_common/adf_common_drv.h +++ b/drivers/crypto/qat/qat_common/adf_common_drv.h @@ -205,10 +205,7 @@ void adf_exit_pf_wq(void); int adf_init_vf_wq(void); void adf_exit_vf_wq(void); #else -static inline int adf_sriov_configure(struct pci_dev *pdev, int numvfs) -{ - return 0; -} +#define adf_sriov_configure NULL static inline void adf_disable_sriov(struct adf_accel_dev *accel_dev) { -- 2.31.1