aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorJuhee Kang <[email protected]>2022-02-20 15:32:50 +0000
committerJakub Kicinski <[email protected]>2022-02-21 20:43:10 -0800
commita0b92e0514bb3c5e57c33fd720724a629f67e042 (patch)
treefae08e62f84df38c62de933e627229b72e3fa056 /include/linux/debugobjects.h
parent7b779cc8846ae0bfdad8eca7b751109a5cf930b7 (diff)
net: hsr: fix hsr build error when lockdep is not enabled
In hsr, lockdep_is_held() is needed for rcu_dereference_bh_check(). But if lockdep is not enabled, lockdep_is_held() causes a build error: ERROR: modpost: "lockdep_is_held" [net/hsr/hsr.ko] undefined! Thus, this patch solved by adding lockdep_hsr_is_held(). This helper function calls the lockdep_is_held() when lockdep is enabled, and returns 1 if not defined. Fixes: e7f27420681f ("net: hsr: fix suspicious RCU usage warning in hsr_node_get_first()") Reported-by: Eric Dumazet <[email protected]> Signed-off-by: Juhee Kang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions