diff options
author | David S. Miller <davem@davemloft.net> | 2021-10-01 14:19:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-01 14:19:01 +0100 |
commit | 4f42ad2011d2fcbd89f5cdf56121271a8cd5ee5d (patch) | |
tree | 2ac618958bf66597aa813896b3a2eff068d1e05e /net/mctp/route.c | |
parent | ea2dd331bfaaeba74ba31facf437c29044f7d4cb (diff) | |
parent | bbde430319eecf8e580a547405cd0536bb35f482 (diff) |
Merge branch 'mctp-kunit-tests'
Jeremy Kerr says:
====================
MCTP kunit tests
This change adds some initial kunit tests for the MCTP core. We'll
expand the coverage in a future series, and augment with a few
selftests, but this establishes a baseline set of tests for now.
Thanks to the kunit folks for the framework!
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mctp/route.c')
-rw-r--r-- | net/mctp/route.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mctp/route.c b/net/mctp/route.c index e20f3096d067..04781459b2be 100644 --- a/net/mctp/route.c +++ b/net/mctp/route.c @@ -11,6 +11,7 @@ */ #include <linux/idr.h> +#include <linux/kconfig.h> #include <linux/mctp.h> #include <linux/netdevice.h> #include <linux/rtnetlink.h> @@ -1228,3 +1229,7 @@ void __exit mctp_routes_exit(void) rtnl_unregister(PF_MCTP, RTM_GETROUTE); dev_remove_pack(&mctp_packet_type); } + +#if IS_ENABLED(CONFIG_MCTP_TEST) +#include "test/route-test.c" +#endif |