Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp796893pxa; Thu, 27 Aug 2020 16:25:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKt2p/zHZy33zMsVAfq8k3AUlNeRF7R3XKyuU/+wUugnoHKzdnm5cKmu/HC0h0dBGYbHzD X-Received: by 2002:a17:906:fc26:: with SMTP id ov38mr20261510ejb.335.1598570730947; Thu, 27 Aug 2020 16:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598570730; cv=none; d=google.com; s=arc-20160816; b=1GEb57nMZZxbNMuk99ZQOPxeW5z7UJXkSgMy/1bAfCoLaDUEy8rqVsQrKM/0GGFuxU 2DsgFXpc6zjm4yKIk2m54oKlwTFP4yBeSvau8aHCIB1jbw2+v+fMulbXe/644VlB2/nE Lewn3v1cCrXFIDI6e+ZoX4GAOIThkFKryMEWOiILVCmK/S92ky9bgdRtdI3CZVJxRc3p rVFwWBDg/hLEr9DREqF6+Jd/tur1oDr+lHDWncD/6ho6UJR0ZplXk4AF5yND8ULggw/G SYcQQb5S+zwDw1VuMaIWQFQ4BpmDC83242CBb7yXLQX1Mny97skBIYtcbcU17tpcsfqJ X4tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=5TxwAqn/X/OfYwwD3davEQYAGCesje1INFopSlPftIA=; b=1LMYlYUyP4zg4ll7z839vxjquc3SFGMr6M7XDbUuyTl53EhQNtzeUCFkOyFz4qJtLN HuDOqAZNO+XFbuoiEcMpGTigKcahUDuvUHO1GDVziJPYTvdePtHvq7nabDvu1f0aNyTc Pwwlv/2rsW3iS7Xkpg39KukIV8lZY3srnD8NyOYRuJ7vjuAUMh+bDBHzPKfwyKLO+1TI j4XJA13u0URpUI1CEn1n28+EPplmTZ7D/mr8Jb+q6gnde5RWtJvIkIn8zPKWKxep2nWe 5GNAYIkXJRCCAb1OjSNkEaOwLDDYI3rv18srykidwIwc2HHIVtM9n/pXq2zXTPXj3+ZJ M0zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si2367157edq.425.2020.08.27.16.25.08; Thu, 27 Aug 2020 16:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbgH0XVO (ORCPT + 99 others); Thu, 27 Aug 2020 19:21:14 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:52844 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727909AbgH0XVO (ORCPT ); Thu, 27 Aug 2020 19:21:14 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 18C9129D96; Thu, 27 Aug 2020 19:21:10 -0400 (EDT) Date: Fri, 28 Aug 2020 09:21:22 +1000 (AEST) From: Finn Thain To: Joe Perches cc: John Paul Adrian Glaubitz , Christoph Hellwig , Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Denis Efremov , "David S. Miller" , Song Liu , Al Viro , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org, linux-m68k@lists.linux-m68k.org Subject: Re: [PATCH 17/19] z2ram: reindent In-Reply-To: Message-ID: References: <8570915f668159f93ba2eb845a3bbc05f8ee3a99.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -109,34 +111,28 @@ static void get_z2ram(void) ... > } > - > - return; > } > It would be good to have a semantic patch for that change. > > - if (z2ram_map[z2ram_size] == 0) { > + if (z2ram_map[z2ram_size] == 0) > break; > - } > And that one. Reason being, a semantic patch only has to be debugged once, whereas manual churn has to be done correctly over and over again. TBH, this kind of transformation can happen when code is displayed. It doesn't have to involve git at all. Otherwise, why have 5 billion transistors? You'd be better off with an Amiga.