Hi Yejune,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on net/master linus/master sparc-next/master v5.13-rc6
next-20210618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Yejune-Deng/net-add-pf_family_na...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
8fe088bd4fd12f4c8899b51d5bc3daad98767d49
config: sparc64-randconfig-r032-20210618 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/f385a306caae1deea33a32795753f9cb8...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Yejune-Deng/net-add-pf_family_names-for-protocol-family/20210618-223434
git checkout f385a306caae1deea33a32795753f9cb883fb7d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/net.h:27,
from include/linux/skbuff.h:26,
from include/linux/filter.h:13,
from arch/sparc/kernel/sys_sparc32.c:29:
> include/uapi/linux/net.h:58:27: error: 'pf_family_names'
defined but not used [-Werror=unused-const-variable=]
58 | static const char *
const pf_family_names[] = {
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
arch/sparc/kernel/setup_64.c:615:13: error: no previous prototype for
'alloc_irqstack_bootmem' [-Werror=missing-prototypes]
615 | void __init alloc_irqstack_bootmem(void)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/net.h:27,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:39,
from include/linux/inet.h:42,
from arch/sparc/kernel/setup_64.c:27:
> include/uapi/linux/net.h:58:27: error: 'pf_family_names'
defined but not used [-Werror=unused-const-variable=]
58 | static const char *
const pf_family_names[] = {
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER ||
MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/pf_family_names +58 include/uapi/linux/net.h
57
58 static const char * const pf_family_names[] = {
59 [PF_UNSPEC] = "PF_UNSPEC",
60 [PF_UNIX] = "PF_UNIX/PF_LOCAL",
61 [PF_INET] = "PF_INET",
62 [PF_AX25] = "PF_AX25",
63 [PF_IPX] = "PF_IPX",
64 [PF_APPLETALK] = "PF_APPLETALK",
65 [PF_NETROM] = "PF_NETROM",
66 [PF_BRIDGE] = "PF_BRIDGE",
67 [PF_ATMPVC] = "PF_ATMPVC",
68 [PF_X25] = "PF_X25",
69 [PF_INET6] = "PF_INET6",
70 [PF_ROSE] = "PF_ROSE",
71 [PF_DECnet] = "PF_DECnet",
72 [PF_NETBEUI] = "PF_NETBEUI",
73 [PF_SECURITY] = "PF_SECURITY",
74 [PF_KEY] = "PF_KEY",
75 [PF_NETLINK] = "PF_NETLINK/PF_ROUTE",
76 [PF_PACKET] = "PF_PACKET",
77 [PF_ASH] = "PF_ASH",
78 [PF_ECONET] = "PF_ECONET",
79 [PF_ATMSVC] = "PF_ATMSVC",
80 [PF_RDS] = "PF_RDS",
81 [PF_SNA] = "PF_SNA",
82 [PF_IRDA] = "PF_IRDA",
83 [PF_PPPOX] = "PF_PPPOX",
84 [PF_WANPIPE] = "PF_WANPIPE",
85 [PF_LLC] = "PF_LLC",
86 [PF_IB] = "PF_IB",
87 [PF_MPLS] = "PF_MPLS",
88 [PF_CAN] = "PF_CAN",
89 [PF_TIPC] = "PF_TIPC",
90 [PF_BLUETOOTH] = "PF_BLUETOOTH",
91 [PF_IUCV] = "PF_IUCV",
92 [PF_RXRPC] = "PF_RXRPC",
93 [PF_ISDN] = "PF_ISDN",
94 [PF_PHONET] = "PF_PHONET",
95 [PF_IEEE802154] = "PF_IEEE802154",
96 [PF_CAIF] = "PF_CAIF",
97 [PF_ALG] = "PF_ALG",
98 [PF_NFC] = "PF_NFC",
99 [PF_VSOCK] = "PF_VSOCK",
100 [PF_KCM] = "PF_KCM",
101 [PF_QIPCRTR] = "PF_QIPCRTR",
102 [PF_SMC] = "PF_SMC",
103 [PF_XDP] = "PF_XDP",
104 };
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org