Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp355949lqp; Wed, 12 Jun 2024 03:51:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWGui/kFL3n4UnBzacn7xgP4ayeICibFTWddR2/52WSnYuAuTDy6aOr84PjHCJByBAY+QSnrf9g8bq1z4ZbB1KLKfCkdwOaEmvvx9IDw== X-Google-Smtp-Source: AGHT+IGVbmtB0NNeIz2KqzYV9spaaHWiz7cQuu3qgCAcchLat8sAlcG+IWcrvhSw07fMC8I26rIL X-Received: by 2002:a05:6808:f89:b0:3d2:1da4:af63 with SMTP id 5614622812f47-3d23e0e1ee6mr1431138b6e.45.1718189506736; Wed, 12 Jun 2024 03:51:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718189506; cv=pass; d=google.com; s=arc-20160816; b=DZKIolQQmZq6JZMX1dAEuv+pI8nNaZFr+iX6GT2XkO3zSxw1c38zhUlAgPW/Iqq/vt M+xjrHD4TyH9mgvIBMmczQslXLVrMN82gMpBqy7OeEj9k+8V0xYFsidMb6aV6CnYc3Al TdRWkr8wYAxvxT7gfr1r+DOl8+IpJISkXoIeRvYPGMiT626M0Fa0v5kgMhQnrx0IvQ91 IaEmRfzGixbYyQqWiqDgTpdcaJFIyG6gVMiSVdwyd+z+m5GKDjn2Tslf6dSAPVAdvvky 7ZWbLo8E1do0Czv0IBnFaOl6CV/zxQZn0paUQuyQZqYWr6BvuS172qChZ7uYIWzGGFbI sCfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=GSRnLRUTXOeGEJKc1w8t04numzYu87qvx/O6Gj6gzP0=; fh=E3kzHqS1Jm88FpWLmLYVxK5f65z6O2nEEtILSQsq/7g=; b=OExcAl5d9xiwPRbdl/Qf8XAvCgwEz5hsmTX8kdRt/64wYhjQoLguXe7nF5lekiFZxa B/5QY1cc9BqqrYFZ/sNb8XbZ3kCwadFT6NFV03nitjSE+/7ZrGVhgFfMHmKXnPr4DKj4 quXE0wRNQcAp/ZTXN5mKzM68V59hRyMi4AEzn6FhzU1VZVxKyaqlJK7rr8chiDifkB60 mCbGivN9RnFlmf3wrMyLpsLBpHcYDFA6r1YbjyCRmsu45RLcU/Oq9VjSiV76AuloZY1w am1ebvm7K2ulmcSuTs7z4bYW+7hEZUYUpltPwo9acNHYhKt6NJMQvJUHZAXwQoCRdq1O 19UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TKpsIqZb; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-211276-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70424255fa4si7445575b3a.259.2024.06.12.03.51.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211276-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TKpsIqZb; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-211276-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A570288213 for ; Wed, 12 Jun 2024 09:33:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF8F416DECE; Wed, 12 Jun 2024 09:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TKpsIqZb" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 7D0C116D9AC; Wed, 12 Jun 2024 09:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184800; cv=none; b=S4Jrbxy08IaT/y+JXLKqfGSoQVmeoSRhi+zHDu2d/daiOES1crUV7vn5DiO/0VmWYtkXcXkQdtTsN3TKt/JqtHIey60GiznLPXumPPc9idrdVdCqLAv7nlB9f5VsEaLrWdhZlEX+2ySrmIdRvNUZTADHjHmKFdhvIq8qU7Mj1jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184800; c=relaxed/simple; bh=GL4nKRoUa9GkN2VIgnRKxP5jpO2kVuOsRHsPt3n+/2U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Vuor3PGXkFmxKAgZO9S8PaDfhY/YtNihUijf11P8Fl1uBSR2RiGBGl3h5hENbzHTP8StWD+ZpxEMLlP0BnM9oiOwyaoAodu0Wp0Dfhqk7Y4QffgUhjMfzVAmNamuP49OD3V0s2bCSKbFR0S76JBAexZUr8dV+BMRB8o5FsmK88w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TKpsIqZb; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718184799; x=1749720799; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GL4nKRoUa9GkN2VIgnRKxP5jpO2kVuOsRHsPt3n+/2U=; b=TKpsIqZb/6SFjYVhzMCk4xx2lkNBM48MSVaouHpoNPVBBBTf57JQJUl3 lKEc9GrBEIiCM2lwY/MYEAF/xGwMFqc4Md9E+4e5Q1uwDZJXoMG1CVL0U gZ/hQkjtsipTegqOjEHn/0CeXBHs585lVM+sW33tRS2Z2OoD5Mh4O1lqG 1bMje3ZoXm0qJUJsyVhG3gTNf0Y4x54oGmgCFa23dG8NyqU0xmfnKkCSB qFvbDvqfhzRq5ygpHF78UZdHPisUhS8ye/kv4xg9jUea45QBPkwq60lNG Yc6aQNxkEbYy21obL21vpH+/XQcJf24AgwiJV2493ralKal1eesfKzQUh Q==; X-CSE-ConnectionGUID: UZEA+910SMSGM794WBBwXw== X-CSE-MsgGUID: LpWoGJ/VSkqZTsrue/CDnA== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="14661123" X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="14661123" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 02:33:19 -0700 X-CSE-ConnectionGUID: 5O+HJgx5Qi22kyyQsudUDQ== X-CSE-MsgGUID: A8EnF27yTNi4C3qy2+2GRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="39589102" Received: from unknown (HELO localhost) ([10.245.247.204]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 02:33:09 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 1/1] PCI: Remove extra parenthesis from calculate_mem_align() Date: Wed, 12 Jun 2024 12:32:49 +0300 Message-Id: <20240612093250.17544-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 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-Transfer-Encoding: 8bit RHS of <<= does not need parenthesis so remove them. Signed-off-by: Ilpo Järvinen --- 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