Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4364342imw; Thu, 7 Jul 2022 17:55:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZZuLDTgFDCx+ZdIfAq+u35oPHdx8wmJac+bbtGuOTSDAR10x7EYA8588TVQhqVS2dtq+O X-Received: by 2002:a05:6402:1518:b0:43a:103f:eaab with SMTP id f24-20020a056402151800b0043a103feaabmr1172201edw.280.1657241717338; Thu, 07 Jul 2022 17:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657241717; cv=none; d=google.com; s=arc-20160816; b=Eu5z9Fh787jbq5e7eBEezkkAcxYSFuVRzSOYaX+vAKRFNoQZxy55IsU5e1mGkHuK9P AAmDSeoxyNKkvU9dR1GAiCHeu1taqFIBfESeUnWZbMGOx9kBsbheWWpaAaZSo6aGzDJ/ Hgrj4VI1InfIQwWN0ZRytJWxfjMMYYEwpKowPxQLIrWTZvJ0NjsruIw49PFg79FZYk+Y R14CMrMzUYze39SNJlJ4hhex4czR07rJ7ioV1/2ZjEfiPr+4L6yNEx+yecCTFZy/VSCJ 0MUDHhOS8NG3WWHypDDKPzNk99yFBsnMtOEf8pWEqgpw4EXGzVTLg1VNS6g5uxFd7sPd IHAA== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=RVjLlv8eP8dwe6sbjupQRA3e0NbRlW7wBbLtagJ7psI=; b=qUO1vGRHrysHn6LeJP3WYz+ce25iskpXfoc5HZIILEg8XJmHtYI7Wd48Jt7djRsF37 1swG3b3zdgoYHI4drvjRIjZoOSK/yvkkslcVrIm2FmgR/yfYpL+BJaWbfDgelr/DVnPO ni0pcEwHC7DDxy3FAqGlwAZSfElnnSsL0BqVzz99+98t673OtxWnapcQL3Mz3CTs0cX8 CxD9h6rL4qAWPzmaO0fMTcgh/fYcbzOGDwzN98c1VK0TkcfmCBOyR10CbLe8mPquXyT9 WBC6HVL1a2+WwVpg9mC6VJWpzLYAmI2UpwaSjizsg4aHn98e9j9CgNSA3B22iB7Y7KWC UZZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=K2cRHoAU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=yPjanZhn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg17-20020a170907971100b006fed9376071si24369669ejc.13.2022.07.07.17.54.52; Thu, 07 Jul 2022 17:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=K2cRHoAU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=yPjanZhn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236056AbiGHAtk (ORCPT + 99 others); Thu, 7 Jul 2022 20:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiGHAth (ORCPT ); Thu, 7 Jul 2022 20:49:37 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DD76050F; Thu, 7 Jul 2022 17:49:36 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 913975C0164; Thu, 7 Jul 2022 20:49:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 07 Jul 2022 20:49:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1657241373; x=1657327773; bh=RVjLlv8eP8dwe6sbjupQRA3e0 NbRlW7wBbLtagJ7psI=; b=K2cRHoAUQ0st5HMD9r+DTeAYkYtu+CAF+zPUEdpLY RTQDa7ACbu6UHvoQnmutzsYo1UYwF3VZ3kbi3w8ZKxFNajrhKzb7oxeSnsutpX1C HxgBd/NUG7k662r8aWrx0QVRqprAgBoyJHyNikIu+9TvlRlXzMtXdfE4jOo4NU5+ d5k3dALErg1fY3XQoLFcOdmy3oX47bBkZ4/zvUUB4aUBkMT1mQz0tFl9Q6wQsu5b rRVOrZBCLaa2Ss2/KT+GNtLD6n28LxfnSKlIsdUFa/NyuQv+HQ2Z/GXcZnyDpzd1 39CnG8dWP0NJkE95N7oFXuUAbWURuJEkglKEXSV9xf5cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1657241373; x=1657327773; bh=RVjLlv8eP8dwe6sbjupQRA3e0NbRlW7wBbL tagJ7psI=; b=yPjanZhn4OfvjG0KUFSqfvZ/JnQp36PhFjDU6MqOuf1LT7MU8ic +PsmivhN7FNzBBFiC0qCmmldoi9iIaj2QPqk3bscCyquo+iAux+NA1qfuAvYp7v6 jGZ4pUHm/nvgd4S5zeBt2tMLIUI3/9nGVKp92oxx2ETX45dfOYuLmjj9JRKcJjOQ fY6y7UxkUxuEGXipycN6gRFgjj7Zl2lONYYpu6JbxbBmH255OD5EY7+n0cRoEYF6 JC6WoNPoTIHa0OiXNhDV3ZVqd4LEkyBEm45h0TV5YL8gnMJsuNIcjD0HISekA9OK 8JypebfdoapEswTBsXbOU8OMnyA8ogHS8SA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeiiedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Jul 2022 20:49:32 -0400 (EDT) From: Samuel Holland To: Marc Zyngier , Michael Kelley Cc: Samuel Holland , kernel test robot , Bjorn Helgaas , Dexuan Cui , Haiyang Zhang , "K. Y. Srinivasan" , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Lorenzo Pieralisi , Rob Herring , Stephen Hemminger , Wei Liu , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH] PCI: hv: Take a const cpumask in hv_compose_msi_req_get_cpu() Date: Thu, 7 Jul 2022 19:49:31 -0500 Message-Id: <20220708004931.1672-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cpumask that is passed to this function ultimately comes from irq_data_get_effective_affinity_mask(), which was recently changed to return a const cpumask pointer. The first level of functions handling the affinity mask were updated, but not this helper function. Fixes: 4d0b8298818b ("genirq: Return a const cpumask from irq_data_get_affinity_mask") Reported-by: kernel test robot Signed-off-by: Samuel Holland --- drivers/pci/controller/pci-hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index aebada45569b..e7c6f6629e7c 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -1635,7 +1635,7 @@ static u32 hv_compose_msi_req_v1( * Create MSI w/ dummy vCPU set targeting just one vCPU, overwritten * by subsequent retarget in hv_irq_unmask(). */ -static int hv_compose_msi_req_get_cpu(struct cpumask *affinity) +static int hv_compose_msi_req_get_cpu(const struct cpumask *affinity) { return cpumask_first_and(affinity, cpu_online_mask); } -- 2.35.1