diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2014-02-21 16:13:08 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2014-02-26 16:02:49 (GMT) |
commit | 9956b11b07fbf76a36edb02f8d8d38b920a79e46 (patch) | |
tree | 397cd4d0267e7e80ef4b93f375c89480efa571ca /drivers/net/ethernet/freescale/dpa | |
parent | 2ef8ef74f2f410f914290072df6ecffa0d9c9015 (diff) | |
download | linux-fsl-qoriq-9956b11b07fbf76a36edb02f8d8d38b920a79e46.tar.xz |
dpaa_eth: fix several sparse reports
Fix a series of sparse reports related to percpu types.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: I7a482a325d2457323ef895aa514779037b5c87a1
Reviewed-on: http://git.am.freescale.net:8181/9029
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
(cherry picked from commit 53f3f24c412966c1d7e98ec2edc95b192b490b8b)
Reviewed-on: http://git.am.freescale.net:8181/9193
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h index 2e4c3ec..ca67f43 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h @@ -261,7 +261,7 @@ struct dpa_bp { */ void __iomem *vaddr; /* current number of buffers in the bpool alloted to this CPU */ - int *percpu_count; + int __percpu *percpu_count; atomic_t refs; /* some bpools need to be seeded before use by this cb */ int (*seed_cb)(struct dpa_bp *); @@ -310,7 +310,7 @@ struct dpa_percpu_priv_s { }; struct dpa_priv_s { - struct dpa_percpu_priv_s *percpu_priv; + struct dpa_percpu_priv_s __percpu *percpu_priv; struct dpa_bp *dpa_bp; /* Store here the needed Tx headroom for convenience and speed * (even though it can be computed based on the fields of buf_layout) |