From: Wei Liu Subject: XSM build failure in staging Date: Mon, 30 Mar 2015 20:22:04 +0100 Message-ID: <20150330192204.GA12815@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YcfGJ-00087J-Qy for xen-devel@lists.xenproject.org; Mon, 30 Mar 2015 19:22:15 +0000 Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky , Daniel De Graaf Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com, Ian Campbell List-Id: xen-devel@lists.xenproject.org OSSTest seems to have caught a regression in building XSM. http://logs.test-lab.xenproject.org/osstest/logs/50263/build-amd64-xsm/5.ts-xen-build.log hooks.c: In function 'flask_sysctl': hooks.c:786:10: error: 'XEN_SYSCTL_topologyinfo' undeclared (first use in this function) hooks.c:786:10: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [hooks.o] Error 1 make[5]: Leaving directory `/home/osstest/build.50263.build-amd64-xsm/xen/xen/xsm/flask' make[4]: Leaving directory `/home/osstest/build.50263.build-amd64-xsm/xen/xen/xsm' make[4]: *** [flask/built_in.o] Error 2 make[3]: *** [/home/osstest/build.50263.build-amd64-xsm/xen/xen/xsm/built_in.o] Error 2 make -f /home/osstest/build.50263.build-amd64-xsm/xen/xen/Rules.mk -C acpi built_in.o make[3]: *** Waiting for unfinished jobs.... Looking at recent commits, the following commit seemed to remove XEN_SYSCTL_topologyinfo. commit 2090f14c5cbd659c3adebc8cd27d423fae8b6b54 Author: Boris Ostrovsky Date: Fri Mar 20 17:35:39 2015 +0100 sysctl: make XEN_SYSCTL_topologyinfo sysctl a little more efficient A number of changes to XEN_SYSCTL_topologyinfo interface: * Instead of copying data for each field in xen_sysctl_topologyinfo separately put cpu/socket/node into a single structure and do a single copy for each processor. * A NULL cputopo handle passed is a request for maximum number of CPUs (num_cpus). If cputopo is valid and num_cpus is smaller than the number of CPUs in the system then -ENOBUFS is returned (and correct num_cpus is provided) * Do not use max_cpu_index, which is almost always used for calculating number CPUs (thus requiring adding or subtracting one), replace it with num_cpus. * There is no need to copy whole op in sysctl to user at the end, we only need num_cpus. * Rename xen_sysctl_topologyinfo and XEN_SYSCTL_topologyinfo to reflect the fact that these are used for CPU topology. Subsequent patch will add support for PCI topology sysctl. * Replace INVALID_TOPOLOGY_ID with "XEN_"-prefixed macros for each invalid type (core, socket, node). Update sysctl version to 0x0000000C Signed-off-by: Boris Ostrovsky Acked-by: Ian Campbell Wei.