Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3895389pxk; Tue, 29 Sep 2020 08:51:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydUFAzQZJlP/7qHWbHxt60WA9z1vtnNt65KZC7rTl5JVAFZAioatewGvYQP5vm0JGaRN2m X-Received: by 2002:a17:906:2552:: with SMTP id j18mr4481608ejb.476.1601394694338; Tue, 29 Sep 2020 08:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601394694; cv=none; d=google.com; s=arc-20160816; b=rdRCZnu9ToxMzzb3Keqtdda3jOv3spdhQlmOZn09XtfTTgLEWlNapTTjEpDF1AQOeI CrObv28ubQQ94BGcf+NEN0T6RI2NfnxUQJwYFEWom3kJDoZjXVH3xHQVCnGhF6FVqA+W JSDX6astYc86T4FglyiNajM5nfyBs832t1owjWSRmFB8yzGjVpHspdDkJk5cueX+yXlT OtDF5vHKrRa9zppX6FbNi4T56zI5d8JA9p6M6QY1OiJUt/Rqwk5N6D8RrzvA7gJOkw/U ju5A3+YVKrGJVTaIgyTLZtDRHZ/ZccCgJX6HIHdqbMBVXSRdn8wlI6NmBrjMb8HH3/i3 pW8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=C03GfNtAEwKiwdCU07tZSqak/2i7nim8viiXxocdJ8s=; b=US9h/0oOh6jmkiz670CEDIQdNUdYyIVVF4ffg88pZwvRU2MVpzTYouCrgNF+/hZNS5 cruPAYdUrSCM8smhjfXBDjg4xkgPMwvIpMZaWf9htqPlgWCrRMD9Nz/wWDcaQ4c2uR7W BqcJKUEOyFLKNbauKhERInAldXn0Y+9oRXKTvhGT2VySoZpIe78yP2yg/TzKFmkvWUX0 AsrBw+gQgsrnX638wXAhed83srN23PMc9xdY+j/YAuE0xn+GyfXWildNxhU4Eonscwzh 66PXFdoBgpPuhHxfYxqBmCVXxXuPmys4uJTe3QFg8NlG4f5wG7KDO1SIgABXSy2j0IZy bVNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nf1tAi65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id 12si3010401ejn.498.2020.09.29.08.51.10; Tue, 29 Sep 2020 08:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nf1tAi65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729879AbgI2Psn (ORCPT + 99 others); Tue, 29 Sep 2020 11:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbgI2Psm (ORCPT ); Tue, 29 Sep 2020 11:48:42 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A61FC061755; Tue, 29 Sep 2020 08:48:42 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id 77so6129326lfj.0; Tue, 29 Sep 2020 08:48:42 -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; bh=C03GfNtAEwKiwdCU07tZSqak/2i7nim8viiXxocdJ8s=; b=Nf1tAi65bXqFvbQR7DC7chb2QRkBiFvi+mbBp/rVXUYcwqzp9+MsEIGVvS3NVt2Xp8 FRODo4nI0CUJswMiLZdLW8uSOI5Z7mkOrz/k8sfxT+FwEZ6nTAIyN1M0gACOb0qipOvO W+1Hgx+0G5BMQDLTgwnNzx2P5NIuAL0oqLJib12Ms3XFuZ39ej8b63mWtw5hugkHvc/8 zUUWLrryv78Xe7ppgZWEwpN67UUjQgq9q0u6V1Gis5PQdvObWGzvzAW4xpyL22iSoTyx yZpVQWz2yZdE442psFGNgJ6f4rIuRN3PW2GrFIluk31K+i1j+BHv4QROiB8WlPpc9MAK 3ccg== 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; bh=C03GfNtAEwKiwdCU07tZSqak/2i7nim8viiXxocdJ8s=; b=HTxE//uW0Dveifo6vvOTeOoIVpaTIKYh5xXPNYR9E33eNmbLa3kSUIPlZTaGyA480i D+E6Kw1dN6QW2LCkKuXWCOEGkig/APHO4E3Q9sohxidqTY+XyWluY3oI/a7Emc9MU3Ym 2sul6CN+gG8DGHR2fhDNAs1oar4fI9P2vyAwwdfexTuaRedcDVe17RJsiV23WthOzJPH YwcH3ZVvsIN0UPr1ryTQMrAZBBorOSuCyw6putDyUAd859XCHLIuLqTxvGEtx6eHXKYe A/zS/I+h/hYEepogs/QgsZQAFnUkQ5wQbZRQGdMeXMfgLVliqC1eyftXWssr1QyX7Cjo GPbg== X-Gm-Message-State: AOAM530nnyf1ox8Fpcb4M1ZPz2sHKuZ9Ivz31Y+JnzsRFHa0hVlXzsJ/ 6ejEfDNNX+eY2jKk8NNSxuF5+8TPyYJT60BOaoI= X-Received: by 2002:a19:9141:: with SMTP id y1mr1361477lfj.554.1601394520576; Tue, 29 Sep 2020 08:48:40 -0700 (PDT) MIME-Version: 1.0 References: <20200928090805.23343-1-lmb@cloudflare.com> <20200928090805.23343-3-lmb@cloudflare.com> <20200929055851.n7fa3os7iu7grni3@kafai-mbp> In-Reply-To: <20200929055851.n7fa3os7iu7grni3@kafai-mbp> From: Alexei Starovoitov Date: Tue, 29 Sep 2020 08:48:27 -0700 Message-ID: Subject: Re: [PATCH bpf-next v2 2/4] selftests: bpf: Add helper to compare socket cookies To: Martin KaFai Lau Cc: Lorenz Bauer , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , kernel-team , "open list:KERNEL SELFTEST FRAMEWORK" , Network Development , bpf , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 10:59 PM Martin KaFai Lau wrote: > > > > +static void compare_cookies(struct bpf_map *src, struct bpf_map *dst) > > +{ > > + __u32 i, max_entries = bpf_map__max_entries(src); > > + int err, duration, src_fd, dst_fd; > This should have a compiler warning. "duration" is not initialized. There was a warning. I noticed it while applying and fixed it up. Lorenz, please upgrade your compiler. This is not the first time such warning has been missed.