Skip to content

Commit 61fc01f

Browse files
arndbherbertx
authored andcommitted
crypto: qat - add missing header inclusion
Without this header, the build of the new qat_6xxx driver fails when CONFIG_PCI_IOV is not set: In file included from drivers/crypto/intel/qat/qat_common/adf_gen6_shared.c:7: drivers/crypto/intel/qat/qat_common/adf_gen4_pfvf.h: In function 'adf_gen4_init_pf_pfvf_ops': drivers/crypto/intel/qat/qat_common/adf_gen4_pfvf.h:13:34: error: 'adf_pfvf_comms_disabled' undeclared (first use in this function) 13 | pfvf_ops->enable_comms = adf_pfvf_comms_disabled; | ^~~~~~~~~~~~~~~~~~~~~~~ Fixes: 17fd751 ("crypto: qat - add qat_6xxx driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 0a3cf32 commit 61fc01f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/crypto/intel/qat/qat_common/adf_gen2_pfvf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <linux/types.h>
77
#include "adf_accel_devices.h"
8+
#include "adf_common_drv.h"
89

910
#define ADF_GEN2_ERRSOU3 (0x3A000 + 0x0C)
1011
#define ADF_GEN2_ERRSOU5 (0x3A000 + 0xD8)

drivers/crypto/intel/qat/qat_common/adf_gen4_pfvf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#define ADF_GEN4_PFVF_H
55

66
#include "adf_accel_devices.h"
7+
#include "adf_common_drv.h"
78

89
#ifdef CONFIG_PCI_IOV
910
void adf_gen4_init_pf_pfvf_ops(struct adf_pfvf_ops *pfvf_ops);

0 commit comments

Comments
 (0)