From patchwork Wed Jun 15 13:07:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongli Zhang X-Patchwork-Id: 9178521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9E76760776 for ; Wed, 15 Jun 2016 13:09:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9062F26746 for ; Wed, 15 Jun 2016 13:09:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8522B27E33; Wed, 15 Jun 2016 13:09:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 25B3B26746 for ; Wed, 15 Jun 2016 13:09:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDAXj-0005bW-4j; Wed, 15 Jun 2016 13:07:39 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDAXi-0005bQ-8j for xen-devel@lists.xen.org; Wed, 15 Jun 2016 13:07:38 +0000 Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id 29/2A-16475-91351675; Wed, 15 Jun 2016 13:07:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGLMWRWlGSWpSXmKPExsUyZ7p8oK5kcGK 4wf3NfBZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8bKmavZCp6yVKzf3MPUwPiDuYuRi0NIoINJ YuW/I1DON0aJ7XeWM0E4GxklZvzYzwbhdDNK/Lo5j72LkZODTUBHYtqBUywgCRGBNkaJBVPuM oMkhAWiJGZsPM4CYrMIqEr8PLQUrIFXwE3iWu8UMFtCQE7i5LHJrBC2sUT724tsExi5FzAyrG LUKE4tKkst0jU010sqykzPKMlNzMzRNTQw1ctNLS5OTE/NSUwq1kvOz93ECPQzAxDsYLx42vM QoyQHk5Ior4dcYrgQX1J+SmVGYnFGfFFpTmrxIUYZDg4lCd6PgUA5waLU9NSKtMwcYMDBpCU4 eJREeMWDgNK8xQWJucWZ6RCpU4y6HAt+3F7LJMSSl5+XKiXOux9khgBIUUZpHtwIWPBfYpSVE uZlBDpKiKcgtSg3swRV/hWjOAejkjDvb5ApPJl5JXCbXgEdwQR0hM30eJAjShIRUlINjCH9vQ /T7984tFf014+jX2U2ZNUqStzZsflKtGFp28YpT+QioreFHf68OaajZLvzC4/w22VLtu2591M ijeH+0ztmPzZP136Z7/aWbfuE2QFz78/4fHW7xYw9Aoevl4jMfhTCm/T49/QzSnKJO+otnmou u+devXinYeafnz2eitK+1b93NcYdLjqgxFKckWioxVxUnAgA2hrxP3kCAAA= X-Env-Sender: dongli.zhang@oracle.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1465996055!45037626!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39394 invoked from network); 15 Jun 2016 13:07:36 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-4.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Jun 2016 13:07:36 -0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5FD7WNe022897 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Jun 2016 13:07:32 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u5FD7VXd030293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Jun 2016 13:07:31 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u5FD7UX4013536; Wed, 15 Jun 2016 13:07:30 GMT Received: from linux.cn.oracle.com (/10.182.70.252) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Jun 2016 06:07:30 -0700 From: Dongli Zhang To: xen-devel@lists.xen.org, konrad.wilk@oracle.com, ross.lagerwall@citrix.com, ian.jackson@eu.citrix.com, wei.liu2@citrix.com Date: Wed, 15 Jun 2016 21:07:53 +0800 Message-Id: <1465996073-2739-1-git-send-email-dongli.zhang@oracle.com> X-Mailer: git-send-email 1.9.1 X-Source-IP: aserv0022.oracle.com [141.146.126.234] Subject: [Xen-devel] [PATCH 1/1] tools/livepatch: initialise j to 0 to make some versions of gcc happy X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Initialise j to 0 to make some versions of gcc (e.g., gcc4.5/4.3) happy to avoid compilation error by commit beba3693f7243e68bbe31fe3794da91068eeea5b. Signed-off-by: Dongli Zhang --- tools/misc/xen-livepatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/xen-livepatch.c b/tools/misc/xen-livepatch.c index 3162489..62c072e 100644 --- a/tools/misc/xen-livepatch.c +++ b/tools/misc/xen-livepatch.c @@ -412,7 +412,7 @@ struct { int main(int argc, char *argv[]) { - int i, j, ret; + int i, j = 0, ret; if ( argc <= 1 ) {