Received: by 10.213.65.68 with SMTP id h4csp1612970imn; Thu, 15 Mar 2018 05:00:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELuib60/GfTwJbQ1MBDgi6nASGTuNKnXaGOVoJxFfcTwQEr1nkl72lYTThq933QLNi4PY5v2 X-Received: by 2002:a17:902:b416:: with SMTP id x22-v6mr7882608plr.279.1521115245560; Thu, 15 Mar 2018 05:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521115245; cv=none; d=google.com; s=arc-20160816; b=InHqFBAy0rz5Yw2RqEVYbIxJMYWRNt1QIisLibiUKGluI6nm46XGpAaWuc+WIK8usQ ydarB+3lKpOyczxVh2eHgUVawE27Hd7zdEYQEe3ErzpjtrIAoDDtG3pyEwmVpJDUEUSt WGAvrBgnVzQ67HsGZx4NU2n7Qcsvus0ARuzsaROgPFB9V8aMF3DBq/T3On5UeoDgxZqZ wqrecFuva+DCBvHer3AVMb8EItz875btXkf1//65hxytcDmeCF1+Nu6W9mzhukkIZUmB 1pnSyDez+Ie8EmNSjNEvEZLM9F4zBywrADJHvT3whsBzLdiZ4uor5VcCRlxNwdHuXEcJ Puew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Q2ABxVZ4ooWUVu1jFlmIxKQ5/Hd33x5dG7suI4b4Wvo=; b=KERYMPiQ5whzIn7IRusmdtfYgZA0MMDkX/UqscFsxiKIUqblcOUcT+p/RQoowqxubg MgbNMwtZlPfmG/UH6SPOnqLOwv2bDnN4gCrkmWA2mVDJCFkHKydtYUisEt23Tt6CwMY4 /jRoHFZ8f9uYNPn5DHzaRU4l2M0F8C/kyjwDyLmohjvhqFkGQaGQkNEbh6N5eHZtUrMf RyXn5mLYVN4BNp75fzsUJlRp1LHyJroHwRIqJOTqPoiKlow2cfr/OTg6FTrXPqF/8QjF BiG1e0yckbTBcMuPQNFjHr3qzFBk2P/A7x4jrP4kg/GeyUKzItOarJGZCL+2lE7MfEJa lslQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=nXcirNyw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61-v6si3868369plr.136.2018.03.15.05.00.27; Thu, 15 Mar 2018 05:00:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=nXcirNyw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680AbeCOL7A (ORCPT + 99 others); Thu, 15 Mar 2018 07:59:00 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:46990 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbeCOL66 (ORCPT ); Thu, 15 Mar 2018 07:58:58 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2FBvF1K055168; Thu, 15 Mar 2018 11:58:09 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 : in-reply-to; s=corp-2017-10-26; bh=Q2ABxVZ4ooWUVu1jFlmIxKQ5/Hd33x5dG7suI4b4Wvo=; b=nXcirNywKAE/KytFP3sJMFR91w825RgvkgnIOcYrd9HuZzNchtJJ4mt8FJonIjlcBgRk PFXn3DkOVtz47TYVBsAlnycc+Hsiow1cB/7viyOLFGdYvAzytf97LmUPuH/fBpiNalJ8 SVd+WIrcgOZ8QCnoMFSh7RJOc6FNSeER98n1gBMlgiRM1RRtQXC9SNGdDCl1pvoUlsLJ 7ZhtTjj4Zpj6wMkL/cPwSGKoCZpPMVz7p1QXHO42eQTKRj+TSodVuwXYeGmHFdoWaK/7 rnezcOodEu0EshgHOwhKQsRsbWqXw0pvGSEbr9TSS/13S/S5NajaOUnrCCthUQetEXMC UQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2gqqn207f2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Mar 2018 11:58:09 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2FBw9NX007207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Mar 2018 11:58:09 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2FBw5xe030281; Thu, 15 Mar 2018 11:58:05 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 15 Mar 2018 04:58:04 -0700 Date: Thu, 15 Mar 2018 14:57:53 +0300 From: Dan Carpenter To: Thiago Jung Bauermann Cc: SF Markus Elfring , linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Borislav Petkov , Brijesh Singh , Josh Sklar , Kees Cook , Michael Ellerman , Paul Mackerras , Thomas Gleixner , Tom Lendacky , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH] powerpc: Use common error handling code in setup_new_fdt() Message-ID: <20180315115753.rjejlkrp3fhdxbyk@mwanda> References: <0dd9d938-8d89-f0e0-f05f-9a3e5dc42a57@users.sourceforge.net> <87fu52jqtc.fsf@morokweng.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fu52jqtc.fsf@morokweng.localdomain> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8832 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=743 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803150134 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 14, 2018 at 06:22:07PM -0300, Thiago Jung Bauermann wrote: > > SF Markus Elfring writes: > > > From: Markus Elfring > > Date: Sun, 11 Mar 2018 09:03:42 +0100 > > > > Add a jump target so that a bit of exception handling can be better reused > > at the end of this function. > > > > This issue was detected by using the Coccinelle software. > > > > Signed-off-by: Markus Elfring > > --- > > arch/powerpc/kernel/machine_kexec_file_64.c | 28 ++++++++++++---------------- > > 1 file changed, 12 insertions(+), 16 deletions(-) > > I liked it. Thanks! > > Reviewed-by: Thiago Jung Bauermann > You know that compilers already re-use string constants so this doesn't actually save memory? Also we should be preserving the error codes instead of always returning -EINVAL. regards, dan carpenter