Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2648718lqz; Wed, 3 Apr 2024 04:50:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBfcIPKKxCsirrGntDmd5zPPUgtxZoEhukw7FxW25VcCVA8Tgy6gaBzgE7GXTPoeAwjXQO5d9bgMsvkNmykTjmmuuuvvmxkLYoD7gbsw== X-Google-Smtp-Source: AGHT+IEgqcQRkoGfp/5ilGFzO2SDWNu78VRZU43ec/OcgQn+Kme4ivZbPdHaZUuQasDy5WAwmOYR X-Received: by 2002:a17:902:b710:b0:1e2:3078:c00e with SMTP id d16-20020a170902b71000b001e23078c00emr13650558pls.20.1712145002463; Wed, 03 Apr 2024 04:50:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712145002; cv=pass; d=google.com; s=arc-20160816; b=IED+ybQh+BqgIiGIlRGkaW8DdmrAJIcxC++L0WPL2hnd2pUze1Wx/OSPmuEO6SCmIK SA8GEggurFvqJfsjTYNSQNkP5sFMTpbL4cMKjeZ7QsF4IkrmVF3ydHs/Qo+zVZesKYtA KN7v2SQDVbRW7AXAVwnBHhcaNB2HTaF0M3zzES/RFmvpXuQ8wGRRDUyC06XLDqIVhvNY AflGymjPxiqA+5l6sq65sDU0svEYqRkqpy87+gYBxPHN6CO9yDuZP4cuiRgKENSYmJNY cgzLpRYaiKuBuNJd0PfbNuNfhjVRP94PF4vPpc8U+iQW8YsReubLVzbE5cfDwxLhYyaZ yRgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=gbdRMeNJ6ALKR+3+hWL9ZqdoOal70v+nuEve4HR/CQw=; fh=YPsT8cThdkOiaU1ImZpOxkNpz1LtD20npKyCCYq86Rc=; b=IVU75zjpotIMlyz+ceDvMJlhDNhYCkZVcHUvG96geQCimf3LViKtRPZaQZ59IKA/rh zMYpHRBDcUPGSpnDdpiDb5p4YLtXqMn3jXZLmP65+rMPopZmCKrXk9GP1DxwWAUb50g7 i99E2GQjOOosSrIgGY4VGaN8+wdguf5kHAad4pC54phYp6qv48o8Zd9i0brQCiInz/DV 3sR3rFYb7sO1Wnr9634sgsXRdZekV8OkeXHI9sx6hHLNCS3o1Iq8qB3FGd7SbJJzlhu1 Df4lEQs2oGtwX6MXfCmOssY2GEN59eKmqltbh3AZLZBp4DyZCsCDbD40nZ6UJAU0/Xbz GpIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=JO1Rz2tL; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VIONJcZP; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-129652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o3-20020a1709026b0300b001e0a29a9cdesi12401655plk.314.2024.04.03.04.50.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=JO1Rz2tL; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VIONJcZP; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-129652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BBB36B27A6C for ; Wed, 3 Apr 2024 11:17:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EAB71419BA; Wed, 3 Apr 2024 11:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="JO1Rz2tL"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="VIONJcZP" Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DCAA1353E2 for ; Wed, 3 Apr 2024 11:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712143050; cv=none; b=s/gziTvcwkqoQl1XeDOi4FJpbSxSsrBy/I0beP3V2PsDEJlPfCzOvhd2F3UjlTKkHL2KHTg2gJMbO5PKYzzOMe373/L1Hd8ev7WMuvZut7v5zjaWz49b6uv+lgieNqRRvK19r23IkJy0vWOWq0V3HASrbsTX9KuvAbcA342fzEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712143050; c=relaxed/simple; bh=hVe9rbSPpT2y71SxD/q11C+ArqBPm7Fa1Gwafs7sHM4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=JR8YvslJA+c5rmtFk6Yv3Ls8OU5xK99uB6drL6Cd3FDMOjXCABciwzGg+MdqmsH8Ih/radurePKndrJWZMfYN1H4uuAJyQtNW56uWi6ig5JIql7s5rJZM090+z/BrT6XI9AqWd6o08IMGT0BWzw7ZwQV1DXsCh5xHhz8V88nHSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=JO1Rz2tL; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=VIONJcZP; arc=none smtp.client-ip=103.168.172.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 5BD9B138018F; Wed, 3 Apr 2024 07:17:27 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 03 Apr 2024 07:17:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1712143047; x=1712229447; bh=gbdRMeNJ6ALKR+3+hWL9ZqdoOal70v+nuEve4HR/CQw=; b= JO1Rz2tLI7Ma0JjtwrzkGEkz9hSCLJhsxeULuLb6C5TXucDPVEJoUyUaHdBNN2m6 26lo5XemS017jTZFAyHFBaU1A1/eXwEM5P6vESQIx1j78Uu0YwSC/SBzzKmj3MtD UMRgr83iopvPUdPatr5CnNofvWIWlsytb/B/HUHR5O4yKXnzIHzA//bDVwnTPwm6 PbiM/mcNvmsFnzGx7RI9hbYqAMClaenNo/rV+U3a4QykXsoo8Nbs7Yw4C/Dgs/Qf Zwj9HbtQ5VlXZmJmBOlBEuwBvaUWf6v3ce4aotFM7rjtquvYtcxXDUAWL5ZMp693 +8g7+EV7hPQg12vnYuYrMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712143047; x= 1712229447; bh=gbdRMeNJ6ALKR+3+hWL9ZqdoOal70v+nuEve4HR/CQw=; b=V IONJcZPa5Itt751Ra1NUbEPIYjGfWgM5CY2EWU/rZsYOHOPFYHoPWd8KSkdin/qi vSZq4IT29fyF6oiJJbGlNkpJMID4v8LXy7/+v6f/sXxM15xwU5UZhDdxwxODi6CH Awp+kx3ECjkSpVqbEleYp64044OZUMfkrn7LZ2VL2Ayid+aPFvniCIBGKZZ7j+Bq o9L1Phr4AihxnKFfAWXP6Dq7qQ3o8qQquhgQ+pLnroOR/6YPIv6Omcb74n+kpy9+ +gi3jPUPuXHon/qN6ydA6GMWD6l19G23SJ9y7J2pohsoBnpbpMVnvqH6nBbEhHfg 75IhsFUwPpBfbw+IMmFDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefhedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A1592B6008D; Wed, 3 Apr 2024 07:17:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <80d7ab36-2746-43c7-a9b5-184f59981b81@app.fastmail.com> In-Reply-To: References: <347bb21e-98db-4bd5-9ca1-550eac5be9f8@app.fastmail.com> <277decf7-d9cb-451c-a105-6ecc998f9f46@intel.com> Date: Wed, 03 Apr 2024 13:17:05 +0200 From: "Arnd Bergmann" To: "Anton Protopopov" , "Alexander Lobakin" Cc: "Naresh Kamboju" , "open list" , lkft-triage@lists.linaro.org, "Linux Regressions" , "Anders Roxell" , "Dan Carpenter" , "Daniel Borkmann" , "David Ahern" , "Alexei Starovoitov" , "Russell King" , "Ard Biesheuvel" , "Linus Walleij" Subject: Re: include/linux/build_bug.h:78:41: error: static assertion failed: "struct bpf_fib_lookup size check" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024, at 12:09, Anton Protopopov wrote: > On Wed, Apr 3, 2024 at 11:57=E2=80=AFAM Anton Protopopov wrote: end. >> >> Yeah, I am sending a patch for this right now. Better not to depend on >> compiler options > > One __packed__ was not enough though. The problem was also with the > union of two __u16's which is padded to be 32 bits when AEABI=3Dn and > the whole structure is packed (so total size is 66 in this case). The __packed attribute is easy to misunderstand, in this case you would need to mark every internal union and struct as well, since you otherwise run into one or both of these problems: - an inner aggregate with explicit packing still requires 32-bit alignment (and padding) for each member, even if the outer struct puts it at an unaligned position - You get a compiler warning if an internal structure is follows the normal alignment constraints but is located at an unaligned offset, since that violates the alignment constraints of the C standard. Arnd