From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZIa9-0004hB-O1 for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZIa3-0003GR-P9 for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:05:05 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:55898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZIa3-0003GC-Gr for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:04:59 -0400 Date: Tue, 8 Sep 2015 09:04:56 -0400 (EDT) From: Paolo Bonzini Message-ID: <92042290.27379798.1441717496978.JavaMail.zimbra@redhat.com> In-Reply-To: <20150908090345.6ee568e5@redhat.com> References: <1441696197-22265-1-git-send-email-den@openvz.org> <1441696197-22265-3-git-send-email-den@openvz.org> <55EEB066.5040304@redhat.com> <20150908090345.6ee568e5@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/4] monitor: remove target-specific code from monitor.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Peter Maydell , "Denis V. Lunev" , qemu-devel@nongnu.org, Pavel Butsykin > > This should be added in patch 4, not now. > > > > > +const MonitorDef *target_monitor_defs(void) __attribute__((weak)); > > > + > > > +const MonitorDef *target_monitor_defs(void) > > > +{ > > > + return NULL; > > > +} > > > > Weak symbols do not work on all platforms. Luckily, making libqemustub > > a static library gets exactly the same result without the need for weak > > symbols: the definition from the QEMU object files will hide the stub. > > > > You just need to remove __attribute__((weak)), and it should just work. > > > > Otherwise, the patches look good to me. Luiz, do you have time to post > > a pull request for v4, or do you want to pass HMP maintainership as well > > to someone else? > > It would be great to pass it to someone else. I can take the next version of these patches then. However, please make that someone else also be someone other than me. :-) Paolo