From: "Jan Beulich" Subject: Re: [PATCH] linux/usbback: fix usbstub_exit() placement Date: Fri, 16 Oct 2009 09:38:34 +0100 Message-ID: <4AD84D2A020000780001A409@vpn.id2.novell.com> References: <4AD730BE020000780001A13C@vpn.id2.novell.com> <4AD7C5C3.7080001@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4AD7C5C3.7080001@jp.fujitsu.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Noboru Iwamatsu Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Noboru Iwamatsu 16.10.09 03:00 >>> >Jan Beulich wrote: > > The function is being referenced from (non-__exit) usbback_init(). > >No, usbstub_exit() is only referenced from usbback_exit() in the >latest version. Oops, indeed, I didn't recall I had to change this for the 2.6.21 forward merge. I wonder, however, why I didn't notice the section mismatch warning earlier... >Are you suggesting that usbstub_exit() should be referenced from=20 >usbback_init() and should do as follows? Yes, this is what I needed to do there, since I needed to make it return a value there, as a result of xenbus_register_backend() becoming __must_check. But really your code, even without the __must_check, shouldn't ignore failure from xenbus_register_backend(). Jan