Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp960186pxu; Sun, 25 Oct 2020 23:41:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPH9vjT0EXGKfh+EZEpqXN7a/83aI1xcf7VmuQKfk6Tesxtjih+ElYfdXmSIK42nma0YMj X-Received: by 2002:a17:906:154c:: with SMTP id c12mr14930741ejd.427.1603694516257; Sun, 25 Oct 2020 23:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603694516; cv=none; d=google.com; s=arc-20160816; b=MhHT6YInaJQKClB0ux+8GzmEZfd+fB6kL1jRu5smVvYdvXuI14tU7iZaRXBx1vjaj6 tDcs/PL1kVBUL0Z0XgQn9WkrVC/n6MWYXAe/mK75KLOy7U7ADQO5+ivrRirlHYwxBJks FxLkX+H7oiwV+JQkxwNwjI4mscYIhPPikvCPm+q3EQ3tmLCDhihY4eAqtWtH4SQlEiJG pPsdRuSKr1mLvwHnMPpNPb0DuKzCZF+abiV2DNb5VcSQy83qUQkpM5gEJHJq1zSMdY/4 vqnqcB9QcHcOHcB7P8+NIYGl1AGOGnfIVM1y8S/aRxmEig6HqO3XSKAzEEsUrBqHoHAG +OSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AwSbvxKq0VAfO74U3k40Hd6ILxvYvhZQurF8b1QOMtA=; b=vyeFmgXJQxPc/zsl7+no1WPHLAnpaIyoNVePKwTl4C5jmRsHnWNggbR+9plT+kOlWN FG0Qxans7BF3dJ1tYAepJqZ4LNypBBm8/9QPo6H1QxNs/Vx0Qhp5e5GAU9wml4NzDXdF FT6sq72S5qhSRsnKCBQJaefEpsuDGuZ/9ptzrjIAKQwn7fxjOSwccsBuow0Docsh8LBw snsCivVPigi3pb4OZZZNoBlC8yboHXFwDGOJqBFVdxtQITIRCeeco60JvTk/O+NCANdg 4+2vIm0mTAD41B1L6ORN5IkA+Zxwgs5g4yvk1iO1weKfbURzZ5NH9YIbFW6fJgGZZxNs I4mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6AA36Q9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si6665237edm.403.2020.10.25.23.41.34; Sun, 25 Oct 2020 23:41:56 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6AA36Q9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1420288AbgJZCw1 (ORCPT + 99 others); Sun, 25 Oct 2020 22:52:27 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39112 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389281AbgJZCw0 (ORCPT ); Sun, 25 Oct 2020 22:52:26 -0400 Received: by mail-lj1-f193.google.com with SMTP id m16so8151328ljo.6; Sun, 25 Oct 2020 19:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AwSbvxKq0VAfO74U3k40Hd6ILxvYvhZQurF8b1QOMtA=; b=Q6AA36Q929Z1/5aYQTeDbm99kwaF6D1OcvZ9JKZRxjYGnfHCrXXWvBkby++magzUqv GEl065D4tjl7/GFM87ODyN8tutcTc/mKsfsgcArGgL11b+T6ifWn61Xdr434ras8+0od 9I4uZQlwxjKDy/IRxqIz+TBqm1KVbUDZ6LAWqBzsIWjvhEau8Dposcc6gH+Sk5/edFFb 428XtEcmxWLCWo6w3P+JN94Kw6LeNqN3j8Heg7zmofWOUUP33sQGubY78ioJT2EjVPtt 1V++N5zAmvWie2NdhM0r08+r9gjtw13B3FRn5alh9xSOeD2r/xt4tDAQL8+FvzlFN/Nr to+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AwSbvxKq0VAfO74U3k40Hd6ILxvYvhZQurF8b1QOMtA=; b=cuicKS+F+6dvswBDc9HDUot3xebaC6EMUFN/BER6eQ+a2TPovy4b9szlbynCKiBMwj 8A0o54XeXNgJ28Ln3olYEZ5LW/mA0Rw/sfkn6+f69IjbrEclAj59PW1b2fPAMT6eccuZ Hnb6SzzWuRntXpGg1ZkKlXKsWrg+88lCfm/IiWVN8J2loA9XHXck+JdbJ+r3Sv2EPK63 tj3aE2W7+vsxrhRlHxgihGueXv2uFF3gpqRf8cjkWx+EIy1s5PfMHe/+IssFRWn6ueJt Zp3CphirOBD0ChzFssoBWTgJgrwbgG65wnlL1eSx0gnSujsUkn1biq+BIOpsouKYI2dB KhTg== X-Gm-Message-State: AOAM532vp+z9GNOjF9A9GRjb07K69U2A/i+TcXiclOGmn1pWLC/ByLwI rFaol+7CoPti5P3O078cZjhQRw4LqDzgItCrSBU= X-Received: by 2002:a2e:b1c2:: with SMTP id e2mr5228295lja.282.1603680744355; Sun, 25 Oct 2020 19:52:24 -0700 (PDT) MIME-Version: 1.0 References: <20201021081030.160-1-zhenzhong.duan@gmail.com> <20201022152148.GA23673@infradead.org> In-Reply-To: <20201022152148.GA23673@infradead.org> From: Zhenzhong Duan Date: Mon, 26 Oct 2020 10:52:10 +0800 Message-ID: Subject: Re: [PATCH 1/2] PCI: export pci_match_device() To: Christoph Hellwig Cc: linux-kernel , linux-pci@vger.kernel.org, Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 11:21 PM Christoph Hellwig wrote: > > On Wed, Oct 21, 2020 at 04:10:29PM +0800, Zhenzhong Duan wrote: > > pci_match_id() is deprecated as it doesn't catch any dynamic ids that > > a driver might want to check for. > > > > Export pci_match_device() as a replacement which supports both dynamic > > and static ids. > > You don't actually seems to add any user outside of the PCI core, > so I think you only need to drop the static specifier and add a > prototype. Thanks for review, will do it. I'll combine the two patches into one if no need to export.