All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chenghao Duan <duanchenghao@kylinos.cn>
To: Vincent Li <vincent.mc.li@gmail.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>, loongarch@lists.linux.dev
Subject: Re: bpf selftest build error - undeclared function 'bpf_qdisc_skb_drop'
Date: Thu, 31 Jul 2025 10:29:58 +0800	[thread overview]
Message-ID: <20250731022958.GA190477@chenghao-pc> (raw)
In-Reply-To: <CAK3+h2z3Zx+0KbVcRbLuz_-LhBwov9Bmvp9HdumbaN5GYtovFg@mail.gmail.com>

On Wed, Jul 30, 2025 at 07:21:52PM -0700, Vincent Li wrote:
> Hi Tiezhu and Chenghao,
> 
> While attempting to test the bpf trampoline patches on loongarch on
> top of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git,
>  I ran into bpf selftest build error irrelevant to the bpf trampoline
> 
>   CLNG-BPF [test_progs] bpf_qdisc_fail__incompl_ops.bpf.o
> progs/bpf_qdisc_fail__incompl_ops.c:13:2: error: call to undeclared
> function 'bpf_qdisc_skb_drop'; ISO C99 and later do not support
> implicit function declarations [-Wimplicit-function-declaration]
>    13 |         bpf_qdisc_skb_drop(skb, to_free);
>       |         ^
> 
> I am on Fedora 38 ( I should have updated to newer Fedora :)) with
> clang version 18.1.0rc, not sure if it is related, wonder if you guys
> have run into similar issues.
> 
> Vincent

Hi Vincent,

Yes, I have encountered a similar issue. My approach is to temporarily
block or comment out the test code that is unrelated to the trampoline
test.

Chenghao

  parent reply	other threads:[~2025-07-31  2:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-31  2:21 bpf selftest build error - undeclared function 'bpf_qdisc_skb_drop' Vincent Li
2025-07-31  2:29 ` Tiezhu Yang
2025-07-31  2:59   ` Vincent Li
2025-07-31  2:29 ` Chenghao Duan [this message]
2025-07-31  3:08   ` Vincent Li

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=20250731022958.GA190477@chenghao-pc \
    --to=duanchenghao@kylinos.cn \
    --cc=loongarch@lists.linux.dev \
    --cc=vincent.mc.li@gmail.com \
    --cc=yangtiezhu@loongson.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.