From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH bpf-next] selftests/bpf: Fix uninitialized duration warning Date: Sat, 17 Nov 2018 01:44:57 +0000 Message-ID: References: <20181109181816.22622-1-joe@wand.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: Daniel Borkmann , Network Development To: Joe Stringer Return-path: Received: from mail-wm1-f67.google.com ([209.85.128.67]:50195 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729736AbeKQL77 (ORCPT ); Sat, 17 Nov 2018 06:59:59 -0500 Received: by mail-wm1-f67.google.com with SMTP id 124-v6so305159wmw.0 for ; Fri, 16 Nov 2018 17:45:10 -0800 (PST) In-Reply-To: <20181109181816.22622-1-joe@wand.net.nz> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Nov 9, 2018 at 6:20 PM Joe Stringer wrote: > > Daniel Borkmann reports: > > test_progs.c: In function =E2=80=98main=E2=80=99: > test_progs.c:81:3: warning: =E2=80=98duration=E2=80=99 may be used uninit= ialized in this function [-Wmaybe-uninitialized] > printf("%s:PASS:%s %d nsec\n", __func__, tag, duration);\ > ^~~~~~ > test_progs.c:1706:8: note: =E2=80=98duration=E2=80=99 was declared here > __u32 duration; > ^~~~~~~~ > > Signed-off-by: Joe Stringer Applied, thanks.