Skip to content

Commit 72f7fe2

Browse files
JasonYanHwLi Yang
authored andcommitted
soc: fsl: dpio: remove set but not used 'addr_cena'
This addresses the following gcc warning with "make W=1": drivers/soc/fsl/dpio/qbman-portal.c: In function ‘qbman_swp_enqueue_multiple_direct’: drivers/soc/fsl/dpio/qbman-portal.c:650:11: warning: variable ‘addr_cena’ set but not used [-Wunused-but-set-variable] 650 | uint64_t addr_cena; | ^~~~~~~~~ Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Li Yang <leoyang.li@nxp.com>
1 parent 750cf40 commit 72f7fe2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/soc/fsl/dpio/qbman-portal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,
647647
const uint32_t *cl = (uint32_t *)d;
648648
uint32_t eqcr_ci, eqcr_pi, half_mask, full_mask;
649649
int i, num_enqueued = 0;
650-
uint64_t addr_cena;
651650

652651
spin_lock(&s->access_spinlock);
653652
half_mask = (s->eqcr.pi_ci_mask>>1);
@@ -701,7 +700,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,
701700

702701
/* Flush all the cacheline without load/store in between */
703702
eqcr_pi = s->eqcr.pi;
704-
addr_cena = (size_t)s->addr_cena;
705703
for (i = 0; i < num_enqueued; i++)
706704
eqcr_pi++;
707705
s->eqcr.pi = eqcr_pi & full_mask;

0 commit comments

Comments
 (0)