Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5457442ybi; Tue, 28 May 2019 13:27:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdCcXPa2J0ngfIO5BNWE0WXlZN0xzZwswbxQLsTHyUMj/n2YpY3Rfq5QwsY0dUqUKV5Q4v X-Received: by 2002:a17:90a:9a6:: with SMTP id 35mr7977054pjo.66.1559075252109; Tue, 28 May 2019 13:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559075252; cv=none; d=google.com; s=arc-20160816; b=R0sWxyyAphDMylKDbs8R9EoYP6Df/EMWVhc4hnCn0F26vlr9oIrNKOG+avkCxv7Zqh dcyHotzDXhOxtvgJ758YdGCok6q1dGVUqMiKhqSBaOdKDZgoexyh2HlPMRVvn94F8J6m 9sI6+JW9/DjrhWy4jaOu/QZYhCTM/p84UVD0pyln3RXusLeXkZnVSK0HVBcRiiP4Ha4I 3SipuW3pwyPe8XARU8YtIiWkGSl6ysHNTF7gPO8Zy1SLqA9U2MDhX+XExmTsvr1YtP/7 ZERXvjNECylehM5oR84vkI7wO0eUrD1Nbbj/+JfOZQbXqOd20K2gyK5+1X40SlTDc2WZ SdZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=ZBw/tQUR3N++vfWCWRHOlyMoJfJVoXaITb7wqbYIEwU=; b=RbMU19fDj07iVufmxHAmZgszFLTAB9ihrhvcxqz9FwB/ZDHU1M3ch9LYvq0VZP+QIv do4cnfHgDVchJHC/Aj4sboz/lG5OHsBfX+sSEldJ3qBraObmgKdxGNtyylVVn0Vuz2LN RvH398SEQQK19Ux2DPHmO+QqTXa6kb1fy8xS7MqzIH6/MYvpNQk0lXWWX4GDnHYrI715 6/BEMHQY5lbSt6zUZXC5354q197+ZGfQ6lM0VmHOCUz/3xBN2zMf+9Sn2bw9QnQ/qimG ty2ZuISrTQ8Ci7W3GQ/XVb1HdkMhc4tL+PQdLWWxL9aQUYaeXYPklGtjwvyR5QkBxx2R +R8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SDOtLbxO; 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 d197si22961456pga.110.2019.05.28.13.27.16; Tue, 28 May 2019 13:27:32 -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=SDOtLbxO; 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 S1727488AbfE1TC0 (ORCPT + 99 others); Tue, 28 May 2019 15:02:26 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44550 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727418AbfE1TCX (ORCPT ); Tue, 28 May 2019 15:02:23 -0400 Received: by mail-pf1-f196.google.com with SMTP id g9so12036332pfo.11; Tue, 28 May 2019 12:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=ZBw/tQUR3N++vfWCWRHOlyMoJfJVoXaITb7wqbYIEwU=; b=SDOtLbxOfqFOsS3tfWf/NPMQ9agnoEnzEmJwhDansmY94g8VfpV+K/aK98EF0FGzOB QRm5N4O9EYRfrQ054SLOZWXH0nFk2FN0ccKjRlfXwzyikmBGApI+BPcXEm9a4pfzWAm8 bY10bMLwoMQbG/scodaCfipQxzoWAWNMNmN7v0dqRtPzqvQ0kvA/e6MUKGF0iYgNmwHi FTLhnW6VZyFouBCBr1oEt5eEX2ToFmH1hyDIT1VB7gXYC1ubI2tDzFtw4wl9sWqGDSF+ OWrkyyhkW5xkv8ei+mwLRNn8oooU985YF5oDGV/bSatVdgNq/47+R3q61lq4rlEHtCH9 A9/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=ZBw/tQUR3N++vfWCWRHOlyMoJfJVoXaITb7wqbYIEwU=; b=FtEdkp+u73PEfx9QeYUSn85egtAvBM6iAgUZF9kahvjYJlqMdwgdAKD3XHEYgyVxTP L22SJN3WzLIEfLvnU6QtC4FWRGI2OWSbdI+0jS9JLXjB84dchykvagUO/0WRkBhlE+Z4 iR+I8c2x+JrMWms7VafAYfrj5m0I1e+ZTzIh0G7ENZGZW3Xosi8TenqNbfMByW6tEmN0 Ns3Ix7KXVTW/Zvm2oTs/VUxxM3eRQOE3FcgFEHPiPKvCp8cTaFnFFYg5MV07w8NWI5ys 64ZPdq+q0Hq8tAq8z6vCzzTHG9o9uva+3fIdrF6eBg+QI6WobiVHPx9AcbmJFy84U86X IWfw== X-Gm-Message-State: APjAAAUK4zWHHG7hdulPet872YoCG9u/55Lphl6a9xWYKWZnObjzRG5H aJ5DXfN44YdDU5m5Ufs30ksoxqgTToc= X-Received: by 2002:a63:6bc3:: with SMTP id g186mr122564882pgc.21.1559070141977; Tue, 28 May 2019 12:02:21 -0700 (PDT) Received: from ip-172-31-44-144.us-west-2.compute.internal (ec2-54-186-128-88.us-west-2.compute.amazonaws.com. [54.186.128.88]) by smtp.gmail.com with ESMTPSA id 124sm16374430pfe.124.2019.05.28.12.02.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 12:02:20 -0700 (PDT) Date: Tue, 28 May 2019 19:02:18 +0000 From: Alakesh Haloi To: linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Stanislav Fomichev Subject: [PATCH bpf v2] selftests: bpf: fix compiler warning Message-ID: <20190528190218.GA6950@ip-172-31-44-144.us-west-2.compute.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing header file following compiler warning prog_tests/flow_dissector.c: In function ‘tx_tap’: prog_tests/flow_dissector.c:175:9: warning: implicit declaration of function ‘writev’; did you mean ‘write’? [-Wimplicit-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 --- 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)) != 0, \ -- 2.17.1