Re: [PATCH bpf] bpf: syscall_nrs: fix no previous prototype for "syscall_defines"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 19, 2024 at 11:17 PM Alexei Starovoitov
<alexei.starovoitov@xxxxxxxxx> wrote:
>
> On Thu, Sep 19, 2024 at 9:55 PM Jason Xing <kerneljasonxing@xxxxxxxxx> wrote:
> >
> > From: Jason Xing <kernelxing@xxxxxxxxxxx>
> >
> > In some environments (gcc treated as error in W=1, which is default), if we
> > make -C samples/bpf/, it will be stopped because of
> > "no previous prototype" error like this:
> >
> >   ../samples/bpf/syscall_nrs.c:7:6:
> >   error: no previous prototype for ‘syscall_defines’ [-Werror=missing-prototypes]
> >    void syscall_defines(void)
> >         ^~~~~~~~~~~~~~~
>
> samples/bpf/ doesn't accept patches any more.

Thanks for your reminder. I didn't know that.

> If this samples/test is useful, refactor it to the test_progs framework.
> Otherwise delete it.

I'm trying to use the samples/test to do some tests to verify if some
functions like bpf_sock_ops_cb_flags_set() can work. Then I
encountered the issue as this patch said.





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux