Received: by 10.213.65.68 with SMTP id h4csp126322imn; Thu, 15 Mar 2018 11:35:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkAI+voOw1gy16b7DCK1IxNmx6QlJ3cY8jalPi00dxexuGY4JECPFVrZ13pXWAr1fSvSfi X-Received: by 2002:a17:902:7e42:: with SMTP id a2-v6mr116383pln.13.1521138954483; Thu, 15 Mar 2018 11:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521138954; cv=none; d=google.com; s=arc-20160816; b=RuBCeopOKKZEDKQvojRfN2AU2RYwJuj3FO/16k8bL9yUzoNGV7odmLQlNyEBNiDSH2 du2es8xSAJ9M6UlQCOx/I79XLFWWZKbdD9iyojXkBzHl1ulpFoSEPauigH2rGKbqpGhO kbI21fNNBXhmBY061IYVIa5Xdx5e9tH1NFgk8oejaBrL7MVtDy4jwmtJvB0A3q6VyJdT S8Waf5d/fC3nGLnGTTtvlV8Nx+LR1/sbYl9VzVYhZxXqZM5Sq30xfgn1hVloJJb3P1Fk tzyhNeCLwRhABrdo4aOMQtqxuxKJmG6Ox1YOEt+2keLgUTDPMy6sTKKrzc0rB+a3pbXm scQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:in-reply-to :subject:cc:to:from:user-agent:references:arc-authentication-results; bh=ZxzMcXvb4vZcC/6dCjFhA9FsnNnPedpSIJ0l9xL9jFk=; b=ynXoWGG6w4X88zJrKWyhxoKd0b7k10KpcT4RBtC6mYUNYuP2DYK2VEhorbSE471HHS poyI4u0sj2gMh1CfM0qs3ZqtDQKrYzeQkpGTmj6HzvyQxSv8ENEI1sZu9DY3OhLzJ46a lEp4u+y2q9WJ2rIPFwhP2vbGoU0ViPVpEMYRQbB1FFVFJmwXLn5R1XA5/k+LoYFgsUzR QaOms7ifQ/fwPG09928ZAwAeuB9Wmz73LdIblflKhb3cUA5RATO0wcecXvP1NzC83zQT L6XA8Qb41YfMtjv0x2WBSxDrx+B0OQQPQ8mbuKdUXiHeMAFCYz0l9IfU+mP2quXbze7E /z8w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y64si4244122pfj.47.2018.03.15.11.35.39; Thu, 15 Mar 2018 11:35:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932515AbeCOSeX (ORCPT + 99 others); Thu, 15 Mar 2018 14:34:23 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55796 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752524AbeCOSeW (ORCPT ); Thu, 15 Mar 2018 14:34:22 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2FIYMwG063608 for ; Thu, 15 Mar 2018 14:34:22 -0400 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gqsj1emm1-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Thu, 15 Mar 2018 14:34:13 -0400 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Mar 2018 14:34:12 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 15 Mar 2018 14:34:08 -0400 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2FIY8Ju52101328; Thu, 15 Mar 2018 18:34:08 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F4025112034; Thu, 15 Mar 2018 14:32:46 -0400 (EDT) Received: from morokweng.localdomain (unknown [9.80.218.88]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS id 8CA7A112040; Thu, 15 Mar 2018 14:32:43 -0400 (EDT) References: <0dd9d938-8d89-f0e0-f05f-9a3e5dc42a57@users.sourceforge.net> <87fu52jqtc.fsf@morokweng.localdomain> <20180315115753.rjejlkrp3fhdxbyk@mwanda> <1521126196.22221.10.camel@perches.com> User-agent: mu4e 1.0; emacs 25.3.1 From: Thiago Jung Bauermann To: Joe Perches Cc: Dan Carpenter , 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() In-reply-to: <1521126196.22221.10.camel@perches.com> Date: Thu, 15 Mar 2018 15:34:01 -0300 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18031518-0008-0000-0000-000002E642F3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008680; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01003508; UDB=6.00510712; IPR=6.00782833; MB=3.00020055; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-15 18:34:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031518-0009-0000-0000-00003892C40D Message-Id: <87605xp4rq.fsf@morokweng.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-15_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803150202 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches writes: > On Thu, 2018-03-15 at 14:57 +0300, Dan Carpenter wrote: >> 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? > > And modern compilers create their own jump labels > so this doesn't change object code either? IMHO it's an improvement to the source code itself. I wasn't thinking about the object file. -- Thiago Jung Bauermann IBM Linux Technology Center