From: Stefan Hansson <newbyte@postmarketos.org>
To: Jeff Johnson <jeff.johnson@oss.qualcomm.com>,
Stefan Hansson <newbie13xd@gmail.com>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH] wifi: rsi: Fix types to appease CFI
Date: Sun, 2 Aug 2026 20:44:06 +0200 [thread overview]
Message-ID: <246dfa61-39b7-4658-a75a-8caed5a3628d@postmarketos.org> (raw)
In-Reply-To: <bdb87a52-80ba-4f74-94f1-cc01881e0c8a@oss.qualcomm.com>
Hi Jeff,
On 02/08/2026 16:30, Jeff Johnson wrote:
> On 8/2/2026 5:22 AM, Stefan Hansson wrote:
>> Avoids errors like:
>>
>> CFI failure at kthread+0x124/0x1cc (target: rsi_coex_scheduler_thread+0x0/0x1b4 [redpine_91x]; expected type: 0x89fb613d)
>>
>> As seen in the aforementioned error this was tested using the downstream
>> redpine_91x driver found in the Librem 5's downstream source tree.
>> However, it appears that this driver is a modified version of the rsi
>> driver found in mainline Linux and as such I decided to port the changes
>> here too.
>>
>> Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
>
> Having fixed a ton of these issues in the Qualcomm Android downstream driver I
> was going to give my R-B, but I ran this through my ath.git patch acceptance
> process and it flagged some issues, starting with:
> > WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email address
mismatch:
> 'From: Stefan Hansson <newbie13xd@gmail.com>' != 'Signed-off-by: Stefan
> Hansson <newbyte@postmarketos.org>'
I was struggling to get b4 send to work with the mail service we use for
our postmarketOS email addresses but I have set up b4 relay now, so the
v2 should not have this issue. Hope switching around the sender in a new
revision is okay.
> There are also kernel-doc issues noted below
>
>> @@ -246,12 +246,13 @@ EXPORT_SYMBOL_GPL(rsi_read_pkt);
>> /**
>> * rsi_tx_scheduler_thread() - This function is a kernel thread to send the
>> * packets to the device.
>> - * @common: Pointer to the driver private structure.
>> + * @data: Pointer to the driver private structure.
>> *
>> * Return: None.
>
> Return: 0
>
>> */
>> -static void rsi_tx_scheduler_thread(struct rsi_common *common)
>> +static int rsi_tx_scheduler_thread(void *data)
>> {
>> + struct rsi_common *common = data;
>> struct rsi_hw *adapter = common->priv;
>> u32 timeout = EVENT_WAIT_FOREVER;
>>
> ...
>> diff --git a/drivers/net/wireless/rsi/rsi_91x_usb_ops.c b/drivers/net/wireless/rsi/rsi_91x_usb_ops.c
>> index 25c2b232394a..513d2fdfb510 100644
>> --- a/drivers/net/wireless/rsi/rsi_91x_usb_ops.c
>> +++ b/drivers/net/wireless/rsi/rsi_91x_usb_ops.c
>> @@ -25,8 +25,9 @@
>
> above here update the documentation: s/common/data/
>
> Warning: drivers/net/wireless/rsi/rsi_91x_usb_ops.c:28 function parameter
> 'data' not described in 'rsi_usb_rx_thread'
> Warning: drivers/net/wireless/rsi/rsi_91x_usb_ops.c:28 Excess function
> parameter 'common' description in 'rsi_usb_rx_thread'
>
>> *
>> * Return: None.
>
> Return: 0
>
>> */
>> -void rsi_usb_rx_thread(struct rsi_common *common)
>> +int rsi_usb_rx_thread(void *data)
>> {
>> + struct rsi_common *common = data;
>> struct rsi_hw *adapter = common->priv;
>> struct rsi_91x_usbdev *dev = adapter->rsi_dev;
>> int status;
Regards,
Stefan Hansson
next prev parent reply other threads:[~2026-08-02 18:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 12:22 Stefan Hansson
2026-08-02 14:30 ` Jeff Johnson
2026-08-02 18:44 ` Stefan Hansson [this message]
2026-08-02 16:24 ` Johannes Berg
2026-08-02 18:40 ` Stefan Hansson
2026-08-02 18:52 ` Johannes Berg
2026-08-13 21:15 ` kernel test robot
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=246dfa61-39b7-4658-a75a-8caed5a3628d@postmarketos.org \
--to=newbyte@postmarketos.org \
--cc=jeff.johnson@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=newbie13xd@gmail.com \
--cc=phone-devel@vger.kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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
all inboxes | Powered by JetHome®