summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/abm
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-08-28 13:20:47 -0700
committerDavid S. Miller <davem@davemloft.net>2018-08-28 16:01:47 -0700
commit4152e58cb8c5cd390989f1e96092bce92c27c67a (patch)
tree4e9848030e25d532b9930fded15d134a25c24fa4 /drivers/net/ethernet/netronome/nfp/abm
parent640917dd81b622ac1c6e66b80be6a4174cbe3710 (diff)
downloadlinux-stable-4152e58cb8c5cd390989f1e96092bce92c27c67a.tar.gz
linux-stable-4152e58cb8c5cd390989f1e96092bce92c27c67a.tar.bz2
linux-stable-4152e58cb8c5cd390989f1e96092bce92c27c67a.zip
nfp: make RTsym users handle absolute symbols correctly
Make the RTsym users access the size via the helper, which takes care of special handling of absolute symbols. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Francois H. Theron <francois.theron@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/abm')
-rw-r--r--drivers/net/ethernet/netronome/nfp/abm/ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/abm/ctrl.c b/drivers/net/ethernet/netronome/nfp/abm/ctrl.c
index 53fb40aa83db..5b06f07c78cd 100644
--- a/drivers/net/ethernet/netronome/nfp/abm/ctrl.c
+++ b/drivers/net/ethernet/netronome/nfp/abm/ctrl.c
@@ -280,10 +280,10 @@ nfp_abm_ctrl_find_rtsym(struct nfp_pf *pf, const char *name, unsigned int size)
nfp_err(pf->cpp, "Symbol '%s' not found\n", name);
return ERR_PTR(-ENOENT);
}
- if (sym->size != size) {
+ if (nfp_rtsym_size(sym) != size) {
nfp_err(pf->cpp,
"Symbol '%s' wrong size: expected %u got %llu\n",
- name, size, sym->size);
+ name, size, nfp_rtsym_size(sym));
return ERR_PTR(-EINVAL);
}