Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5247924ybi; Tue, 28 May 2019 09:48:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNuu5hEqZOnANOJPX95inR5DeUoG++CZjPHkcJ/Py3SvoWXUsG7RYFCg3R/obBQQwmnuJ7 X-Received: by 2002:a17:90a:2e87:: with SMTP id r7mr7034455pjd.121.1559062129169; Tue, 28 May 2019 09:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559062129; cv=none; d=google.com; s=arc-20160816; b=k/ZJh1iU8ou15rfJ30kMq2P/D2aOp+feQweUKv2fbN+YdGqTgI1iNbLVW+UK6BDD4P O6YvE5drMWzpU39hbpHNhmKmv66e52cWJZnPt3HB1BIm8sj3a3y/4JQULrYqJPfleH5E 6lQD7DCvVxsa8+jVBHrsFHYXsMSs0aVlBDwFg+DQXlFk/EqhcvgMD8agnLKegu9KajI+ Hxz7rB58dMRyKnYgP4SMfMuVnaqCyLWOyNoz5276Ujv2B96r6Npyxetk54XKRitvWrZH vvqpHZkhUlx2qvG8JbN4cWQ9JQzUdf0bvcRcr/11SB1+DtUXZ3UUXHjQ28S+oUp75r7m 9WzA== 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=PFmaYpz+7586n8fgFzVofvO6konpWOrSa5dCBt2QReQ=; b=S/MIYa4JigXjZ9l6vdyHyYKVswPQhQbzq9SiSUdmXkxhG/cqZyryUllvzmW/9/9rF6 RsdJh47aLhI6MLeY7us+y9R06mySytbaFyMe5mbxq3DL3S1Fdzj22ETtDdKsqmtJwdlY Z3lQXFd7/NjkmSfG5SglvfPPi0bndz0nbZN0VUkJl2IodtpKGqntQXOVqhR+QhcLQFBJ zZEHiciBGsS3h2aes+oU2gmbVwGhyGVsV0Zryq6HBBpGOazJ7G3gY1UuVIxq0g6VC/Zh WWFNqFHOcDlrAt437x0Tb6GX0IdS8DAaYctvf4W6e611T2DDq/0rm/vOJCnK+GYS24AP djGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=anrNjBRs; 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 y1si28052198pfb.264.2019.05.28.09.48.33; Tue, 28 May 2019 09:48:49 -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=anrNjBRs; 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 S1727158AbfE1Qp0 (ORCPT + 99 others); Tue, 28 May 2019 12:45:26 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:44519 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfE1Qp0 (ORCPT ); Tue, 28 May 2019 12:45:26 -0400 Received: by mail-qk1-f196.google.com with SMTP id w187so13375278qkb.11; Tue, 28 May 2019 09:45:25 -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=PFmaYpz+7586n8fgFzVofvO6konpWOrSa5dCBt2QReQ=; b=anrNjBRsknHzWPik+xWHWpC52AhNn4Rm17SGUku1No9v1MdLTVVQff/jGHtbgyaFcZ podY2XyhqOCFaXvyIYt3b9GidZFmCrUWmr9z2iT82xm/riYk4C9Lsn7cOw6C7MLcc354 /Qou5L1D8DfnkaxFOPD84RioSEwIVubPgBerMzl7MWT8fMYGAjtPA0HoSo6znBDp1U47 CkqxVrMob3azCegSEjZo5HjErJXQslG7YY/GvYs64/lAks8pKiupHqFYUAVOXA+NQmge g+8FFc6Eu0MS7B9DkClx73FNHQvCy6Afv9WPQN1EckuEi9WLX9gs9WtTFcjXKZi65eeM UZTw== 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=PFmaYpz+7586n8fgFzVofvO6konpWOrSa5dCBt2QReQ=; b=mEmcCUAnQrndJYj9gucHbhjPDMaTyD43pQ+CUTh3vkLv26s0sc9Q6p7EiTDkYBzxPB udqIibC7qtEFumNSeNOYydX4VFqGAnBafB9oxsJY46ll8npCL+BVRLXnFhV9H4eDtrgH lCv/zpLyLlD+AdaVmfTOnubglqGO0DKcnwl4vjqgQYPm6Z/btl14ZK8hRvS5gkPDkRLy wtNH/O4zsg/oxd6ynszRBGYS1ic8hVpPYsu754sP55F3WOWO564QYDlUZLqN09LxsDB8 gZRwWUBKSobf2bH6zlbm/Ir7T2zaaPYotTM8qSiB5bj0cdPl00GfRFg2tjoe6MH/dCD1 IYDA== X-Gm-Message-State: APjAAAVQG6Fon+70dRiEQeQmF4yaH5etpfm1hleX8CmLB9FEiTqvJBM3 9/lkHD1hTmrcwqYqhSX9Ln/6GvurzqKGtrOBAOw= X-Received: by 2002:ae9:ee0b:: with SMTP id i11mr12264495qkg.96.1559061925163; Tue, 28 May 2019 09:45:25 -0700 (PDT) MIME-Version: 1.0 References: <20190524003038.GA69487@ip-172-31-44-144.us-west-2.compute.internal> In-Reply-To: <20190524003038.GA69487@ip-172-31-44-144.us-west-2.compute.internal> From: Song Liu Date: Tue, 28 May 2019 09:45:14 -0700 Message-ID: Subject: Re: [PATCH] selftests: bpf: fix compiler warning To: Alakesh Haloi Cc: Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Stanislav Fomichev , linux-kselftest@vger.kernel.org, Networking , bpf , open list 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 Thu, May 23, 2019 at 5:31 PM Alakesh Haloi wro= te: > > 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 > > Signed-off-by: Alakesh Haloi The patch looks good. Please add a "Fixes" tag, so the fix can be back ported properly. Also, please specify which tree the patch should be applied with [PATCH bpf] or [PATCH bpf-next]. Thanks, Song > --- > 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 >