public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Cc: "lkp@intel.com" <lkp@intel.com>
Subject: RE: [PATCH rtw-next] wifi: rtw88: 8814a: add __packed to ensure efuse map size
Date: Mon, 20 Apr 2026 08:45:11 +0000	[thread overview]
Message-ID: <4bea1c66c6f949c9bdda4d2e0e104843@realtek.com> (raw)
In-Reply-To: <c97d9fcb628a4a5a94d041c63da1c711@realtek.com>

Ping-Ke Shih <pkshih@realtek.com> wrote:
> 
> Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> 
> > On 10/04/2026 16:13, Ping-Ke Shih wrote:
> > > All nested sture/union used by efuse map should be packed. Otherwise, a
> > > arm-linux-gnueabi-gcc compiler might throw errors due to size assertion.
> > >
> > >    In file included from include/linux/bitfield.h:10,
> > >                     from include/linux/fortify-string.h:5,
> > >                     from include/linux/string.h:389,
> > >                     from include/linux/uuid.h:11,
> > >                     from include/linux/mod_devicetable.h:14,
> > >                     from include/linux/usb.h:5,
> > >                     from drivers/net/wireless/realtek/rtw88/rtw8814a.c:5:
> > >>> include/linux/build_bug.h:78:41: error: static assertion failed: "sizeof(struct rtw8814a_efuse)
> == 512"
> > >     #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
> > >                                             ^~~~~~~~~~~~~~
> > >
> > > Fixes: 1a7545784642 ("wifi: rtw88: Add rtw8814a.{c,h}")
> > > Reported-by: kernel test robot <lkp@intel.com>
> > > Closes:  https://lore.kernel.org/oe-kbuild-all/202604101721.fsv5XmCX-lkp@intel.com/
> > > Cc: Bitterblue Smith <rtl8821cerfe2@gmail.com>
> > > Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
> > > ---
> > >  drivers/net/wireless/realtek/rtw88/main.h     | 2 +-
> > >  drivers/net/wireless/realtek/rtw88/rtw8814a.h | 2 +-
> > >  2 files changed, 2 insertions(+), 2 deletions(-)
> > >
> >
> > Thank you for taking care of this. Actually, every chip's efuse struct
> > has a union like this missing __packed, not just RTL8814A. Most of them
> > don't have a static_assert.
> >
> 
> Indeed. I added size assetion of efuse map entirely to rtw88 and rtw89 [1],
> hoping we can find and address this kind of problem earlier.
> 
> [1] https://lore.kernel.org/linux-wireless/20260411072413.1556575-1-pkshih@realtek.com/T/#t
> 

As discussion in original link [2], the ARM OABI should not be used anymore.
I'd drop this patch, and also drop patches to assert efuse size of rtw88 and rtw89 [1].

[2] https://lore.kernel.org/oe-kbuild-all/202604101721.fsv5XmCX-lkp@intel.com/



      reply	other threads:[~2026-04-20  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10 13:13 [PATCH rtw-next] wifi: rtw88: 8814a: add __packed to ensure efuse map size Ping-Ke Shih
2026-04-10 15:44 ` Bitterblue Smith
2026-04-11  7:29   ` Ping-Ke Shih
2026-04-20  8:45     ` Ping-Ke Shih [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bea1c66c6f949c9bdda4d2e0e104843@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=rtl8821cerfe2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox