From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBB543BAD8C for ; Mon, 13 Apr 2026 13:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776085277; cv=none; b=eA1pwDoQ0wA1ndbbpK2DGGytpi70jm9v7tUxfas1ZlPTu4X8ahXMZVO6EW0vcNE1Ozduo+BWDLNifA/Q0CsvoyN/oAy1wAkQ9G92kOVPVvH6ovVkxJz0nLelwwhblCWo8Tsz3HG3zrOfUbgDnS1l79ldVIUe5OWdZ6iF7B0LgvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776085277; c=relaxed/simple; bh=cDZOvcqUwcRizrQYpiX8mJ2AVjBJweZuFlXyAgxKqLo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CR1yej07F3XYU0QXKZ/HHX0+FYW6f4sUkYqn/E486vN6wYD5jhzrFFCs07kFJhe4ykX6YBzWs00ZgXgbCDxalEr/hl+IjiHWhlH/DcERNooqi6iKLmmwkhxbNDhqjzeuYjo6tW/zOdaBnjoaCyGe06z5lvqsv1ByQIzx3/sbPrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cggdXf8n; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cggdXf8n" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-43d70b3e159so575797f8f.0 for ; Mon, 13 Apr 2026 06:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776085274; x=1776690074; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=c0h56iWNjOtlXX0x2H+2CBPpJUzlrkNXbnZg4wKPy9Q=; b=cggdXf8nw0AK/fPCj68EcTzFBgE0Hlq5VlmvTl1aBMYJYmpLaG6EHEf0HWewcFp+qg niQVGDdBYgmzQQp6lDxhY+KVQQax39HQY6VwDvQmTj/GGNQ86pUbBRXFR3GPDoJGAidy u4jdYBqsksw6guBxCWJ5N9XzYGUByZ4FjuHcIeqCzANpnaqFOGvTBvOG6L/i6FbLyVTU Xn1tIq4pSxJmLIHcU/rk52ffWumbUb77q57Ikf0714BGKBJAdC0rs5AwsZVQtKRjEITV ZZfvXbn9Abk37u1o+wi/oduZZ/e9993/2gMNHmblapggzDzUXx7UoZLHfemC2ft87peQ E/7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776085274; x=1776690074; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=c0h56iWNjOtlXX0x2H+2CBPpJUzlrkNXbnZg4wKPy9Q=; b=qn/sBxJlWiXOaRYrHIpLv3aotuz9OXDxvXL3Oj4PnrgVJUkLzNutvE4hABZOtxBReV CjRceEWe2Dy2jN1fGMUXjiWVJ/qZzBM55qKoVAcafatoU8X2SE82kG+44F8CStKkwuNz j19vfkjpFLjfr8q4WISbKVS/glyZiqIiew09DJGbCA9+yYshEVX9i0WF9hsaiiEBPV/P Gu39AL8FVRMfYSkVcweJJvgUZF9H9t7aWu8WVuu2DIZF8JIQBZnBKp7U6cDXMUvbeN4U 7dRpTN1JdEs+lRSzol692mkCK+Vra40i1UBGG7XSIO/HKx4FZyqaJq2EjyF6NmRfnV4s BgPA== X-Forwarded-Encrypted: i=1; AFNElJ8GvJz/MJhMTgi08CHBr3n8bDtFIdara8jvH8IxmQCI4xudCaKblK0sOdy5J14xWQHn4dWTV5n4y9B+zEs=@vger.kernel.org X-Gm-Message-State: AOJu0YweJS/WsO7TXKICvy9CzxH8vN7/edvI3UvYXojRI7e3Wycz0cjv BakTV3AjtEgkzHkSOjN0aqg7XhN7nqJOlfODN9KHFa40J29d6QcZDzna X-Gm-Gg: AeBDietOfrSRymuQp7srI4sMvWXbvloHNY+kTNVvCBCTLU6VYZJVfFpXlRwKk4wt9Ow 0LoXlHaa0jzxwWB2L/Ni0wHgsdmgF20uiv3gHb4h/5QYuHZCc3JbzZtw/yo04GeE3d+IGgc+Lv4 cH2VWw5nDralBQs0s+kWHe+9AWeLi7gWsNeLf1hD3JATBbAfua+vYB0jVssKihQcaRz2QevlS8x IGfBaoC22XSMzTeXROw0nAUZ1xF6GEHwT4vVSKU1xbuQ4WOyxb16/5RhHR5m0aQ4wtkmZs7Ao0X Tm6Dd8HO/oZhOo3KSpT939QaUSzTEWrFeE1ixDD1crvoqcRO9C7fLTuv7cpHVuGTUdvARL2HSx8 u6+wC7qMDPxGr3y00wi0CBCPWnnpTfMtZY/c53sLCBLz32sJyoI6dMZabWQ0O8FSHnb7bHmKSwm hWIa9Ax149HTpWEJJT1HbsWn7picWDU39PBqdSnC51DWNee8ZozbZiDwaZGGyacDq0 X-Received: by 2002:a05:6000:200f:b0:43d:2f94:3b40 with SMTP id ffacd0b85a97d-43d64255019mr19079892f8f.6.1776085273230; Mon, 13 Apr 2026 06:01:13 -0700 (PDT) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d76eeb2d1sm13081378f8f.22.2026.04.13.06.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 06:01:11 -0700 (PDT) Date: Mon, 13 Apr 2026 14:01:09 +0100 From: David Laight To: "Arnd Bergmann" Cc: "Geert Uytterhoeven" , "Ping-Ke Shih" , "rtl8821cerfe2@gmail.com" , "kernel test robot" , "oe-kbuild-all@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: include/linux/build_bug.h:78:41: error: static assertion failed: "sizeof(struct rtw8814a_efuse) == 512" Message-ID: <20260413140109.2b20de7c@pumpkin> In-Reply-To: <6b6310b8-2b0d-4390-992e-5ccd81cef2e0@app.fastmail.com> References: <202604101721.fsv5XmCX-lkp@intel.com> <2fb2a553-3e67-497e-b964-7fa5f940e8a1@gmail.com> <1e02bd10a68747f4a342caedde76ef04@realtek.com> <6b6310b8-2b0d-4390-992e-5ccd81cef2e0@app.fastmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 13 Apr 2026 11:30:25 +0200 "Arnd Bergmann" wrote: > On Mon, Apr 13, 2026, at 11:15, Geert Uytterhoeven wrote: > > On Mon, 13 Apr 2026 at 02:48, Ping-Ke Shih wrote: > >> > On Fri, 10 Apr 2026 at 14:15, Ping-Ke Shih wrote: > >> > How can that make a difference? > >> > Both rtw8814au_efuse and rtw8814ae_efuse contain just (the same number > >> > of) bytes, so __packed on the union should not make any difference? > >> > Moreover, rtw8814au_efuse and rtw8814ae_efuse are already tagged with > >> > __packed, which should also not make any difference. Someone's been > >> > sprinkling too many __packed all over the place? > >> > >> I have similar thought as yours, but arm-linux-gnueabi-gcc compiler seems > >> have special treatment with union. For this case, without __packed > >> the offset of followed field res5 will become 0xe0. > > > > Hmm, I can confirm the original issue, and that adding __packed does > > have an impact (it reduces the size of rtw8814a_efuse from 522 to 520), > > but the actual size is still wrong (should be 512). > > > > drivers/net/wireless/realtek/rtw88/rtw88xxa.h has a similar issue, but > > adding __packed does not make a difference there. > > > > Removing the __packed from struct rtw8814au_efuse increases its size > > from 14 to 16 bytes. Looks like that ABI pads every structure to a > > multiple of 4 bytes? > > Correct, that is a unique property of the ARM "OABI" legacy ABI, > triggered by this defconfig line: > > # CONFIG_AEABI is not set > > Nobody should be using ARM OABI any more, and I think we should > remove it from the kernel once support for the StrongARM > CPU gets removed (I have patches for that), as those CPUs were > the last ones that regularly used OABI. That would definitely save all the annoyance of the otherwise pointless __packed. (I've seen it crop up before, but wasn't sure which architecture it was.) Doesn't OABI also have 32bit bool? > Annotating the union as '__packed' is the correct fix for > the theoretical users of OABI, and does nothing on other > supported targets in Linux. The other option is to ensure the specific drivers aren't ever compiled for !CONFIG_AEABI. Then it'll all get tidied up when you remove it. I read that the patches to remove 486 support have been merged. I'm sure it would have made sense to drop everything before P-Pro so that cmov can be used. David > > Arnd >