Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp222011ybi; Thu, 11 Jul 2019 18:09:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhiBC6CCvATaZnr9giAMXv00z8HekFKaJQlpfEVZ6M+aac5nEj+1DtjBRDKtmhNAjz6mB0 X-Received: by 2002:a17:902:467:: with SMTP id 94mr7902426ple.131.1562893740249; Thu, 11 Jul 2019 18:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562893740; cv=none; d=google.com; s=arc-20160816; b=pvKXBTqfkwwiHsVoi0LbupejOl1uoHBrV0HZ6N3vN3NhwQAaKAdEikDBwWvYxVoP27 nkuM7aLe37sB+Ry49ha05M3qJzbnKHoHYmkyad+Mi9gW8iSxQhSsjYvbiwrJ5Fs5fqKU WDh/oPJ1OqzTsJ8YlnuzC9qbuP1KQI72VcjMkzULFnEa8x1eipx8MQNX5sFplUkuAUIY XZUQ74Ud39RgqJ7Pj2ehR4L/NGJCSXscEqt0ightaLMoWNZ0LeAmBJU/aiFCXqzC4Kdd Xf0QrDm5dk3/g7ML1PxHe97Rh8SaE4nx6vojZ2Lq6c5V4pSRCl5zDN1mEef0TOeAWPgu 5KYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dwDUYBtNlHf7CSZi5qWRT+gVqqsYoNg6nfx/dJsJ9/o=; b=Tn7UKfLeyvq4C/90mXlH/pYwNTVEsJMaJd8QPb8t/Fy5Z5tdglO0ixouD6+sPPEa6X PoSebNQ53YgfGYbVRubOpzwjg0XsGV25Z/FMx172tjEgRMnwws1AtS4NuvA56HLWnrkG 8c5nI1ZgNISq1mLmHgiaCo7RnH5RKdSvocShjkQrRNVnyubXVvVxtMvyvj03RYvyYF4z hoaxwe2Ow/LnARVTY9RNrC9DbOsnXB2V08phN/N0TiZCkrklGhYDE+asIJf9v96TuU3r PHI+60HrZLeWb/BgNB67z1v/b71+iKh9VoPmEgzE/12pH8WXt1qRU8fTx6Zw09L121Wf UwcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XitFzXSZ; 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 j1si6404979pfr.52.2019.07.11.18.08.44; Thu, 11 Jul 2019 18:09:00 -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=XitFzXSZ; 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 S1730549AbfGLAUC (ORCPT + 99 others); Thu, 11 Jul 2019 20:20:02 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33883 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbfGLAUC (ORCPT ); Thu, 11 Jul 2019 20:20:02 -0400 Received: by mail-qk1-f194.google.com with SMTP id t8so5181227qkt.1; Thu, 11 Jul 2019 17:20:01 -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=dwDUYBtNlHf7CSZi5qWRT+gVqqsYoNg6nfx/dJsJ9/o=; b=XitFzXSZX2DTaxQD1YJNlo2w7NRkGMcnxFYZvvfkCFyblntGFKd5uRM/lTcZrxg+XC ndS8mSgrUVtD+EhPWA1pcSbxCSSm+Q1cDLYvwii3WYI4kJzGzSOScVVhykwzwM9iyL7f /wKlVfEJFdZLlRv2pJMBAnPjh+An46HAwS/1UjN7tEdMCJSacbwQ6LB2DEVTe0VVq9Wj P2V5fNSVbCcE9MrVvH4ZU+dAIynuqk8ugma+6TKN5Lw7qVYHja5di948iSIh3mf/AbIb DI4TFo0Q/AH+ATT0R/0LF0d9ev9jpJnyoRyamF7hjgPWUMUQfbM0OKWhxtY8VLdaYjOO 8soA== 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=dwDUYBtNlHf7CSZi5qWRT+gVqqsYoNg6nfx/dJsJ9/o=; b=BSPExkWaHDMuaBhidRMEVhG5vI+puLzF+b3O8kmFTxaa+P9ry1L1FXevmsMqgn8+JF ncI9/dq9pbouG+KxeEEDtYrAkWobt3HS2bBU5jjecxqBVh7jFxQpJ6+i5BVPlgv0FS1a xF/eMGHAfzGFoGQExH2TKp1Hw8u9gPD1dwA3yGwzRof4D/UoeZTcHPyDhMSHt3V/kmiF jXMTnkeLGIcg/1r1S0lobVah5cjUW8VxAup94MIIvP4SI9f/1bZ1yBAaQ89e43R2hFxR DT1mqoKEZEhEExpnjYgk689BUfNIBCcA8BwGavqCJ+uzyi03mUS2dyDstAfuHFHXQ7R+ mRbw== X-Gm-Message-State: APjAAAWKxLVsMeYN5N+uoCR0dnZ55XczTzCpGKnNehU4qJrpGHYk0gMq XIi0hppnPKBJYDrzhMLh2OOvrqTTqMY1zclDmkc= X-Received: by 2002:a37:b646:: with SMTP id g67mr4009950qkf.92.1562890800939; Thu, 11 Jul 2019 17:20:00 -0700 (PDT) MIME-Version: 1.0 References: <20190708163121.18477-1-krzesimir@kinvolk.io> <20190708163121.18477-8-krzesimir@kinvolk.io> In-Reply-To: <20190708163121.18477-8-krzesimir@kinvolk.io> From: Andrii Nakryiko Date: Thu, 11 Jul 2019 17:19:50 -0700 Message-ID: Subject: Re: [bpf-next v3 07/12] tools headers: Adopt compiletime_assert from kernel sources To: Krzesimir Nowak Cc: open list , Alban Crequy , =?UTF-8?Q?Iago_L=C3=B3pez_Galeiras?= , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Networking , bpf , xdp-newbies@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 8, 2019 at 3:42 PM Krzesimir Nowak wrote: > > This will come in handy to verify that the hardcoded size of the > context data in bpf_test struct is high enough to hold some struct. > > Signed-off-by: Krzesimir Nowak > --- Acked-by: Andrii Nakryiko > tools/include/linux/compiler.h | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h > index 1827c2f973f9..b4e97751000a 100644 > --- a/tools/include/linux/compiler.h > +++ b/tools/include/linux/compiler.h [...]