From: Wei Liu Subject: Re: [RFC PATCH V3 13/22] Add evtchn_abi_str Date: Thu, 28 Feb 2013 11:28:17 +0000 Message-ID: <20130228112816.GF24002@zion.uk.xensource.com> References: <1361975655-22295-1-git-send-email-wei.liu2@citrix.com> <1361975655-22295-14-git-send-email-wei.liu2@citrix.com> <512E47B102000078000C1A74@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <512E47B102000078000C1A74@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "xen-devel@lists.xen.org" , "Keir (Xen.org)" , David Vrabel , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Wed, Feb 27, 2013 at 04:51:45PM +0000, Jan Beulich wrote: > >>> On 27.02.13 at 15:34, Wei Liu wrote: > > --- a/xen/common/event_channel.c > > +++ b/xen/common/event_channel.c > > @@ -36,6 +36,20 @@ > > uint32_t extended_event_channel = (EVTCHN_EXTENDED_NONE | > > EVTCHN_EXTENDED_L3); > > > > +static inline const char * evtchn_abi_str(unsigned int abi) > > +{ > > + switch ( abi ) > > + { > > + case EVTCHN_EXTENDED_NONE: > > + return "2-level"; > > + case EVTCHN_EXTENDED_L3: > > + return "3-level"; > > + default: > > + BUG(); > > + } > > + return ""; /* make compiler happy */ > > +} > > + > > This is the sort of change that looks completely bogus - even the > next few patches don't seem to make use of this. Why can't this > be added when the first user of it appears? It surely won't make > reviewing that patch more difficult... > Do you mean the implementation is bogus or the way I break my patches? > And that's a general problem (for me at least) with how you break > up patches: Having looked ahead at 18 and 19, the latter undoes > quite a significant portion of what the former did. Both being far > from huge and unreviewable, why don't you fold them so things > actually make sense to the reader? > Sure, this can be done. Wei.