Skip to content

Commit

Permalink
crypto: caam/qi - fix compilation with CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
horiag authored and herbertx committed Jul 18, 2017
1 parent 972b812 commit 1ed289f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/caam/qi.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ struct caam_qi_pcpu_priv {
} ____cacheline_aligned;

static DEFINE_PER_CPU(struct caam_qi_pcpu_priv, pcpu_qipriv);
static DEFINE_PER_CPU(int, last_cpu);

/*
* caam_qi_priv - CAAM QI backend private params
Expand Down Expand Up @@ -392,7 +393,6 @@ struct caam_drv_ctx *caam_drv_ctx_init(struct device *qidev,
dma_addr_t hwdesc;
struct caam_drv_ctx *drv_ctx;
const cpumask_t *cpus = qman_affine_cpus();
static DEFINE_PER_CPU(int, last_cpu);

num_words = desc_len(sh_desc);
if (num_words > MAX_SDLEN) {
Expand Down

0 comments on commit 1ed289f

Please sign in to comment.