Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp679608lqp; Wed, 12 Jun 2024 12:52:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULMSSvofbEc1/nRqRu5HUJ3OhecDq70/Goy5WYAqm7AKxkHYv3IIG7k9dhcujvlGFlig6qfABMMYIOhlSlzFjEBgR3xHILgYSTvX4LqQ== X-Google-Smtp-Source: AGHT+IHB2eajuemZdSFHJ8sl2VFKFcmLx+rK0aTY2q/5kZHdzQ/3wVJmkflctJ0d4SIUG7TXPqiZ X-Received: by 2002:a81:b641:0:b0:62f:b04c:2442 with SMTP id 00721157ae682-62fbb7f49d5mr30530757b3.7.1718221921602; Wed, 12 Jun 2024 12:52:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718221921; cv=pass; d=google.com; s=arc-20160816; b=uFxNrot5ryuxQwhI3g5m+aiRa7RVTTSuzdWXjlpmspBjGtO21f2+JeOoXhMYDWbajy 9E5zYpKqxyKCdx0LUF2Nk1jJT36JB82/UBEJbJ+gmMbzVVgop7HJGdDJKdQDHgQq1O+a JMOpTJnASDhKtQsdoWuviimJ+ChDV+0AWa+lmiV1AgzNfPu6tkhiBvpVI9sbd1x2T7bd 3RGr6HcyF82PC7v2zWe++mIZ+6KFX0TM9+FZDEp4bSs64xsRgGBn7iKVau+9CZ+1NoBw SgrMQZKrq9Efr3Jz1wUhU1FiHn9FNXCVrezrbo7SBbB11d3Kl8x5oQhLpz+eyqp8057y eFUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=VntSVMn5haWbFqlO05GDMTN/Bd+sMlW9Tw2p3jdU7NA=; fh=5OblGEygAo4FrEbUv88QGsS4jx1ptvse0sIbL5mOX4c=; b=VIKWho/66B0zblGD2L9NuQoUneTBHPmxlwrxlScSUoiTus1FMaH64nGTu0qFRcz9UK tKFrvfPP2c1TBhq1MLTbbrdFSTF8860pFZyuDZghWar/849HS0e7AFvd/DNsxkNhUPNB 6cR4wiOQpNGC8/Tx44f+QLGau4FOMxsgNl+FW/liAzpyN5l2koykHMg+o1H5CdeAFjfX bshp91cGpC1FPJWr0GKMQFugTIiWM/VsiFjFk14J56p8EB2g/cPWPKyByL3bjQ76IANY 68cBN9GVH5T+WCGM4HoXZ5sOic79lwBYY0DtYUJc60U0sO32ni5jsQmC34DxZ7LdmqHY RlxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FB8741tv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b093cf56aasi28713776d6.511.2024.06.12.12.52.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FB8741tv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 515931C218E4 for ; Wed, 12 Jun 2024 19:52:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9564583CDB; Wed, 12 Jun 2024 19:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FB8741tv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCBFC381C4; Wed, 12 Jun 2024 19:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718221914; cv=none; b=TMr/cY45xCSAFRdjnIrc9Nq26xwAGS1o5Bh49QDLBLywLDBpWxCzGkMeBYpvETYUVq29bQSHx9kNseLRdF5bYUwzQCPV2NONX99MGJc5BUDqbP7mtMxC6Zorsenqab+gtIDPkN5PGP9772c5iVJlq10qxfT91VnnlvIq0hG6VL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718221914; c=relaxed/simple; bh=3DSoDGc2KpPo6PasfSy8FmR0m4FIDYDP5J4c9c8bcJA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=gxhcRpdlsa2C1KzEWnyevPUQ8EtlOSzGfr4AcvBpxH87JZIonwp194A0cHlyMwvC86zDDfNExU89j1OCeMqU93UiCJeBo7BqnGG1IfD5p2rUrGPFWCQJlbXpRYaQKNroSwNB014+pqf9E93OtdRlvq6fzFJueYkJuVBCh6EvJNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FB8741tv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61F06C116B1; Wed, 12 Jun 2024 19:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718221914; bh=3DSoDGc2KpPo6PasfSy8FmR0m4FIDYDP5J4c9c8bcJA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FB8741tvIVXF3sOGHRQHVQuTM3uM9Gdxv4ZhM34fVOklCuocM6TRtmcNHV3VXvpuk 9KzHSMOgIsb5Z8FRyW+QWHBo/v+RQ+5TBxzEf3kZkyWbacImn+hLGXsmocXX4X8+Bd B6y0iiKeBjBUAuV29CeTxQSQXUymxibct9N4j6Ixi8ECFDACp5hZfB8lLD+stmbi3Q DfMVo16/kL0xLQ//Wxvm8snTKL2VMCFSnFc4aEOISPpYF9UsCPTwKQcaSaUuPqsQlI 64Anee6HpCLrBSzPs1+LM63/CT8QNCNMzZD9Taz+wVh3mL56TZZdJJkolf99L7r7/o 5bukcL5fZG8fQ== Date: Wed, 12 Jun 2024 14:51:52 -0500 From: Bjorn Helgaas To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] PCI: Remove extra parenthesis from calculate_mem_align() Message-ID: <20240612195152.GA1034721@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240612093250.17544-1-ilpo.jarvinen@linux.intel.com> On Wed, Jun 12, 2024 at 12:32:49PM +0300, Ilpo Järvinen wrote: > RHS of <<= does not need parenthesis so remove them. > > Signed-off-by: Ilpo Järvinen Squashed, thanks! > --- > > This patch can be folded into the commit 658bf5d36dc5 ("PCI: Make > minimum bridge window alignment reference more obvious") in > pci/resource if so desired. > --- > drivers/pci/setup-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c > index 11ee60b9ca71..23082bc0ca37 100644 > --- a/drivers/pci/setup-bus.c > +++ b/drivers/pci/setup-bus.c > @@ -960,7 +960,7 @@ static inline resource_size_t calculate_mem_align(resource_size_t *aligns, > for (order = 0; order <= max_order; order++) { > resource_size_t align1 = 1; > > - align1 <<= (order + __ffs(SZ_1M)); > + align1 <<= order + __ffs(SZ_1M); > > if (!align) > min_align = align1; > -- > 2.39.2 >