Skip to content

Commit 1ed289f

Browse files
horiagherbertx
authored andcommitted
crypto: caam/qi - fix compilation with CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y
caam/qi driver fails to compile when CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y. Fix it by making the offending local per_cpu variable global. Cc: <[email protected]> Fixes: 67c2315 ("crypto: caam - add Queue Interface (QI) backend support") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 972b812 commit 1ed289f

File tree

1 file changed

+1
-1
lines changed
  • drivers/crypto/caam

1 file changed

+1
-1
lines changed

drivers/crypto/caam/qi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ struct caam_qi_pcpu_priv {
5555
} ____cacheline_aligned;
5656

5757
static DEFINE_PER_CPU(struct caam_qi_pcpu_priv, pcpu_qipriv);
58+
static DEFINE_PER_CPU(int, last_cpu);
5859

5960
/*
6061
* caam_qi_priv - CAAM QI backend private params
@@ -392,7 +393,6 @@ struct caam_drv_ctx *caam_drv_ctx_init(struct device *qidev,
392393
dma_addr_t hwdesc;
393394
struct caam_drv_ctx *drv_ctx;
394395
const cpumask_t *cpus = qman_affine_cpus();
395-
static DEFINE_PER_CPU(int, last_cpu);
396396

397397
num_words = desc_len(sh_desc);
398398
if (num_words > MAX_SDLEN) {

0 commit comments

Comments
 (0)