From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH 2/4] s390: Add a mechanism to get the subchannel id. Date: Tue, 14 Aug 2012 12:38:21 +0200 Message-ID: <20120814123821.1b6f93b7@BR9GNB5Z> References: <1344351168-2568-1-git-send-email-cornelia.huck@de.ibm.com> <1344351168-2568-3-git-send-email-cornelia.huck@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-s390 , Anthony Liguori , Rusty Russell , KVM , Carsten Otte , Marcelo Tosatti , Heiko Carstens , qemu-devel , Alexander Graf , Christian Borntraeger , Avi Kivity , Martin Schwidefsky To: Sebastian Ott Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On Tue, 14 Aug 2012 10:52:09 +0200 (CEST) Sebastian Ott wrote: > > On Tue, 7 Aug 2012, Cornelia Huck wrote: > > +/** > > + * ccw_device_get_schid - obtain a subchannel id > > + * @cdev: device to obtain the id for > > + * @schid: where to fill in the values > > + */ > > +void ccw_device_get_schid(struct ccw_device *cdev, struct subchannel_id *schid) > > +{ > > + *schid = cdev->private->schid; > > +} > > +EXPORT_SYMBOL(ccw_device_get_schid); > > After I gave this some thought I like your version of this function > better. But please use the id of the parent subchannel instead of the > copy in cdev->private (since this will be removed soon). I'll do a > cleanup patch to convert the internal users of the old function to use > the one above. Good, will change that (I think we can rely on a ccw device always having either a real subchannel or the orphanage pseudo subchannel as parent). Small taste question: EXPORT_SYMBOL vs EXPORT_SYMBOL_GPL?