RE: [PATCH][next] wifi: rtl8xxxu: Avoid -Wflex-array-member-not-at-end warnings
From: Ping-Ke Shih
Date: Mon Nov 24 2025 - 01:39:40 EST
Hi Bitterblue and Zenm,
Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote:
> On 21/11/2025 13:11, Zenm Chen wrote:
> > Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx> 於 2025年11月21日 週五 下午6:20寫道:
> >>
> >> Hi,
> >>
> >> On 11/21/25 19:06, Zenm Chen wrote:
> >>> Dear maintainers,
> >>>
> >>> With this patch applied, my system always freezes right after the rtl8xxxu
> >>> driver is loaded. is it normal?
> >>
> >> I don't think so... It probably means that struct urb urb; cannot really be
> >> moved to the end of struct rtl8xxxu_rx_urb or struct rtl8xxxu_tx_urb?
> >>
> >> It'd be great if you could share a log.
> >>
> >
> > Hi,
> >
> > Nothing helpful found from the kernel log. Maybe Realtek drivers maintainer
> > Ping-Ke could take a look what is wrong next Monday.
> >
> [...]
>
> I got something. In my case everything seemed fine until I unplugged the
> wifi adapter. And then the system still worked for a few minutes before
> it froze.
After reviewing uses of rtl8xxxu_rx_urb and rtl8xxxu_tx_urb again, I can't
find obvious problem why it gets wrong.
Could you please try one apply partial change of this patch?
I mean only apply changes of rtl8xxxu_rx_urb or rtl8xxxu_tx_urb to see
which part is the cause. Then, we can focus on the part deeper.