From: Guenter Roeck <linux@roeck-us.net>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
Phillip Potter <phil@philpotter.co.uk>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: r8188eu: Fix PPPoE tag insertion on big endian systems
Date: Mon, 4 Apr 2022 06:47:08 -0700 [thread overview]
Message-ID: <c4f6452c-d3b4-3eb7-c0a9-1dbbd4cd50e1@roeck-us.net> (raw)
In-Reply-To: <20220404095312.GV3293@kadam>
On 4/4/22 02:53, Dan Carpenter wrote:
> On Sat, Apr 02, 2022 at 02:18:22PM -0700, Guenter Roeck wrote:
>> On 4/1/22 13:25, Larry Finger wrote:
>>> On 4/1/22 14:25, Guenter Roeck wrote:
>>>> The rest of the code uses htons/ntohs, so I prefer to follow that lead.
>>>
>>> You just proved my point. It is hard to get be16_to_cpu() wrong. Sparse will flag the error when you use cpu_to_be16() instead. I expect that your htons/ntohs problem would also have shown up with Sparse.
>>>
>>
>> Ok, you made your point. I'll use be16_to_cpu() - the driver
>> already uses it elsewhere anyway. As for the other problems,
>> I am not sure if the driver ever worked. The function we are
>> looking at can't really have worked on a little endian system
>> because of the missing conversion, and the same is true for the
>> other code flagged by sparse. I think I'll just add a note
>> to this patch and let the driver authors decide what to do
>> about those problems.
>>
>> Guenter
>
> This is already fixed along with a couple related bugs in commit
> 2d959a842a8f ("staging: r8188eu: Fix sparse endianness warnings.").
>
> https://lore.kernel.org/r/YkPK/QmLAp3BkygY@sckzor-linux.localdomain
>
> It's in staging-next but hasn't hit linux-next yet.
>
Good to hear. Too bad I got it a minute too late - I just sent v3.
Guenter
prev parent reply other threads:[~2022-04-04 14:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 15:12 Guenter Roeck
2022-04-01 18:40 ` Larry Finger
2022-04-01 19:25 ` Guenter Roeck
2022-04-01 20:25 ` Larry Finger
2022-04-02 21:18 ` Guenter Roeck
2022-04-04 9:53 ` Dan Carpenter
2022-04-04 13:47 ` Guenter Roeck [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=c4f6452c-d3b4-3eb7-c0a9-1dbbd4cd50e1@roeck-us.net \
--to=linux@roeck-us.net \
--cc=Larry.Finger@lwfinger.net \
--cc=dan.carpenter@oracle.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=phil@philpotter.co.uk \
/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®