Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5425967ybi; Tue, 28 May 2019 12:54:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOLSPWBZMfp5o+hRQ0S6kRsHL5GA0v6Cza4Fl/ZhFVpxB9HQgzcmbu8Uu388xC16JyyBpD X-Received: by 2002:a17:902:b682:: with SMTP id c2mr39232718pls.9.1559073289267; Tue, 28 May 2019 12:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559073289; cv=none; d=google.com; s=arc-20160816; b=RfseoWOmRm+9LlqmLZ0UTkWhjVTP2/W4DfP3Ywh1bB1jGD+Wd9Ojm286GtcpUmOrRQ 9HP+F9kkY4A8k16plLGV6MxRVoGluZfgphkt0bTUH8L2wh7fNbu/iF6MNUkMsN4wGYtX tSQisMP28D7AqiOH1Gn2917DjkndkTV97rtSvPeFPmuL2wrix86Z2GG8UNsEq/bAUmD5 /PyM0BgyUYHT2loiNljFkpByn793X781qASNMQIStXHnx68HVTVqytuBpYL2eXIJ4FF1 wFXVY5JTrahfWKD0HrjvAJF16OL+UoTjara0gSAePlFGG5Za4dhJCLaTn7Tr8s9lY3LC oNWg== 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=93NiWg88plww3BEzYyn0ICvR5hG8lZfHE/HYRcLE7m8=; b=ZNa0wF+PRci6vIvjZKmXWrBBdqvsfXdlB6wwBr2XQx/Rk7Ychy7uIeUVt8xJgbU+B9 xWrBAPaOWquSGsZ0GkyqCbLMP50d5ausdquTOPwtsGrq/E7C4IhHwl0S/U26BajT/y29 OqwXM3FHFJbnFOq4Zp1SaJ4BxbRLWUReqlGNQRru7PrrHj25GfkbiUAvHFKq1cEMxh2N q0dObmkvdDAz6S6CN/2vzpHTRgj1x+Em7hTYQ5Ld05m/q6ZRaB2nyRePIm5+HX2E69i/ 2hErjjiCIcfVuhl/eggA+TxvqO+euq3vVr/5QDefUFQ0IN2b88Ry777zSfHug0SjZaD+ 4t4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uPvok+oS; 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 36si23660012pgx.477.2019.05.28.12.54.33; Tue, 28 May 2019 12:54: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=uPvok+oS; 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 S1727676AbfE1Tk4 (ORCPT + 99 others); Tue, 28 May 2019 15:40:56 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42043 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfE1Tk4 (ORCPT ); Tue, 28 May 2019 15:40:56 -0400 Received: by mail-pf1-f196.google.com with SMTP id r22so9233413pfh.9; Tue, 28 May 2019 12:40:55 -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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=93NiWg88plww3BEzYyn0ICvR5hG8lZfHE/HYRcLE7m8=; b=uPvok+oSTNyhB8lNqKartxqkRHCvLIVBjUAU/WAo1chSRW/lAL/BhXriszd23uypGv LJL6lOqwCBI0M5yd3oVt1fitkvExyvZsF/XXSQXZO3EqSqSSRmHkVfAyu6usLmOzpFt0 /X00PXHarOpSuBzi8Rvg94s/lmKQNjgheEHMuxepkoxoXm2nRe40bUdwi9f1rTm6MRWA AKtvqdZLhKH6iRWAJafmYmhb3qmu2IsA+af/SLQoWpqc1aqvKhsQQaj29stpxQnTb/1x LVD4wotFH+F4t0PX/FHFO8HYimz3TXTt6C7w+2xtmG7I8y37DgaoMS34HG/xMYPBpvvr B1wA== 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=93NiWg88plww3BEzYyn0ICvR5hG8lZfHE/HYRcLE7m8=; b=OptsLzT+w/qBvF3pHvkReFdZHUOBiPgbcik9hV875q62hiHadTQ68eThLUUfUCaeUo AYZcilmcHj0oSNrM/Qv7qbOwPyfYGRtoSvlFazDvProMT6oN3R/3TUHLQiaZmrPH8glW jlGhYJ+XwOT4MQiwkRBA4C/Y18ZrDpB7ADLY+x1zOZ2Y4o2neGaJ6rQkgdkzHSCkMv+1 cS5WSz0aPyLxdq7oBfNlGVYMhg6QSClGwY7NXPhVaiLxUPTpo1wTmMnBH2aoeMAMgVUp WRZOaYWZEa8cB2b9YGAfUbBCQDhawdZC3I0UtBAZTU5noDKLEVUpaaimlvrQUI9br0Xv HWSA== X-Gm-Message-State: APjAAAUN/SheOcpOBtSSPPYX3OKbzIQytxz/LqNPN8Z4mehAKgXGoxQJ wrjZhptzvK6GeDrefR8/pDM= X-Received: by 2002:a63:e616:: with SMTP id g22mr69232791pgh.61.1559072455122; Tue, 28 May 2019 12:40:55 -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 u20sm16266834pfm.145.2019.05.28.12.40.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 12:40:53 -0700 (PDT) Date: Tue, 28 May 2019 19:40:51 +0000 From: Alakesh Haloi To: Song Liu Cc: Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Stanislav Fomichev , linux-kselftest@vger.kernel.org, Networking , bpf , open list Subject: Re: [PATCH] selftests: bpf: fix compiler warning Message-ID: <20190528194051.GA7103@ip-172-31-44-144.us-west-2.compute.internal> References: <20190524003038.GA69487@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 In-Reply-To: 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 On Tue, May 28, 2019 at 09:45:14AM -0700, Song Liu wrote: > On Thu, May 23, 2019 at 5:31 PM Alakesh Haloi wrote: > > > > 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 > > > > 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 > Thanks for reviewing the patch. My apologies for not following the rules. I have sent an updated patch after adding Fixes: tag and modifying the subject to reflect that it is for bpf tree. The updated patch is here https://lkml.org/lkml/2019/5/28/904 Thanks Alakesh > > > > > --- > > 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 > >