]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crypto/qat/qcccrypto.cc
import quincy 17.2.0
[ceph.git] / ceph / src / crypto / qat / qcccrypto.cc
index 410727d3b61961480fa3013be6db75368289cfc8..a3f2537264348fcb79dec5ff2a0ec48785836b8f 100644 (file)
@@ -4,6 +4,8 @@
 #include <pthread.h>
 #include "common/debug.h"
 #include "include/scope_guard.h"
+#include "common/dout.h"
+#include "common/errno.h"
 
 // -----------------------------------------------------------------------------
 #define dout_context g_ceph_context
@@ -11,8 +13,7 @@
 #undef dout_prefix
 #define dout_prefix _prefix(_dout)
 
-static ostream&
-_prefix(std::ostream* _dout)
+static std::ostream& _prefix(std::ostream* _dout)
 {
   return *_dout << "QccCrypto: ";
 }
@@ -28,6 +29,7 @@ static std::atomic<bool> init_called = { false };
 void* QccCrypto::crypt_thread(void *args) {
   struct qcc_thread_args *thread_args = (struct qcc_thread_args *)args;
   thread_args->qccinstance->do_crypt(thread_args);
+  return thread_args;
 }
 
 void QccCrypto::QccFreeInstance(int entry) {