From: "Dr. David Alan Gilbert" <linux@treblig.org>
To: Greg KH <gregkh@suse.de>
Cc: Philippe Langlais <philippe.langlais@stericsson.com>,
linux-serial@vger.kernel.org,
STEricsson_nomadik_linux@list.st.com,
loic.pallardy@stericsson.com, vincent.guittot@stericsson.com
Subject: Re: [PATCH] serial: fix port type conflict between NS16550A & U6_16550A
Date: Tue, 31 Aug 2010 19:11:29 +0100 [thread overview]
Message-ID: <20100831181129.GA14733@gallifrey> (raw)
In-Reply-To: <20100831132906.GA2429@suse.de>
* Greg KH (gregkh@suse.de) wrote:
> On Tue, Aug 31, 2010 at 02:19:09PM +0200, Philippe Langlais wrote:
> > Bug seen by Dr. David Alan Gilbert with sparse
>
> sparse found this? nice.
It spotted it because it ended up causing the same element of the array
to be initialised twice.
A few hours spent playing with sparse has spotted some nice easy-to-fix
thinko type bugs (this one, two parameters being swapped to kzalloc,
a few places where people passed enums in place of bools). Basically
if you ignore all the address space, static and locking output
whats left is 'odd' stuff that appears to be worthy of a read.
(That's from my first time using it). They're all the class of problems
that you would hope a type system in the compiler would spot.
> But odds are we should switch this to an enum to try to find it earlier,
> right?
An enum would be nice; but the other problem is that there are two
lists one in serial.h and one in serial_core.h that both start
in the same way - it was just a matter of time until something
got added to the wrong one. IMO the older list needs killing
unless there is a very good reason for it.
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ gro.gilbert @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
prev parent reply other threads:[~2010-08-31 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 12:19 [PATCH] serial: fix port type conflict between NS16550A & U6_16550A Philippe Langlais
2010-08-31 13:29 ` Greg KH
2010-08-31 18:11 ` Dr. David Alan Gilbert [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=20100831181129.GA14733@gallifrey \
--to=linux@treblig.org \
--cc=STEricsson_nomadik_linux@list.st.com \
--cc=gregkh@suse.de \
--cc=linux-serial@vger.kernel.org \
--cc=loic.pallardy@stericsson.com \
--cc=philippe.langlais@stericsson.com \
--cc=vincent.guittot@stericsson.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;
as well as URLs for NNTP newsgroup(s).