Re: [PATCH] bpf: Replace (arg_type & MEM_RDONLY) with type_is_rdonly_mem
From: Alexei Starovoitov
Date: Wed Jan 08 2025 - 12:54:11 EST
On Tue, Jan 7, 2025 at 3:02 PM Stanislav Fomichev <stfomichev@xxxxxxxxx> wrote:
>
> On 01/07, Feng Yang wrote:
> > From: Feng Yang <yangfeng@xxxxxxxxxx>
> >
> > The existing 'type_is_rdonly_mem' function is more formal in linux source
> >
> > Signed-off-by: Feng Yang <yangfeng@xxxxxxxxxx>
>
> Looks ok, but I'm not sure this cleanup is worth it on its own..
>
> Acked-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>
Yeah.
If we do this let's change type_is_rdonly_mem(u32 type)
to enum as well.
pw-bot: cr