From: "Huang, Ying" <ying.huang@intel.com>
To: Paul Jackson <pj@sgi.com>
Cc: hpa@zytor.com, andi@firstfloor.org, mingo@redhat.com,
tglx@linutronix.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] x86_64 boot -v2: Add linked list of struct setup_data
Date: Mon, 31 Mar 2008 08:54:37 +0800 [thread overview]
Message-ID: <1206924877.21451.6.camel@caritas-dev.intel.com> (raw)
In-Reply-To: <20080329233155.ee909a04.pj@sgi.com>
On Sat, 2008-03-29 at 23:31 -0500, Paul Jackson wrote:
> Huang wrote:
> > +/* setup data types */
> > +#define SETUP_NONE 0
>
> This define seems unused?
I think this can prevent somebody to use 0 as type id.
> Actually, what use would it ever have? Should not every
> struct setup_data on the setup_data linked list have a
> valid (not NONE) type? And perhaps that switch statement
> that confused me:
>
> > + switch (data->type) {
> > + default:
> > + break;
> > + }
>
> should not "break" silently on an unrecognized data->type, but
> rather complain bitterly?
Yes. A warning should be made on unrecognized data->type.
Best Regards,
Huang Ying
next prev parent reply other threads:[~2008-03-31 0:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 2:49 [PATCH 2/4] x86_64 boot -v2: Add linked list of struct setup_data Huang, Ying
2008-03-30 4:25 ` Paul Jackson
2008-03-30 4:31 ` Paul Jackson
2008-03-31 0:54 ` Huang, Ying [this message]
2008-04-02 7:39 ` Paul Jackson
2008-04-02 16:39 ` H. Peter Anvin
2008-04-02 17:36 ` Paul Jackson
2008-03-30 8:15 ` Yinghai Lu
2008-03-31 0:52 ` Huang, Ying
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=1206924877.21451.6.camel@caritas-dev.intel.com \
--to=ying.huang@intel.com \
--cc=andi@firstfloor.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pj@sgi.com \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.