From: kernel test robot <lkp@intel.com>
To: Florian Westphal <fw@strlen.de>, netfilter-devel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Florian Westphal <fw@strlen.de>,
cgroups@vger.kernel.org, Nadia Pinaeva <n.m.pinaeva@gmail.com>
Subject: Re: [PATCH nf 2/2] netfilter: nft_socket: make cgroupsv2 matching work with namespaces
Date: Mon, 9 Sep 2024 01:06:48 +0800 [thread overview]
Message-ID: <202409090022.jxFbbVYj-lkp@intel.com> (raw)
In-Reply-To: <20240905105451.28857-2-fw@strlen.de>
Hi Florian,
kernel test robot noticed the following build errors:
[auto build test ERROR on netfilter-nf/main]
url: https://github.com/intel-lab-lkp/linux/commits/Florian-Westphal/netfilter-nft_socket-make-cgroupsv2-matching-work-with-namespaces/20240908-025647
base: https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git main
patch link: https://lore.kernel.org/r/20240905105451.28857-2-fw%40strlen.de
patch subject: [PATCH nf 2/2] netfilter: nft_socket: make cgroupsv2 matching work with namespaces
config: i386-randconfig-006-20240908 (https://download.01.org/0day-ci/archive/20240909/202409090022.jxFbbVYj-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240909/202409090022.jxFbbVYj-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409090022.jxFbbVYj-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/netfilter/nft_socket.c:212:9: error: call to undeclared function 'nft_socket_cgroup_subtree_level'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
212 | err = nft_socket_cgroup_subtree_level();
| ^
1 error generated.
vim +/nft_socket_cgroup_subtree_level +212 net/netfilter/nft_socket.c
169
170 static int nft_socket_init(const struct nft_ctx *ctx,
171 const struct nft_expr *expr,
172 const struct nlattr * const tb[])
173 {
174 struct nft_socket *priv = nft_expr_priv(expr);
175 unsigned int len;
176
177 if (!tb[NFTA_SOCKET_DREG] || !tb[NFTA_SOCKET_KEY])
178 return -EINVAL;
179
180 switch(ctx->family) {
181 case NFPROTO_IPV4:
182 #if IS_ENABLED(CONFIG_NF_TABLES_IPV6)
183 case NFPROTO_IPV6:
184 #endif
185 case NFPROTO_INET:
186 break;
187 default:
188 return -EOPNOTSUPP;
189 }
190
191 priv->key = ntohl(nla_get_be32(tb[NFTA_SOCKET_KEY]));
192 switch(priv->key) {
193 case NFT_SOCKET_TRANSPARENT:
194 case NFT_SOCKET_WILDCARD:
195 len = sizeof(u8);
196 break;
197 case NFT_SOCKET_MARK:
198 len = sizeof(u32);
199 break;
200 #ifdef CONFIG_CGROUPS
201 case NFT_SOCKET_CGROUPV2: {
202 unsigned int level;
203 int err;
204
205 if (!tb[NFTA_SOCKET_LEVEL])
206 return -EINVAL;
207
208 level = ntohl(nla_get_be32(tb[NFTA_SOCKET_LEVEL]));
209 if (level > 255)
210 return -EOPNOTSUPP;
211
> 212 err = nft_socket_cgroup_subtree_level();
213 if (err < 0)
214 return err;
215
216 priv->level_user = level;
217
218 level += err;
219 /* Implies a giant cgroup tree */
220 if (WARN_ON_ONCE(level > 255))
221 return -EOPNOTSUPP;
222
223 priv->level = level;
224 len = sizeof(u64);
225 break;
226 }
227 #endif
228 default:
229 return -EOPNOTSUPP;
230 }
231
232 priv->len = len;
233 return nft_parse_register_store(ctx, tb[NFTA_SOCKET_DREG], &priv->dreg,
234 NULL, NFT_DATA_VALUE, len);
235 }
236
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-09-08 17:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240905105451.28857-1-fw@strlen.de>
2024-09-05 10:54 ` [PATCH nf 2/2] netfilter: nft_socket: make cgroupsv2 matching work with namespaces Florian Westphal
2024-09-06 19:39 ` kernel test robot
2024-09-08 17:06 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409090022.jxFbbVYj-lkp@intel.com \
--to=lkp@intel.com \
--cc=cgroups@vger.kernel.org \
--cc=fw@strlen.de \
--cc=llvm@lists.linux.dev \
--cc=n.m.pinaeva@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox