Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050170ybi; Thu, 13 Jun 2019 08:44:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnEjWxJAB0bdCHdFMFTiKrS16g5MRC7W++ROaF+IqJtF5nR+YnQdDtWgOiaUMu26TZesHH X-Received: by 2002:a17:902:6903:: with SMTP id j3mr13706880plk.247.1560440647279; Thu, 13 Jun 2019 08:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440647; cv=none; d=google.com; s=arc-20160816; b=Sj274OxPF8gVoYAKamA9Hd7NAf41mgvr8SceP5uRxXn85aiXx7HQhiUPaPxAttWzl7 Zu+TR6A3Gj+oBQjIVBjiRxPyLmjjzrLpNnj5k+Gq5xmOSV5Zsw/LWcSz5DQGHANFALq7 dk1Z/OsrHnjRgYgjdabfqlsmAp/H2t5pSe+mjHbD2riHqn6rMWwr3oFk2qVzDiMNNO4N WgQ/v7D+xqA/pXnXItvc+uMybxFvyN7/ENZ4ejfL2l0OhvFVjcrrT6MYm8KlzBlLP1ow cgBB7rva1FI1stERGFOJrNsUs6jzPYeQFfaN++5fZjgRyMSpGc2I397mk6Xuqnhhr9Op 2t1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mWJyZbm7F3Ahz/ql/XF8euQ1ksW5Cu4zLDVBU8U4GDo=; b=oI273iPGOY219hZKVDcz/slFekdwQlp+7ED21c3/EamO6Eyxhsbevn/p3uUExxkZWV bDHbI0mAOQuQRc7/3b8iRYk+TyWuIZsBkwlt6Yq4uQWT4s5wh2ilKqth1MyRXRNue78d wth/4Xwj5ZwsUigFR77qPDBtUYLljScXYbdyTy4CwAoOmqjof+c+QLCLtqf7xLCK3Vcq G26WIsmqdMAsYmgEL3prNFOTldNX1fJD1W0icJAq7GPqAbW1rZC5palpO91J2Z+V3qsY GscrIfLpY2/t2KaLuyw4hclX2M3op9PikWnOa6gzMhOpJzPOP8A2R2JS8KJAqcJuSc21 y7Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fomichev-me.20150623.gappssmtp.com header.s=20150623 header.b=o6aVXpjq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si49504pgm.435.2019.06.13.08.43.51; Thu, 13 Jun 2019 08:44:07 -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=@fomichev-me.20150623.gappssmtp.com header.s=20150623 header.b=o6aVXpjq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387607AbfFMPl5 (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:57 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38550 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387534AbfFMPlz (ORCPT ); Thu, 13 Jun 2019 11:41:55 -0400 Received: by mail-pf1-f193.google.com with SMTP id a186so12081769pfa.5 for ; Thu, 13 Jun 2019 08:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fomichev-me.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=mWJyZbm7F3Ahz/ql/XF8euQ1ksW5Cu4zLDVBU8U4GDo=; b=o6aVXpjqvNPmGOyOlXbaR8Zo2sjLjrACsvivGycW9GMFCBZxRG+Giv9O1YysXycFpR 36efE76JYm0/qUZIYkJ8E/5xHl/zIQDBAxcZFm7df4gRFn92NVCHGd7RMoUe4jCeKYdg ah6tzVeUt1temIghkERv5YTXkb3gJlcKj9AquTF0HfKWqYh9/ZYXYCAC8ZNWZ8z7XZa0 xY8CvRkfk8wTNYTCECshfLGPOJccuAvmQ2fwGbYINT4izbMXhOJ646s5DgeMB20iLzzT fKeVbj9TYL//xAu2cpuoxoQzHwqQTI9DB/FIt7Ensd9XV/FEnVK5ZJJF6EcP9EKnT8z0 JuDQ== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=mWJyZbm7F3Ahz/ql/XF8euQ1ksW5Cu4zLDVBU8U4GDo=; b=PcDVWypBEQIzd+KgGxi3dUus1kgGJe5ksvzPt6YxxNVHCaBLk3P4Ud9aNlHvuf42+v laKzIzfmEgzXXGj/yimZb2eoB+HDoc6cy75aTcyNrLsHTuegN/JNRTOd+ZUrQCULdKD3 OaTW+bNXOD7p3l+Ocgc4IhFBPWi7KSXg4nUrQvq8Gc1qnXcHfrR5AEadAtz6+Un8ke/L vDfraJGvGP9auSX+eXTY8fJs3QSorSKiCeiCglATmXJ+IXXFK6Rrc4Dh0+KZc1yqFvsX 4JJtju2oVM5Bcryn/CHn2wlg3jfFQColDFChAKEfqPNqoh+j5aqgI9jnhSnNalAdWT3Z DaXg== X-Gm-Message-State: APjAAAUIJb2VIxPVTR91f6TQhFJ3WZaZMDpU5hi7hORDv5ZXVivJqI0W RpLC2LeLxB+hSJZMzyuHxtmy1Q== X-Received: by 2002:a17:90b:d8b:: with SMTP id bg11mr6287697pjb.30.1560440514297; Thu, 13 Jun 2019 08:41:54 -0700 (PDT) Received: from localhost ([2601:646:8f00:18d9:d0fa:7a4b:764f:de48]) by smtp.gmail.com with ESMTPSA id x6sm111580pfx.17.2019.06.13.08.41.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 08:41:53 -0700 (PDT) Date: Thu, 13 Jun 2019 08:41:52 -0700 From: Stanislav Fomichev To: Arthur Fabre Cc: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bpf: selftests: Fix warning in flow_dissector Message-ID: <20190613154152.GA9636@mini-arch> References: <20190613112709.7215-1-afabre@cloudflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190613112709.7215-1-afabre@cloudflare.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/13, Arthur Fabre wrote: > Building the userspace part of the flow_dissector resulted in: > > prog_tests/flow_dissector.c: In function ‘tx_tap’: > prog_tests/flow_dissector.c:176:9: warning: implicit declaration > of function ‘writev’; did you mean ‘write’? [-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)) != 0, \ > -- > 2.20.1 >