Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5483519ybi; Tue, 28 May 2019 13:59:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3aWeemHW0yLtzD6vWz4c1y8SYx6r9TjUev9SIBUbDH6bWG2L3ReOLNq8Kz2oakQxF5dGi X-Received: by 2002:a17:902:728a:: with SMTP id d10mr34673278pll.90.1559077160878; Tue, 28 May 2019 13:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559077160; cv=none; d=google.com; s=arc-20160816; b=L0p2aLRklRUYo0xQiwEI7BjJlfEmk2wxZXb5+B5fq/Jb6eksR86i7nw8ZwHdB2Ofpi 5nK2gbvjhNppHGDf6vE8Xb3heN+eGs/avC3Bo6OwgGACSxwdUOYo+E6INCBk4Wwa83jH Zj/1/j/L1ozVH1sSzM+K74L0Cm+A2+8HuqfOwU8eRRoInw6kgg1Kk9iwktpnGxcpuki0 1R9OiCvYuh67Jgo1C2vUDVmYwFsXC7X59w9zz3AC1UXMY53WHuhz5hKBjs7d3128HSZs WqiZ9ubwZIjVez354LEuPaWG5VTy8Axk5ahIrz2dErurwc4bXi+q22o4sIM/an4KBqcs ihVw== 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=o1ydLImzsmpkS5F7PlvU5sVhBXF/PklEQqQZqMpZmxE=; b=F7TlnpClOHCktO9Gw8N2xkNi6wKLqk/njIdGIgmhARH279BlpixDjYAl7cB7cIOTHM i4anVZp53ca50E5HPjy0LPEARnPSoF2t6voUNJGpYqfYtzKbddf6sDXYaGwsoy9sqm/Z 81lSRdWNF8HnGu/Za6LlJ+ttjh2o/78IsvfelToeIyqNf74r6Lr3r2X1XFUST3o/x2gf 66/DcdYt1UfZKQTliad1V35KeX1HsajXp+vygh43K/1szB1o8G9NP2I/CPbK5d8B4adx JMODhLkga49cU3HzCEtAN8ellNG19GINHfV3+yVxgRbym4irvqAHA+piS3PAWFyGNUGX HqnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pUUFYFdh; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p188si24185954pfp.112.2019.05.28.13.59.04; Tue, 28 May 2019 13:59:20 -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=@gmail.com header.s=20161025 header.b=pUUFYFdh; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727614AbfE1U55 (ORCPT + 99 others); Tue, 28 May 2019 16:57:57 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36210 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfE1U54 (ORCPT ); Tue, 28 May 2019 16:57:56 -0400 Received: by mail-qt1-f196.google.com with SMTP id u12so27061qth.3; Tue, 28 May 2019 13:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=o1ydLImzsmpkS5F7PlvU5sVhBXF/PklEQqQZqMpZmxE=; b=pUUFYFdhSOjFKlE4+4l7DO7lFTfWN1aoCbBGKyUVb1zddz/d94F+w8Swz99yR7Z+yi JMuV5TFhMLdvWJuUEBwYbuKUJTLJiQBweh9i1EOl3KSECbPvROcAD92Nzu8+lk+4Wj1H Veg8w/g/mxEO9ooewq3DrgMWdw1+Vr35vdmu3em+cXEpVTUNhk7O82mGNdigmcgJZ6xY DTOA1uWJRMCxYnoS7J/BuACvvS81cDojuRxFtxwWjzvUX0+IX7TNR+/C4RdSRQ3xJr6r Hykh8DQekErFOps4eAllmh+qoou+mRcNzmo99/e49QV53zWeNCkSlIchshLsny5H1/NG MpsA== 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=o1ydLImzsmpkS5F7PlvU5sVhBXF/PklEQqQZqMpZmxE=; b=V1q2fKJ1tDgYDCATvHUtyniHmgOM9Z8OnGZxnXk9lRCFOpnS/9nzmKN/PeTGA8SulB cDHGX4Fhf3RmE2OWfYWYcXaFr5rAqb2Eans8GX/FkolfnnGBGNyUJrL8XHXsKXCIpkYC sOPK1rhkA80nZJjMGKwhAECDP8mDwVn9VYgLjnZm6Qwjgr3OnDdIOFPFOSQqri79NDMP jnrQ/FeNDekTBqNdE2vhNhhvNBlZZLksxcHzihn4ML3xgXV7Drf4B7ljzt2vSVhowA9k 4J8X3+6MmfEtMTMIsBEZNeLZ7zajWDWGhuBKZF/a0QNUQv8zPRKI716ZD9EbEAWbAKJ3 192w== X-Gm-Message-State: APjAAAUydww0kRlInx5cKAeflE6pBv/sA2ax0yZ8TXwvJPONL7AlYClY RejlbgbLs73uDGjlBE9hrZwfgh9QuRkWn2MJGzg= X-Received: by 2002:a0c:d4ee:: with SMTP id y43mr95878708qvh.26.1559077075184; Tue, 28 May 2019 13:57:55 -0700 (PDT) MIME-Version: 1.0 References: <20190528190218.GA6950@ip-172-31-44-144.us-west-2.compute.internal> In-Reply-To: <20190528190218.GA6950@ip-172-31-44-144.us-west-2.compute.internal> From: Song Liu Date: Tue, 28 May 2019 13:57:44 -0700 Message-ID: Subject: Re: [PATCH bpf v2] selftests: bpf: fix compiler warning To: Alakesh Haloi Cc: linux-kselftest@vger.kernel.org, Networking , bpf , open list , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Stanislav Fomichev 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 On Tue, May 28, 2019 at 12:35 PM Alakesh Haloi wr= ote: > > Add missing header file following compiler warning > > prog_tests/flow_dissector.c: In function =E2=80=98tx_tap=E2=80=99: > prog_tests/flow_dissector.c:175:9: warning: implicit declaration of funct= ion =E2=80=98writev=E2=80=99; did you mean =E2=80=98write=E2=80=99? [-Wimpl= icit-function-declaration] > return writev(fd, iov, ARRAY_SIZE(iov)); > ^~~~~~ > write > > Fixes: 0905beec9f52 ("selftests/bpf: run flow dissector tests in skb-less= mode") > Signed-off-by: Alakesh Haloi Acked-by: Song Liu Thanks for the fix! > --- > 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/to= ols/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.17.1 >