net: openvswitch: remove unnecessary linux/genetlink.h include
authorJakub Kicinski <kuba@kernel.org>
Fri, 29 Mar 2024 17:57:09 +0000 (10:57 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Apr 2024 04:44:34 +0000 (21:44 -0700)
The only legit reason I could think of for net/genetlink.h
and linux/genetlink.h to be separate would be if one was
included by other headers and we wanted to keep it lightweight.
That is not the case, net/openvswitch/meter.h includes
linux/genetlink.h but for no apparent reason (for struct genl_family
perhaps? it's not necessary, types of externs do not need
to be known).

Link: https://lore.kernel.org/r/20240329175710.291749-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/meter.h

index ed11cd12b512faecc493df83e347f91a4b0299f5..8bbf983cd2441ffd1bb5b96f85c7b83944b19df5 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/kernel.h>
 #include <linux/netlink.h>
 #include <linux/openvswitch.h>
-#include <linux/genetlink.h>
 #include <linux/skbuff.h>
 #include <linux/bits.h>