From: David Laight <David.Laight@ACULAB.COM>
To: 'Sergey Shtylyov' <s.shtylyov@omp.ru>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alan Stern <stern@rowland.harvard.edu>
Subject: RE: [PATCH] usb: host: ehci-q: make qtd_fill() return 'u16'
Date: Thu, 17 Feb 2022 09:29:52 +0000 [thread overview]
Message-ID: <9ea390dfcfa8408c945e9a89f5c626a1@AcuMS.aculab.com> (raw)
In-Reply-To: <bc3af329-85cf-4104-acd7-15d527db6810@omp.ru>
From: Sergey Shtylyov
> Sent: 17 February 2022 09:20
...
> >> Found by Linux Verification Center (linuxtesting.org) with the SVACE static
> >> analysis tool.
> >
> > Which clearly doesn't understand the implications of its reports.
>
> The reports are most probably correct (SVACE actually complains about assigning
> an *int* variable to 'size_t' field), it's my interpretation which might be
> at fault here... :-)
Which is absolutely fine provided the domain of the value
fits in both types.
There is diddly-squit point reporting errors on assignments
unless the domains of the values can be tracked.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
prev parent reply other threads:[~2022-02-17 9:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 20:19 [PATCH] usb: host: ehci-q: make qtd_fill() return 'u16' Sergey Shtylyov
2022-02-16 22:33 ` David Laight
2022-02-17 1:52 ` Alan Stern
2022-02-17 9:20 ` Sergey Shtylyov
2022-02-17 9:29 ` David Laight [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=9ea390dfcfa8408c945e9a89f5c626a1@AcuMS.aculab.com \
--to=david.laight@aculab.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=s.shtylyov@omp.ru \
--cc=stern@rowland.harvard.edu \
/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