Loading
RDMA/hns: Fix dereference of noderef expression
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB30V8 ---------------------------------------------------------------------- Fix sparse warnings: dereference of noderef expression. This is because curr_active_slave is defined as: struct bonding { ... struct slave __rcu *curr_active_slave; ... }; __rcu contains __attribute__((noderef)) inside, which disallows callers dereferece it directly. Fixes: 2004b3f9 ("RDMA/hns: Support RoCE bonding") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>