Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2695035pxb; Sat, 30 Jan 2021 10:57:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+VfOGkQxdu1OtFP3+ZklFhL1M3ekb9cS7pB21jelah4cEgT5Bjmt4PsnGAfs29kOUhoGV X-Received: by 2002:a17:906:1308:: with SMTP id w8mr10077916ejb.396.1612033022113; Sat, 30 Jan 2021 10:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612033022; cv=none; d=google.com; s=arc-20160816; b=KIPLpL5gYZCF4zxfCKig7iHHULtoxgqk+D4YaQAcjUDNfM7iwtLCjd2Se/Bcdlw0y7 FqaFn4metP7PvzKNZ0O9nnAOdZppXUlWh9TuoTZWFbI9iLkPJwIAYnBj103M/kdvlCb6 j75iQgJt57UJGZwZEJOFPGSJOqOHyyBvltCuMmcANzbqtpFTEPGvgZF9hPpoHgy2ukrk 1ZnE/XidsZUcDl2rpl31DHjULrFPkEoCpK/aIv+iMeKA9Udv6QkDQbtDg+OcqZtWHjbS mve4NafcJPfiYjCAXbdaXJ5U6hEQFzbifQX+HwVoEKG2v0NROn9EC3B5LfFqnmXf9IfM i4VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=NLj+Z0FUcqmXRYDwlbPiyXpdtRL8x02bLOhtKqLeaq4=; b=LoHFlE9+SkbPxz2LoGurGzt7tGETMT77oAPI+3WcwGYRfo5xEwT7KIKErRvYFnTBJJ uM/32HbMMm0iGNz+Z+qk/A51y5RJuqO1y6ARiErzRNVJDXzv6vfLwRzzbHHbXEBaoWfQ DP3wZODqs4kvpruKzwjVDLR1sK7P5cTxSvQueDdQmRmXan1lzZeH6tS7+MtlZvBUw5wM ecP17MSoWmB7M+N0N5knJ4R3wxkkKv444RUVXtm/Many4WHfht8SlVATokask7HafsR1 YOOFmnnU7fEX/vdcBektHEtMwKoY4SS+PBWAcu3+ePOwgwNK+Ta5wAbT0n7X1AriSkmC pi5g== 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 o27si8199262edz.400.2021.01.30.10.56.37; Sat, 30 Jan 2021 10:57:02 -0800 (PST) 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 S231657AbhA3Sz1 (ORCPT + 99 others); Sat, 30 Jan 2021 13:55:27 -0500 Received: from smtprelay0024.hostedemail.com ([216.40.44.24]:51474 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230045AbhA3Sz0 (ORCPT ); Sat, 30 Jan 2021 13:55:26 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id D06351800AEC5; Sat, 30 Jan 2021 18:54:44 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:2898:3138:3139:3140:3141:3142:3355:3622:3865:3866:3868:3872:4321:4605:5007:6119:7652:10004:10400:10848:11026:11232:11658:11914:12043:12297:12438:12555:12740:12895:12986:13439:13870:13894:13972:14181:14659:14721:21080:21627:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: match33_441563d275b3 X-Filterd-Recvd-Size: 3597 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Sat, 30 Jan 2021 18:54:43 +0000 (UTC) Message-ID: <52f038d9ff547deee4e5b5628507e61ec8d056b7.camel@perches.com> Subject: Re: [PATCH 02/29] alpha: Avoid comma separated statements From: Joe Perches To: Jiri Kosina , Robert Richter Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, oprofile-list@lists.sf.net Date: Sat, 30 Jan 2021 10:54:42 -0800 In-Reply-To: <4facd57f80c70437f085ba3a1bcf13ae0b63c3bc.1598331148.git.joe@perches.com> References: <4facd57f80c70437f085ba3a1bcf13ae0b63c3bc.1598331148.git.joe@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-08-24 at 21:55 -0700, Joe Perches wrote: > Use semicolons and braces. ping? > > Signed-off-by: Joe Perches > --- > ?arch/alpha/kernel/pci_iommu.c | 8 +++++--- > ?arch/alpha/oprofile/op_model_ev4.c | 22 ++++++++++++++-------- > ?arch/alpha/oprofile/op_model_ev5.c | 8 +++++--- > ?3 files changed, 24 insertions(+), 14 deletions(-) > > diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c > index 81037907268d..b8af7ad6c607 100644 > --- a/arch/alpha/kernel/pci_iommu.c > +++ b/arch/alpha/kernel/pci_iommu.c > @@ -161,10 +161,12 @@ iommu_arena_find_pages(struct device *dev, struct pci_iommu_arena *arena, > ? goto again; > ? } > ? > > - if (ptes[p+i]) > - p = ALIGN(p + i + 1, mask + 1), i = 0; > - else > + if (ptes[p+i]) { > + p = ALIGN(p + i + 1, mask + 1); > + i = 0; > + } else { > ? i = i + 1; > + } > ? } > ? > > ? if (i < n) { > diff --git a/arch/alpha/oprofile/op_model_ev4.c b/arch/alpha/oprofile/op_model_ev4.c > index 086a0d5445c5..004f80a4291f 100644 > --- a/arch/alpha/oprofile/op_model_ev4.c > +++ b/arch/alpha/oprofile/op_model_ev4.c > @@ -46,18 +46,24 @@ ev4_reg_setup(struct op_register_config *reg, > ? map it onto one of the possible values, and write it back. */ > ? > > ? count = ctr[0].count; > - if (count <= 4096) > - count = 4096, hilo = 1; > - else > - count = 65536, hilo = 0; > + if (count <= 4096) { > + count = 4096; > + hilo = 1; > + } else { > + count = 65536; > + hilo = 0; > + } > ? ctr[0].count = count; > ? ctl |= (ctr[0].enabled && hilo) << 3; > ? > > ? count = ctr[1].count; > - if (count <= 256) > - count = 256, hilo = 1; > - else > - count = 4096, hilo = 0; > + if (count <= 256) { > + count = 256; > + hilo = 1; > + } else { > + count = 4096; > + hilo = 0; > + } > ? ctr[1].count = count; > ? ctl |= (ctr[1].enabled && hilo); > ? > > diff --git a/arch/alpha/oprofile/op_model_ev5.c b/arch/alpha/oprofile/op_model_ev5.c > index c300f5ef3482..6f52244e1181 100644 > --- a/arch/alpha/oprofile/op_model_ev5.c > +++ b/arch/alpha/oprofile/op_model_ev5.c > @@ -92,9 +92,11 @@ common_reg_setup(struct op_register_config *reg, > ? if (!ctr[i].enabled) > ? continue; > ? > > - if (count <= 256) > - count = 256, hilo = 3, max = 256; > - else { > + if (count <= 256) { > + max = 256; > + hilo = 3; > + count = 256; > + } else { > ? max = (i == 2 ? 16384 : 65536); > ? hilo = 2; > ? if (count > max)