From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS30q-0008Ll-HM for qemu-devel@nongnu.org; Mon, 24 Mar 2014 07:25:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS30k-0000e4-A9 for qemu-devel@nongnu.org; Mon, 24 Mar 2014 07:25:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS30k-0000du-1g for qemu-devel@nongnu.org; Mon, 24 Mar 2014 07:25:46 -0400 Date: Mon, 24 Mar 2014 13:25:53 +0200 From: "Michael S. Tsirkin" Message-ID: <1395657775-23832-15-git-send-email-mst@redhat.com> References: <1395657775-23832-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1395657775-23832-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 14/15] vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , Anthony Liguori From: Eduardo Habkost Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index c8a5bfa..23e1dbd 100644 --- a/vl.c +++ b/vl.c @@ -1413,7 +1413,7 @@ static void smp_parse(QemuOpts *opts) max_cpus = smp_cpus; } - if (max_cpus > 255) { + if (max_cpus > MAX_CPUMASK_BITS) { fprintf(stderr, "Unsupported number of maxcpus\n"); exit(1); } -- MST