Received: from list by lists.gnu.org with archive (Exim 4.71) id 1eRPZP-0003Tu-Ae for mharc-grub-devel@gnu.org; Tue, 19 Dec 2017 16:37:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRPZL-0003T8-Ti for grub-devel@gnu.org; Tue, 19 Dec 2017 16:37:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRPZI-0000VK-71 for grub-devel@gnu.org; Tue, 19 Dec 2017 16:36:59 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:59558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eRPZH-0000UT-Hi for grub-devel@gnu.org; Tue, 19 Dec 2017 16:36:55 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBJLVTSA082489; Tue, 19 Dec 2017 21:36:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2017-10-26; bh=+i8FerzhR5lyqB/nEQQStFkGGYC5zxIoD1wKOgRyj9Q=; b=WUuWYg3i+oErlu1Ox/gUuvovlQfOhqqtvGMv4UDLy1UrTs+1vL+q+cqTzvu/hP2rn2xQ A6+ohRcsr0hLm3JMeoQCRhLPBqBYZzXAB1tf1MdXvibHbP0iu9FEQCdgiXNE/67ThFot rXruNo/+aI01kANVHH5QwLSYAZgYmYJ9gTOimk6W8jraE2aIsRjHulbb5BKgEmimmIN0 98uGXZFXImJ59LewQWxETBf/PoG6/8HHNxq9TA/ldgCJ0TTC/4I95d2sjia4kVgeiHhO wmWiN01LZ9kjMBHyExAWLzoEFFAVWg/LZkzwO/lsVSFy13qlU5bKZLX4IRpHbkMOQ8eP EA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2eyanmgprd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Dec 2017 21:36:51 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vBJLaoSL010613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Dec 2017 21:36:51 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBJLan1d032505; Tue, 19 Dec 2017 21:36:49 GMT Received: from olila.local.net-space.pl (/10.175.173.126) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 19 Dec 2017 13:36:48 -0800 Date: Tue, 19 Dec 2017 22:36:45 +0100 From: Daniel Kiper To: John Paul Adrian Glaubitz Cc: The development of GNU GRUB , Eric Snowberg Subject: Re: [PATCH] sparc64: fix OF path names for sun4v systems Message-ID: <20171219213645.GL4531@olila.local.net-space.pl> References: <1512604410-69771-1-git-send-email-eric.snowberg@oracle.com> <20171218152225.GY4531@olila.local.net-space.pl> <66985316-E572-4572-AB22-5DB1617D7B3E@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8750 signatures=668650 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=726 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712190304 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by userp2120.oracle.com id vBJLVTSA082489 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.85 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2017 21:37:02 -0000 On Mon, Dec 18, 2017 at 11:58:02PM +0100, John Paul Adrian Glaubitz wrote= : > On 12/18/2017 10:30 PM, Eric Snowberg wrote: [...] > >>> +static void > >>> +check_hba_identifiers (const char *sysfs_path, int *vendor, int *d= evice_id) > >>> +{ > >>> + char *ed =3D strstr (sysfs_path, "host"); > >>> + size_t path_size; > >>> + char *p =3D NULL, *path =3D NULL; > >> > >> I think that you do not need to initialize *p here. > > > > I=E2=80=99ll remove the initialization. > > I think that change was suggested by me as the code wouldn't build with > -Werror without the initialization. -Werror is the default when buildin= g > GRUB, if I remember correctly. Eric, if it is true please leave the initialization otherwise drop it. Daniel