From patchwork Fri May 28 17:02:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 12287277 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85461C47087 for ; Fri, 28 May 2021 17:03:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6DC8F613B4 for ; Fri, 28 May 2021 17:03:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236316AbhE1REf (ORCPT ); Fri, 28 May 2021 13:04:35 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50627 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236746AbhE1REb (ORCPT ); Fri, 28 May 2021 13:04:31 -0400 Received: from 1.general.khfeng.us.vpn ([10.172.68.174] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lmfsm-0005lN-NG; Fri, 28 May 2021 17:02:49 +0000 From: Kai-Heng Feng To: bhelgaas@google.com Cc: Kai-Heng Feng , kernel test robot , linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] PCI: Add const type for comparison function parameter Date: Sat, 29 May 2021 01:02:42 +0800 Message-Id: <20210528170242.1564038-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Commit 4f0f586bf0c8 ("treewide: Change list_sort to use const pointers") added const on parameter "struct list_head *". So add const to match the type. Fixes: 276b15de5287 ("PCI: Coalesce host bridge contiguous apertures") Reported-by: kernel test robot Signed-off-by: Kai-Heng Feng --- drivers/pci/probe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index bf58e5dd1d82..bd862b612633 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -875,7 +875,8 @@ static void pci_set_bus_msi_domain(struct pci_bus *bus) dev_set_msi_domain(&bus->dev, d); } -static int res_cmp(void *priv, struct list_head *a, struct list_head *b) +static int res_cmp(void *priv, const struct list_head *a, + const struct list_head *b) { struct resource_entry *entry1, *entry2;