OSDN Git Service

bpf, x86: Remove unused cnt increase from EMIT macro
authorJiri Olsa <jolsa@redhat.com>
Wed, 23 Jun 2021 11:25:04 +0000 (13:25 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 24 Jun 2021 11:39:56 +0000 (13:39 +0200)
commitced50fc49f3bde2892c3d7fad7b3b6bfbc6ef90e
tree530fea54005fd8df89c6469938e82ed7c3485d30
parent4b9718b5a201eddcd00d9db6c36b18840125c7ee
bpf, x86: Remove unused cnt increase from EMIT macro

Removing unused cnt increase from EMIT macro together with cnt declarations.
This was introduced in commit [1] to ensure proper code generation. But that
code was removed in commit [2] and this extra code was left in.

  [1] b52f00e6a715 ("x86: bpf_jit: implement bpf_tail_call() helper")
  [2] ebf7d1f508a7 ("bpf, x64: rework pro/epilogue and tailcall handling in JIT")

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210623112504.709856-1-jolsa@kernel.org
arch/x86/net/bpf_jit_comp.c