[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH 3/3] xen/arm: fix unitialized use warning


  • To: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Sat, 15 Apr 2023 05:00:21 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Rsxox0ELCpNEOYk4he/tfF4VeGmY1BM8iiwIZeOxqKE=; b=byu/r7szMOOZUXqgMnneGBUiK2vQ9aio0E7h4pB851A/kYkqSiQxoKbc7HyMyfGZ8BIgBlPTgxBUMAp+Lx63kT+BcrJ4VBiVvemFCUZsbIx1d4i9kFpNFFclcTIwTVwi7z2pWGzVaChsUL65iLUDeLsQE1H3+vQOLmOJlPXGqKjAw9QZRodckhNg4CViStfRAWo9JkFphP145NP5SL2tv+MGye5Yc+DmwU79YEYCHwaiVQZJ3vLdB/6Ysb9pJV4dBD6QTw/oEptD/Ab9BuK6FXNHo9TEBCnsBtlk7moWeOVzvV9C5HxGK7k9/bbu5XbRAyKarBOXsVQ90XAS5kC6Zg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QTMJFwAqGbE6eyzWDb+wr+ULXFPqc73gXwGKttLdgpdsx35shMLAAoPjB4pVAodfiibL8HF5uV3LWd88LREPZXaSFbHcdjlXeFKNIq0CpB2IB4Ie3tgQJ1IoCWcr0PcI90ERa6haQ2a7OFWDzupAvkQtDJ145zzew2tuaqQkj/8xg8ZprlSbJ5rPBF9i2+I/TPqEHG6Fqe/GJlAmFvALDR4XH6+5o8/QwR1z+uVbmdjfU5f2+DPFT9VfhZb1AhzfYApXzh2H7tsLUNqjkpuSntHd96d4988ckKU5vkVr8ALeUizhXXLxKqaOIoJ4nqA2O46KkEpDRdLOvj2OEwnn9Q==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Sat, 15 Apr 2023 05:00:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZbwMRTii87254YUmjLql73V41Gq8rnEuA
  • Thread-topic: [PATCH 3/3] xen/arm: fix unitialized use warning

Hi Stewart,

> -----Original Message-----
> Subject: [PATCH 3/3] xen/arm: fix unitialized use warning
> 
> When building the hypervisor with -Og, we encounter the following error:
> 
> arch/arm/domain_build.c: In function ‘make_cpus_node’:
> arch/arm/domain_build.c:2040:12: error: ‘clock_valid’ may be used
> uninitialized [-Werror=maybe-uninitialized]
>  2040 |         if ( clock_valid )
>       |            ^
> arch/arm/domain_build.c:1947:10: note: ‘clock_valid’ was declared here
>  1947 |     bool clock_valid;
>       |          ^~~~~~~~~~~
> cc1: all warnings being treated as errors
> 
> Fix it by initializing the variable.
> 
> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>

Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.