remove unused includes
This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "networkd.h"
|
||||
#include "networkd-link.h"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "util.h"
|
||||
#include "conf-parser.h"
|
||||
#include "fw-util.h"
|
||||
#include "network-internal.h"
|
||||
#include "networkd.h"
|
||||
#include "networkd-link.h"
|
||||
|
||||
|
||||
@@ -19,16 +19,11 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <net/if.h>
|
||||
#include <net/ethernet.h>
|
||||
|
||||
#include "networkd.h"
|
||||
#include "networkd-netdev.h"
|
||||
#include "networkd-link.h"
|
||||
#include "network-internal.h"
|
||||
#include "path-util.h"
|
||||
#include "conf-files.h"
|
||||
#include "conf-parser.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -28,12 +28,9 @@
|
||||
#include "fileio.h"
|
||||
#include "bus-util.h"
|
||||
#include "udev-util.h"
|
||||
#include "libudev-private.h"
|
||||
#include "network-internal.h"
|
||||
#include "networkd-link.h"
|
||||
#include "networkd-netdev.h"
|
||||
#include "conf-parser.h"
|
||||
#include "dhcp-lease-internal.h"
|
||||
|
||||
bool link_dhcp6_enabled(Link *link) {
|
||||
if (link->flags & IFF_LOOPBACK)
|
||||
|
||||
@@ -27,13 +27,11 @@
|
||||
#include "networkd.h"
|
||||
#include "networkd-netdev.h"
|
||||
#include "networkd-link.h"
|
||||
#include "network-internal.h"
|
||||
#include "libudev-private.h"
|
||||
#include "udev-util.h"
|
||||
#include "rtnl-util.h"
|
||||
#include "bus-util.h"
|
||||
#include "def.h"
|
||||
#include "mkdir.h"
|
||||
#include "virt.h"
|
||||
|
||||
#include "sd-rtnl.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <linux/if_bonding.h>
|
||||
|
||||
#include "conf-parser.h"
|
||||
|
||||
@@ -20,11 +20,7 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#include "sd-rtnl.h"
|
||||
#include "networkd-netdev-bridge.h"
|
||||
#include "missing.h"
|
||||
|
||||
|
||||
@@ -20,12 +20,7 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
#include <linux/veth.h>
|
||||
|
||||
#include "sd-rtnl.h"
|
||||
#include "networkd-netdev-dummy.h"
|
||||
|
||||
const NetDevVTable dummy_vtable = {
|
||||
|
||||
@@ -20,12 +20,9 @@
|
||||
***/
|
||||
|
||||
#include <net/if.h>
|
||||
#include <linux/if_link.h>
|
||||
|
||||
#include "networkd-netdev-ipvlan.h"
|
||||
#include "network-internal.h"
|
||||
#include "conf-parser.h"
|
||||
#include "list.h"
|
||||
|
||||
static const char* const ipvlan_mode_table[_NETDEV_IPVLAN_MODE_MAX] = {
|
||||
[NETDEV_IPVLAN_MODE_L2] = "L2",
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
#include <net/if.h>
|
||||
|
||||
#include "networkd-netdev-macvlan.h"
|
||||
#include "network-internal.h"
|
||||
#include "conf-parser.h"
|
||||
#include "list.h"
|
||||
|
||||
static const char* const macvlan_mode_table[_NETDEV_MACVLAN_MODE_MAX] = {
|
||||
[NETDEV_MACVLAN_MODE_PRIVATE] = "private",
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
#include <linux/ip.h>
|
||||
@@ -29,7 +28,6 @@
|
||||
#include "sd-rtnl.h"
|
||||
#include "networkd-netdev-tunnel.h"
|
||||
#include "networkd-link.h"
|
||||
#include "network-internal.h"
|
||||
#include "util.h"
|
||||
#include "missing.h"
|
||||
#include "conf-parser.h"
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
#include <linux/veth.h>
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
#include <net/if.h>
|
||||
|
||||
#include "networkd-netdev-vlan.h"
|
||||
#include "network-internal.h"
|
||||
#include "list.h"
|
||||
|
||||
static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_rtnl_message *req) {
|
||||
VLan *v = VLAN(netdev);
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#include "sd-rtnl.h"
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "networkd-netdev.h"
|
||||
#include "networkd-link.h"
|
||||
#include "network-internal.h"
|
||||
#include "path-util.h"
|
||||
#include "conf-files.h"
|
||||
#include "conf-parser.h"
|
||||
#include "list.h"
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "networkd.h"
|
||||
#include "hashmap.h"
|
||||
#include "list.h"
|
||||
#include "set.h"
|
||||
#include "in-addr-util.h"
|
||||
|
||||
typedef struct NetDevVTable NetDevVTable;
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "bus-util.h"
|
||||
#include "bus-label.h"
|
||||
#include "strv.h"
|
||||
|
||||
#include "networkd.h"
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <ctype.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#include "path-util.h"
|
||||
#include "conf-files.h"
|
||||
#include "conf-parser.h"
|
||||
#include "util.h"
|
||||
|
||||
@@ -19,15 +19,12 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
#include "networkd.h"
|
||||
#include "networkd-link.h"
|
||||
|
||||
#include "utf8.h"
|
||||
#include "util.h"
|
||||
#include "conf-parser.h"
|
||||
#include "network-internal.h"
|
||||
|
||||
int route_new_static(Network *network, unsigned section, Route **ret) {
|
||||
_cleanup_route_free_ Route *route = NULL;
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
#include "sd-network.h"
|
||||
#include "strv.h"
|
||||
|
||||
#include "networkd-wait-online-link.h"
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "rtnl-util.h"
|
||||
|
||||
#include "network-util.h"
|
||||
#include "network-internal.h"
|
||||
#include "networkd-wait-online-link.h"
|
||||
#include "networkd-wait-online.h"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "sd-rtnl.h"
|
||||
#include "sd-network.h"
|
||||
|
||||
#include "util.h"
|
||||
#include "hashmap.h"
|
||||
|
||||
typedef struct Manager Manager;
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
***/
|
||||
|
||||
#include "capability.h"
|
||||
#include "sd-event.h"
|
||||
#include "sd-daemon.h"
|
||||
|
||||
#include "networkd.h"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "networkd.h"
|
||||
#include "networkd-link.h"
|
||||
#include "networkd-netdev-bond.h"
|
||||
#include "networkd-netdev-macvlan.h"
|
||||
#include "dhcp6-internal.h"
|
||||
|
||||
Reference in New Issue
Block a user