From nobody Thu May 2 20:43:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1615371231; cv=none; d=zohomail.com; s=zohoarc; b=QHw9ptVUoAhGeu/SSxpF1FNfMl4leo31+N9SqnbJ5GOcv471g0uIBnMkX9UlRdfKWecwHsNMGY7iWE7zvzh1idfBnFmTrq4MND4NoyC+bMMKh9krIrSVEgXH1EunMuCTKc0tKYd7l+gPRj6tOh0abYO4KuRZiAg5em9I2X25D/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615371231; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=xSz8z++nz7zo0taD7a44rCc2zm2DDN7sLhZYwx3QeEc=; b=NAeyAdB+co3bjZADxSxg6WgR9oi9lJqn8iVqTp/ds0pDdlziS7sQRiVdeXnTWhExUQIkoi85XCk8yWKriJNhVBWqyZQuwiP5V3saWGycRFXaQ9KXwVWOAXJdqeVXGxcjfAFA3O8zKgjGfvI6UMz7HfpMvqlVO0Mh8+KbWF2f/fA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 161537123134831.325392481324457; Wed, 10 Mar 2021 02:13:51 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.95948.181188 (Exim 4.92) (envelope-from ) id 1lJvpy-00005J-A3; Wed, 10 Mar 2021 10:13:06 +0000 Received: by outflank-mailman (output) from mailman id 95948.181188; Wed, 10 Mar 2021 10:13:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJvpy-00005B-6F; Wed, 10 Mar 2021 10:13:06 +0000 Received: by outflank-mailman (input) for mailman id 95948; Wed, 10 Mar 2021 10:13:04 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJvpw-0008WR-Ie for xen-devel@lists.xenproject.org; Wed, 10 Mar 2021 10:13:04 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e0cec7fd-a36d-44d1-a694-87b6a78d97f2; Wed, 10 Mar 2021 10:13:03 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E4930AE55; Wed, 10 Mar 2021 10:13:02 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e0cec7fd-a36d-44d1-a694-87b6a78d97f2 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1615371183; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xSz8z++nz7zo0taD7a44rCc2zm2DDN7sLhZYwx3QeEc=; b=HYcMtDq7ts2An7e3foPmAye24NID+F3VGATq4wkH+wpHBQqE0oyEmQI/Vn76SrD41sl34N 2ejFbJUJI2PNHtui4pz3zZtiiNzHyhRSQE4ePqcmv6vV8EPOQ1ddR4mtaq+7q9pTJsI48n JKAnU55YXkgHemMN67HJsXXUj0t72TI= To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Ian Jackson , Julien Grall , Stefano Stabellini , Wei Liu From: Jan Beulich Subject: [PATCH][4.15] gnttab: work around "may be used uninitialized" warning Message-ID: Date: Wed, 10 Mar 2021 11:13:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" Sadly I was wrong to suggest dropping vaddrs' initializer during review of v2 of the patch introducing this code. gcc 4.3 can't cope. Fixes: 52531c734ea1 ("xen/gnttab: Rework resource acquisition") Signed-off-by: Jan Beulich --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -4026,7 +4026,7 @@ int gnttab_acquire_resource( struct grant_table *gt =3D d->grant_table; unsigned int i, final_frame; mfn_t tmp; - void **vaddrs; + void **vaddrs =3D NULL; int rc =3D -EINVAL; =20 if ( !nr_frames )