Re: [PATCH bpf-next v3 2/2] bpf: Refactor bpf_tracing_func_proto() and remove bpf_get_probe_write_proto()

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

 



On Thu, Nov 28, 2024 at 10:36 AM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> On Thu, Nov 28, 2024 at 10:22AM -0800, Alexei Starovoitov wrote:
> [..]
> > Moving bpf_base_func_proto() all the way to the top was incorrect,
> > but here we can move it just above this bpf_token_capable() check
> > and remove extra indent like:
> >
> > func_proto = bpf_base_func_proto();
> > if (func_proto)
> >    return func_proto;
> > if (!bpf_token_capable(prog->aux->token, CAP_SYS_ADMIN))
> >    return NULL;
> > switch (func_id) {
> > case BPF_FUNC_probe_write_user:
> >
> > that will align it with the style of bpf_base_func_proto().
> >
> > pw-bot: cr
>
> Ack, let me change that.
>
> Below is preview of v4 for this bit.

lgtm





[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