diff options
| author | Vincent Mailhol <[email protected]> | 2022-06-10 23:30:08 +0900 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2022-06-11 17:11:02 +0200 |
| commit | ccd8a9351f7b44bc1c0c8e4d39c0d6593b106fc4 (patch) | |
| tree | 75cb7dde258a17f6a314ef4c3f24fb6ef3da3f52 /tools/perf/scripts/python/sctop.py | |
| parent | d7786af59860a113d62150c4328674e896da7810 (diff) | |
can: skb: move can_dropped_invalid_skb() and can_skb_headroom_valid() to skb.c
The functions can_dropped_invalid_skb() and can_skb_headroom_valid()
grew a lot over the years to a point which it does not make much sense
to have them defined as static inline in header files. Move those two
functions to the .c counterpart of skb.h.
can_skb_headroom_valid()'s only caller being
can_dropped_invalid_skb(), the declaration is removed from the
header. Only can_dropped_invalid_skb() gets its symbol exported.
While doing so, do a small cleanup: add brackets around the else block
in can_dropped_invalid_skb().
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Vincent Mailhol <[email protected]>
Reported-by: kernel test robot <[email protected]>
Acked-by: Max Staudt <[email protected]>
Tested-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions