On Wed, Oct 6, 2021 at 9:04 AM YiFei Zhu <zhuyifei1999@xxxxxxxxx> wrote: > > From: YiFei Zhu <zhuyifei@xxxxxxxxxx> > > Right now BPF_PROG_RUN_ARRAY and related macros return 1 or 0 > for whether the prog array allows or rejects whatever is being > hooked. The caller of these macros then return -EPERM or continue > processing based on thw macro's return value. Unforunately this is > inflexible, since -EPERM is the only errno that can be returned. > > This patch should be a no-op; it prepares for the next patch. The > returning of the -EPERM is moved to inside the macros, so the outer > functions are directly returning what the macros returned if they > are non-zero. > > Signed-off-by: YiFei Zhu <zhuyifei@xxxxxxxxxx> > Reviewed-by: Stanislav Fomichev <sdf@xxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>