datapath/linux/compat/include/net/rtnetlink.h
/* This function is only defined to avoid warning related to ifname. Some backported
 * function did not changed the name to const type. */
This function is only defined to avoid warning related to ifname. Some backported
function did not changed the name to const type.
This function is only defined to avoid warning related to ifname . Some backported function did not changed the name to const type .
static inline struct net_device *rpl_rtnl_create_link(struct net *net, const char *ifname,
                                    unsigned char name_assign_type,
                                    const struct rtnl_link_ops *ops,
                                    struct nlattr *tb[])
{
#ifdef HAVE_RTNL_CREATE_LINK_TAKES_EXTACK
	return rtnl_create_link(net, (char *) ifname, name_assign_type, ops, tb, NULL);
#else
	return rtnl_create_link(net, (char *) ifname, name_assign_type, ops, tb);
#endif
}
static inline struct net_device * rpl_rtnl_create_link ( struct net * net , const char * ifname , unsigned char name_assign_type , const struct rtnl_link_ops * ops , struct nlattr * tb [ ] ) { #ifdef HAVE_RTNL_CREATE_LINK_TAKES_EXTACK return rtnl_create_link ( net , ( char * ) ifname , name_assign_type , ops , tb , NULL ) ; #else return rtnl_create_link ( net , ( char * ) ifname , name_assign_type , ops , tb ) ; #endif }
This function is only defined to avoid warning related to ifname.
This function is only defined to avoid warning related to ifname .