Content-Type: multipart/mixed; boundary="===============6486576342651297209==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] bpf: check_bpf_snprintf_call() can be static Date: Thu, 11 Mar 2021 11:12:07 +0800 Message-ID: <20210311031207.GA81254@8de2f37f21f5> In-Reply-To: <20210310220211.1454516-3-revest@chromium.org> List-Id: --===============6486576342651297209== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Reported-by: kernel test robot Signed-off-by: kernel test robot --- verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 3ab549df817b6..06c868989852d 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -5732,8 +5732,8 @@ static int check_reference_leak(struct bpf_verifier_e= nv *env) return state->acquired_refs ? -EINVAL : 0; } = -int check_bpf_snprintf_call(struct bpf_verifier_env *env, - struct bpf_reg_state *regs) +static int check_bpf_snprintf_call(struct bpf_verifier_env *env, + struct bpf_reg_state *regs) { struct bpf_reg_state *fmt_reg =3D ®s[BPF_REG_3]; struct bpf_reg_state *data_len_reg =3D ®s[BPF_REG_5]; --===============6486576342651297209==--