[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202401072136.mmDh9bfe-lkp@intel.com>
Date: Sun, 7 Jan 2024 21:54:03 +0800
From: kernel test robot <lkp@...el.com>
To: Antonio Quartulli <antonio@...nvpn.net>, netdev@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, Jakub Kicinski <kuba@...nel.org>,
Sergey Ryazanov <ryazanov.s.a@...il.com>,
Antonio Quartulli <antonio@...nvpn.net>
Subject: Re: [PATCH net-next 1/1] net: introduce OpenVPN Data Channel Offload
(ovpn)
Hi Antonio,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Antonio-Quartulli/net-introduce-OpenVPN-Data-Channel-Offload-ovpn/20240107-061631
base: net-next/main
patch link: https://lore.kernel.org/r/20240106215740.14770-2-antonio%40openvpn.net
patch subject: [PATCH net-next 1/1] net: introduce OpenVPN Data Channel Offload (ovpn)
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240107/202401072136.mmDh9bfe-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240107/202401072136.mmDh9bfe-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401072136.mmDh9bfe-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> drivers/net/ovpn/netlink.c:42:38: error: implicit declaration of function 'NLA_POLICY_MAX_LEN'; did you mean 'NLA_POLICY_MIN_LEN'? [-Werror=implicit-function-declaration]
42 | [OVPN_A_KEYDIR_CIPHER_KEY] = NLA_POLICY_MAX_LEN(U8_MAX),
| ^~~~~~~~~~~~~~~~~~
| NLA_POLICY_MIN_LEN
>> drivers/net/ovpn/netlink.c:42:38: error: initializer element is not constant
drivers/net/ovpn/netlink.c:42:38: note: (near initialization for 'ovpn_nl_policy_keydir[1].type')
>> drivers/net/ovpn/netlink.c:41:75: warning: missing braces around initializer [-Wmissing-braces]
41 | static const struct nla_policy ovpn_nl_policy_keydir[NUM_OVPN_A_KEYDIR] = {
| ^
drivers/net/ovpn/netlink.c:63:34: error: initializer element is not constant
63 | [OVPN_A_PEER_LOCAL_IP] = NLA_POLICY_MAX_LEN(sizeof(struct in6_addr)),
| ^~~~~~~~~~~~~~~~~~
drivers/net/ovpn/netlink.c:63:34: note: (near initialization for 'ovpn_nl_policy_peer[8].type')
drivers/net/ovpn/netlink.c:64:36: error: initializer element is not constant
64 | [OVPN_A_PEER_LOCAL_PORT] = NLA_POLICY_MAX_LEN(sizeof(u16)),
| ^~~~~~~~~~~~~~~~~~
drivers/net/ovpn/netlink.c:64:36: note: (near initialization for 'ovpn_nl_policy_peer[9].type')
drivers/net/ovpn/netlink.c:57:71: warning: missing braces around initializer [-Wmissing-braces]
57 | static const struct nla_policy ovpn_nl_policy_peer[NUM_OVPN_A_PEER] = {
| ^
drivers/net/ovpn/netlink.c:57:71: warning: missing braces around initializer [-Wmissing-braces]
drivers/net/ovpn/netlink.c:57:71: warning: missing braces around initializer [-Wmissing-braces]
drivers/net/ovpn/netlink.c:57:71: warning: missing braces around initializer [-Wmissing-braces]
drivers/net/ovpn/netlink.c:57:71: warning: missing braces around initializer [-Wmissing-braces]
drivers/net/ovpn/netlink.c:75:27: error: initializer element is not constant
75 | [OVPN_A_IFNAME] = NLA_POLICY_MAX_LEN(IFNAMSIZ),
| ^~~~~~~~~~~~~~~~~~
drivers/net/ovpn/netlink.c:75:27: note: (near initialization for 'ovpn_nl_policy[2].type')
drivers/net/ovpn/netlink.c:73:61: warning: missing braces around initializer [-Wmissing-braces]
73 | static const struct nla_policy ovpn_nl_policy[NUM_OVPN_A] = {
| ^
drivers/net/ovpn/netlink.c:73:61: warning: missing braces around initializer [-Wmissing-braces]
drivers/net/ovpn/netlink.c:73:61: warning: missing braces around initializer [-Wmissing-braces]
cc1: some warnings being treated as errors
vim +42 drivers/net/ovpn/netlink.c
39
40 /** KEYDIR policy. Can be used for configuring an encryption and a decryption key */
> 41 static const struct nla_policy ovpn_nl_policy_keydir[NUM_OVPN_A_KEYDIR] = {
> 42 [OVPN_A_KEYDIR_CIPHER_KEY] = NLA_POLICY_MAX_LEN(U8_MAX),
43 [OVPN_A_KEYDIR_NONCE_TAIL] = NLA_POLICY_EXACT_LEN(NONCE_TAIL_SIZE),
44 };
45
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists