Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1446149yba; Wed, 24 Apr 2019 23:09:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyS2/foFlkrRIOgToAlhuvKZffg8PMqSuchJLptxBrf8+w1fGiPHnk30DtnslfwhPyBh4ww X-Received: by 2002:a17:902:380c:: with SMTP id l12mr36883094plc.320.1556172587578; Wed, 24 Apr 2019 23:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556172587; cv=none; d=google.com; s=arc-20160816; b=GmefFoxkyYcnpfCVbrBS7InwR4I/dqFFjhsPreWgbwZ4D1gtomxiy6w74LAfv3yBTc nHxrOkduGYTZ1rmjs+8tftrbbZDWFWidhTEAA0hgBoWe5WONS7PrCvbzPX4qJIHfokBQ 6gWjVaSx1XXK/TlK0PJG22zNsa07gWtRTnnEQgp3bE3cjKN8FLcs4QLSsveaBMVSTKhM tS0s5JhKdpcFMov30DUHeLvjtCmYPo1eX/Zz8PVUg8pFy552vOoYRg503Vqe1ytkIqf1 ST/7otlVfARFsbLP17ZFjb9s4GmV03angqw+U4X2jQN+AaSHoZgiLJVPTeHazougJz/x S1SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc:to :subject:from:dkim-signature; bh=S/zxi2ylVDkqZZBbgyooXrxhGjXILZWxNPyecty54tU=; b=uC/We46R6vhm4XKwN3swyGS6DSzyiAtNALmhwpbWv33S6stKVISqQma5zsNJvFbRYk JcqOQgvXaDvDEuxEz6GwnTTPp/FF1Ez/henwq47Xb6SsQDKFaaw8WYssA0IC14G/2ovd 2uT2uMqUd+GaNbiAgylYRRLqEJBOJQL2VKfSSOqQynMZhm9htNlCj2RX1ByN3MD9lIz8 tbx88nZy5UOn2LW7bMnyKNp9/pIeXKvCilLQjvlMEBmSqEw8G+skRTqH5vrJBoQewhaO HNLNzvx+lfSIILBHVV/hSB+W1WvKBD+1dR2wiXXHmb68z2+X9CAMRRRmlOKXnjxj1qHL /OVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AME1sDCz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id k1si7914187pgo.81.2019.04.24.23.09.31; Wed, 24 Apr 2019 23:09:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AME1sDCz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730767AbfDXTKc (ORCPT + 99 others); Wed, 24 Apr 2019 15:10:32 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39482 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729853AbfDXTKb (ORCPT ); Wed, 24 Apr 2019 15:10:31 -0400 Received: by mail-wm1-f68.google.com with SMTP id n25so6618488wmk.4; Wed, 24 Apr 2019 12:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=S/zxi2ylVDkqZZBbgyooXrxhGjXILZWxNPyecty54tU=; b=AME1sDCz7IsznAaDKCRLuMso2ULXcX84VgNd/onrA55lmWTjEfne7pilAe89L/ReV1 YL9MkF8MqachlqSB3wJTEJH6MOv/gQGRB/O6DAvToz1PH+1DMgeNpO9tu88O2ydj0pnt kTJeApTO6c4GDURe1RXAU3UHmaMbKeM3+mEx1Ec/d8AQj61u9u1ioGmeWYVfwKvsSYDQ EotF34SOSdUwn1gBDqLatg2zIixPBW6W5UjcJteZumeVE0IWtAIalsL6g+2Ga9zeo+pp +2D73T8neDESABr59mxcT8taWO4ION6zMrpk16S+v+ncVCXBdCxaN+Tv7youENwXFOaQ 4UDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=S/zxi2ylVDkqZZBbgyooXrxhGjXILZWxNPyecty54tU=; b=EMZ9RW8eeovdBN15lZDL/wlodjNiGYof2z6AAHkawduJsu5Fya3F+DTW/YsS96qUuu 7zB/9ieX51JUQO/2O+f6ovKDww7dpRXn9+HuVJcmsFkjnJ1cC5dAyCBjB1QjC2sxP7dJ rArEKsbW+2WJovOWCykivQ5iuL0tH0QiP5gI6qb38I+HEhOEvENHIvF1sfWjCRIp9V24 GwvbCmUegmnUor95HkYnhbFwx43rdvn4BVAsuOHXycAgkfGzs5FVA8CRusY3Xkr5nDue nMXvhE32KgMugWNxWMpR+D2H0tssCoESCbSyNM58N7YaOycFXrEKnmkJ4CH0IKFsoPyT 2CCg== X-Gm-Message-State: APjAAAV8b0gIxFHMWlrjY4EFA7r5htx5pupTm8nhjWE93hHD0Ae+KfUp kwaSMXuxXUGFnPmFBFGn8ogkmb4Zjx7mhg== X-Received: by 2002:a1c:4602:: with SMTP id t2mr449512wma.120.1556133029543; Wed, 24 Apr 2019 12:10:29 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd4:5700:c498:ee8f:ff0a:13e5? (p200300EA8BD45700C498EE8FFF0A13E5.dip0.t-ipconnect.de. [2003:ea:8bd4:5700:c498:ee8f:ff0a:13e5]) by smtp.googlemail.com with ESMTPSA id t17sm17020471wrr.26.2019.04.24.12.10.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 12:10:28 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v2 0/9] PCI: add help pci_dev_id To: Benjamin Herrenschmidt , Michael Ellerman , Oded Gabbay , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Joerg Roedel , David Woodhouse , Realtek linux nic maintainers , "David S. Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Bjorn Helgaas , Benson Leung , Enric Balletbo i Serra , Stephen Rothwell , Paul Mackerras Cc: open list , "open list:AMD KFD" , "open list:RADEON and AMDGPU DRM DRIVERS" , "open list:AMD IOMMU (AMD-VI)" , "open list:8169 10/100/1000 GIGABIT ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , "open list:PCI SUBSYSTEM" Message-ID: <2e1f9a57-6d08-d017-24da-3e6b97fa2449@gmail.com> Date: Wed, 24 Apr 2019 21:10:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In several places in the kernel we find PCI_DEVID used like this: PCI_DEVID(dev->bus->number, dev->devfn) Therefore create a helper for it. v2: - apply the change to all affected places in the kernel Heiner Kallweit (9): PCI: add helper pci_dev_id PCI: use helper pci_dev_id r8169: use new helper pci_dev_id powerpc/powernv/npu: use helper pci_dev_id drm/amdkfd: use helper pci_dev_id iommu/amd: use helper pci_dev_id iommu/vt-d: use helper pci_dev_id stmmac: pci: use helper pci_dev_id platform/chrome: chromeos_laptop: use helper pci_dev_id arch/powerpc/platforms/powernv/npu-dma.c | 14 ++++++-------- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 3 +-- drivers/iommu/amd_iommu.c | 2 +- drivers/iommu/intel-iommu.c | 2 +- drivers/iommu/intel_irq_remapping.c | 2 +- drivers/net/ethernet/realtek/r8169.c | 3 +-- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 2 +- drivers/pci/msi.c | 6 +++--- drivers/pci/search.c | 10 +++------- drivers/platform/chrome/chromeos_laptop.c | 2 +- include/linux/pci.h | 5 +++++ 11 files changed, 24 insertions(+), 27 deletions(-) -- 2.21.0