From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 9EBEAC7618B for ; Mon, 29 Jul 2019 10:14:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81748206B8 for ; Mon, 29 Jul 2019 10:14:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728088AbfG2KOU (ORCPT ); Mon, 29 Jul 2019 06:14:20 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41174 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfG2KOU (ORCPT ); Mon, 29 Jul 2019 06:14:20 -0400 Received: by mail-lj1-f193.google.com with SMTP id d24so58007369ljg.8; Mon, 29 Jul 2019 03:14:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6Um6ED6I3PME6LFQVQV/8kHAjm+sTMuYfm30McVPwl0=; b=muEQwF5sfkPqLXxoJKCwfZTHi6dX/YAQOB9rM1EhQnDv904DPXibUeYBKUFluCo+86 uGUM1WvkQATgbWednnf5cT7LytrhUHqT5vlZwpRO6vFmUQPTdQZFzFKta1AwpLPhiXm4 kZlYEoSv+B+lsrpnpCMVL0paFVGlqhoEFUHRGAY8UKGP8a1YKCjlSxEluMb5JriYjJTz n9tU1kpIqZJAgGkWn3iXidaYJFEwDEZluXhD5qjaeQO2MRyj/K3nYjhkN/lfdzqTYr1M cnMUwEkvpWIbiWzAQtymALRNlXgEZoJqsZxJAexBPwx2miyoLOGnk+gUn9h2FuOp9yc9 Y6Ig== X-Gm-Message-State: APjAAAVAyLNKYyU6cWKIf9AnksV2B56V4kiGfLdVV9TNUrlAupcfYF9n B/JQdnACvguiNUqELnyLWI4= X-Google-Smtp-Source: APXvYqzW1ctvjiacKpwN/B8Wf3TwQY8a0G1QokUxEp47Rts8HLz1rJBfR1Qfky77XQ61Z4d7nS9tnA== X-Received: by 2002:a2e:970d:: with SMTP id r13mr57395760lji.126.1564395257826; Mon, 29 Jul 2019 03:14:17 -0700 (PDT) Received: from localhost.localdomain (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.googlemail.com with ESMTPSA id y12sm11814834lfy.36.2019.07.29.03.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 03:14:17 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , "David S. Miller" , "Benjamin Herrenschmidt" , Paul Mackerras , Michael Ellerman , Ralf Baechle , Paul Burton , James Hogan , Michal Simek , linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] PCI: Convert pci_resource_to_user() to a weak function Date: Mon, 29 Jul 2019 13:13:56 +0300 Message-Id: <20190729101401.28068-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Architectures currently define HAVE_ARCH_PCI_RESOURCE_TO_USER if they want to provide their own pci_resource_to_user() implementation. This could be simplified if we make the generic version a weak function. Thus, architecture specific versions will automatically override the generic one. Changes in v2: 1. Removed __weak from pci_resource_to_user() declaration 2. Fixed typo s/spark/sparc/g Denis Efremov (5): PCI: Convert pci_resource_to_user to a weak function microblaze/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER mips/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER powerpc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER sparc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER arch/microblaze/include/asm/pci.h | 2 -- arch/mips/include/asm/pci.h | 1 - arch/powerpc/include/asm/pci.h | 2 -- arch/sparc/include/asm/pci.h | 2 -- drivers/pci/pci.c | 8 ++++++++ include/linux/pci.h | 12 ------------ 6 files changed, 8 insertions(+), 19 deletions(-) -- 2.21.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 35999C7618B for ; Mon, 29 Jul 2019 10:16:49 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C2232070D for ; Mon, 29 Jul 2019 10:16:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C2232070D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45xwb14lBFzDqJK for ; Mon, 29 Jul 2019 20:16:45 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.208.195; helo=mail-lj1-f195.google.com; envelope-from=yefremov.denis@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.com Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45xwXF5wCKzDqFv for ; Mon, 29 Jul 2019 20:14:21 +1000 (AEST) Received: by mail-lj1-f195.google.com with SMTP id r9so58015855ljg.5 for ; Mon, 29 Jul 2019 03:14:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6Um6ED6I3PME6LFQVQV/8kHAjm+sTMuYfm30McVPwl0=; b=kGdmBsnTUeq+qQfwDoPCjRQGPm2I3ackfdPLtEKrm7H00xmfC4JR5rhe4EpINJqDD0 oewNqX0CXvMj+CSo3fEEpNOFcCArp/5Hbz6RRX43kHDzH+BPmrYLlU522QrEIG17NY6L DCTSr/CG32kissbaT/CEPj9BF9qg2YvKGetmUxn/NWNvdmGlgCW0USXBx+oSy359V0D9 UhZ5Ljtc9AP4JfXQSwqfhtMfp08+N4eGRO3UT17tTsI7JRn0DUOlCFPxDj22KCUhfxZq FS2i6bWkXEK5ys3L7W1fE30aU44A+VqMQpG2lh4Ili4ZEWFRiVas/E3rYWe0KgMIuR3X WO9w== X-Gm-Message-State: APjAAAWUr9JZymbIIJOvppEcjSxekzWr/BpDR7ewA364ycCwvW7Meyzl T0wiYiCpIRkOCKwh7kivzow= X-Google-Smtp-Source: APXvYqzW1ctvjiacKpwN/B8Wf3TwQY8a0G1QokUxEp47Rts8HLz1rJBfR1Qfky77XQ61Z4d7nS9tnA== X-Received: by 2002:a2e:970d:: with SMTP id r13mr57395760lji.126.1564395257826; Mon, 29 Jul 2019 03:14:17 -0700 (PDT) Received: from localhost.localdomain (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.googlemail.com with ESMTPSA id y12sm11814834lfy.36.2019.07.29.03.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 03:14:17 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Subject: [PATCH v2 0/5] PCI: Convert pci_resource_to_user() to a weak function Date: Mon, 29 Jul 2019 13:13:56 +0300 Message-Id: <20190729101401.28068-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michal Simek , linux-pci@vger.kernel.org, linux-mips@vger.kernel.org, Ralf Baechle , linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, Paul Burton , Paul Mackerras , Denis Efremov , James Hogan , linuxppc-dev@lists.ozlabs.org, "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Architectures currently define HAVE_ARCH_PCI_RESOURCE_TO_USER if they want to provide their own pci_resource_to_user() implementation. This could be simplified if we make the generic version a weak function. Thus, architecture specific versions will automatically override the generic one. Changes in v2: 1. Removed __weak from pci_resource_to_user() declaration 2. Fixed typo s/spark/sparc/g Denis Efremov (5): PCI: Convert pci_resource_to_user to a weak function microblaze/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER mips/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER powerpc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER sparc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER arch/microblaze/include/asm/pci.h | 2 -- arch/mips/include/asm/pci.h | 1 - arch/powerpc/include/asm/pci.h | 2 -- arch/sparc/include/asm/pci.h | 2 -- drivers/pci/pci.c | 8 ++++++++ include/linux/pci.h | 12 ------------ 6 files changed, 8 insertions(+), 19 deletions(-) -- 2.21.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Efremov Date: Mon, 29 Jul 2019 10:13:56 +0000 Subject: [PATCH v2 0/5] PCI: Convert pci_resource_to_user() to a weak function Message-Id: <20190729101401.28068-1-efremov@linux.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Bjorn Helgaas Cc: Denis Efremov , "David S. Miller" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Ralf Baechle , Paul Burton , James Hogan , Michal Simek , linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Architectures currently define HAVE_ARCH_PCI_RESOURCE_TO_USER if they want to provide their own pci_resource_to_user() implementation. This could be simplified if we make the generic version a weak function. Thus, architecture specific versions will automatically override the generic one. Changes in v2: 1. Removed __weak from pci_resource_to_user() declaration 2. Fixed typo s/spark/sparc/g Denis Efremov (5): PCI: Convert pci_resource_to_user to a weak function microblaze/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER mips/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER powerpc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER sparc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER arch/microblaze/include/asm/pci.h | 2 -- arch/mips/include/asm/pci.h | 1 - arch/powerpc/include/asm/pci.h | 2 -- arch/sparc/include/asm/pci.h | 2 -- drivers/pci/pci.c | 8 ++++++++ include/linux/pci.h | 12 ------------ 6 files changed, 8 insertions(+), 19 deletions(-) -- 2.21.0