diff options
author | Feng Liu <[email protected]> | 2023-03-10 07:34:27 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-04-21 03:02:30 -0400 |
commit | 1adbd6b2fc0c09645c4c30c5eb47beaa3e6ea4b4 (patch) | |
tree | 11904487d835091230aefcb3a885da19567119d3 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 6b27cd84a7917b995f66c052fd3453fdbd6e3d70 (diff) |
virtio_ring: Avoid using inline for small functions
According to kernel coding style [1], defining inline functions is not
necessary and beneficial for simple functions. Hence clean up the code
by removing the inline keyword.
It is verified with GCC 12.2.0, the generated code with/without inline
is same. Additionally tested with pktgen and iperf, and verified the
result, the pps test results are the same in the cases of with/without
inline.
Iperf and pps of pktgen for virtio-net didn't change before and after
the change.
[1]
https://www.kernel.org/doc/html/v6.2-rc3/process/coding-style.html#the-inline-disease
Signed-off-by: Feng Liu <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Reviewed-by: Parav Pandit <[email protected]>
Reviewed-by: Gavin Li <[email protected]>
Reviewed-by: Bodong Wang <[email protected]>
Reviewed-by: David Edmondson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions