net: fix build erros with CONFIG_BUG=n, CONFIG_GENERIC_BUG=n