diff options
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2022-06-10 23:30:08 +0900 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-06-11 17:11:02 +0200 |
commit | ccd8a9351f7b44bc1c0c8e4d39c0d6593b106fc4 (patch) | |
tree | 75cb7dde258a17f6a314ef4c3f24fb6ef3da3f52 /net/unix/sysctl_net_unix.c | |
parent | d7786af59860a113d62150c4328674e896da7810 (diff) | |
download | linux-ccd8a9351f7b44bc1c0c8e4d39c0d6593b106fc4.tar.gz linux-ccd8a9351f7b44bc1c0c8e4d39c0d6593b106fc4.tar.bz2 linux-ccd8a9351f7b44bc1c0c8e4d39c0d6593b106fc4.zip |
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/20220610143009.323579-7-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Max Staudt <max@enpas.org>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions