Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7056206ybi; Thu, 13 Jun 2019 08:50:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmQymSfD6GEoNUfN7Qx7foWd+eKP9aPRX6S6dsudQOL/9bgIEZPI+2Q3fg5kZUExAHDE20 X-Received: by 2002:aa7:8817:: with SMTP id c23mr26596621pfo.146.1560441030276; Thu, 13 Jun 2019 08:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560441030; cv=none; d=google.com; s=arc-20160816; b=Vt2Y4+TXmjo5v5U/mmBokR2fGK4cPWhunI8af5rC2EVNsXTZ/AU5mV+U1+fmW52GNA TnEtrRa/ljPyHr5r4pSFy86fmj9Xhr+btvtr/1i4mrjNXkgoncuB6lATYOxPh366ag/x X5xSWDhJP+e2RvawMMZGFDmCtDn9R79reXucR+JmZLP0eMB6gtEbMj554uzxbIx9ZefB i/0cosM9q2IcLvbNTjflV4wPcymI9B4Fncj7M4nW2iSHRVSOM5ebJwT9GGnErmzZGZrs 7BU40Z3bk4uDc4EPSBSZp7GFicoKpLtl/WTlxzZhsMcO+k+2YTzjzCbC60qE/tEwlPBI P/aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MhxG2VWV0PUqNmkC6UYengHNix8YULmmoQX86iMuI1Q=; b=PP3ddCr45U/9V2c8WNLtY77qetpTlEU6pMMcjx/eqKIQeFJm1wXKeAHSc81WxTh+W+ qruwjRSR2KAVwCRyLnBAIOzDBNQgSLT8gO/0e64L9/BlWSQ8QRW3LwexAK2v6831NKDG yyMFhScTOgLjrxFmRZugFOGJFtg2j7zhV/IKhPT8Y2h6QO0gZf5J9bffvcr9j9UFboMb +Qt0wHhjxqDttYJbdeOLD/r0aA1w26FNDDEV674U7+wVTdOUWxoMKEjdZaAoqm3bA/19 hLJ6a3/y3ED22hkiH7cCW49S754SKba3v3umVklXoZhMLBJDfFIvAHJdvsNFt6k0oX/G RGEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=HwzQ0rH3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z185si3694835pfb.109.2019.06.13.08.50.14; Thu, 13 Jun 2019 08:50:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=HwzQ0rH3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732210AbfFMPsR (ORCPT + 99 others); Thu, 13 Jun 2019 11:48:17 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:34632 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731751AbfFMPsC (ORCPT ); Thu, 13 Jun 2019 11:48:02 -0400 Received: by mail-lf1-f68.google.com with SMTP id y198so15500074lfa.1 for ; Thu, 13 Jun 2019 08:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MhxG2VWV0PUqNmkC6UYengHNix8YULmmoQX86iMuI1Q=; b=HwzQ0rH3HntP0X1Ut+3aziFTUNyu7eZWshFffAcbuEQadz4P6sC2snoDJGp4KSyvu2 Kig7hRqtroYC7jNl67KKgqHxE423RPSnEeZfbHsd+gLto0eo7V3yt/GGwc+21qgO0c3A GIH+62EGfN0eHFV/TMnqz5oJqV2MDDVZaYpN0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MhxG2VWV0PUqNmkC6UYengHNix8YULmmoQX86iMuI1Q=; b=gDBrR19XXVYiDcu/XfU1lSeFb+vmaNE5v85NVkD4sAarO0quEWGv2OIyUFGhVRsMoB R7XG03HqwE+fAtAwXma9i5HgRAatx4xRpie9kpgaiUNQeGo/quOanj8YMwzDIV+jMoOa evaawVB6DkSAdX5U9lxgsPAmMJP65ScxNOkQ3+jQ3mRiEACfH/s/x+M0sqS7D3WRwa3o toy+91tHFTk5BGVyHWGE3rFuaFHq4hmW5x7LTrg4uZp7nOULOIFSg/eB8v/zeiyJHDff qd1qEomaEsHisYAd0Ab3kD4sOMHkoh5JJzClwILxLgIqiBNFbomxk8O8cEm1G9QHgfrO 7OmQ== X-Gm-Message-State: APjAAAXWCQ5fsc0m3s/3tQ+Z3SdffuJy+oiLmcSJLlmgQ7ON92PGl9Lu MD3PDL0YmjCMVUeKNMR8latoGTVghoJX20glTsXd+g== X-Received: by 2002:a19:c383:: with SMTP id t125mr38852030lff.89.1560440880394; Thu, 13 Jun 2019 08:48:00 -0700 (PDT) MIME-Version: 1.0 References: <20190613112709.7215-1-afabre@cloudflare.com> <20190613154152.GA9636@mini-arch> In-Reply-To: <20190613154152.GA9636@mini-arch> From: Arthur Fabre Date: Thu, 13 Jun 2019 16:47:49 +0100 Message-ID: Subject: Re: [PATCH] bpf: selftests: Fix warning in flow_dissector To: Stanislav Fomichev Cc: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , linux-kselftest@vger.kernel.org, netdev , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ah yes good catch. I guess it hasn't made it into bpf-next yet. On Thu, Jun 13, 2019 at 4:41 PM Stanislav Fomichev wrote: > > On 06/13, Arthur Fabre wrote: > > Building the userspace part of the flow_dissector resulted in: > > > > prog_tests/flow_dissector.c: In function =E2=80=98tx_tap=E2=80=99: > > prog_tests/flow_dissector.c:176:9: warning: implicit declaration > > of function =E2=80=98writev=E2=80=99; did you mean =E2=80=98write=E2=80= =99? [-Wimplicit-function-declaration] > > return writev(fd, iov, ARRAY_SIZE(iov)); > > ^~~~~~ > > write > > > > Include to fix this. > Wasn't it fixed already? > > See > https://lore.kernel.org/netdev/20190528190218.GA6950@ip-172-31-44-144.us-= west-2.compute.internal/ > > > Signed-off-by: Arthur Fabre > > --- > > tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/= tools/testing/selftests/bpf/prog_tests/flow_dissector.c > > index fbd1d88a6095..c938283ac232 100644 > > --- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c > > +++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c > > @@ -3,6 +3,7 @@ > > #include > > #include > > #include > > +#include > > > > #define CHECK_FLOW_KEYS(desc, got, expected) \ > > CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) !=3D 0, = \ > > -- > > 2.20.1 > >