Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3236805ybi; Mon, 29 Jul 2019 03:15:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVp/l9hdp+OuqnAtVFRB9OSW2vAjHFQFjqrtcyYxbFjcuBYjoT6u5txex4FjBR47LhvOij X-Received: by 2002:a17:902:8b88:: with SMTP id ay8mr105801446plb.139.1564395316659; Mon, 29 Jul 2019 03:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564395316; cv=none; d=google.com; s=arc-20160816; b=jHBXCiugxJoQsJ9jpOYTVV7Y+VzGseUJg1dlNDwmYhsQUw7k4yv9ErvAvsASJdeeIx ULeaF+KH++P0HZeRGhddzMwMVEf1g//m7Rt4Y/noLCaKGNXA444BxbYiVOH3VE6xVUnl f+GGhbEp9ah8Y9liR/Li3Q0wkhHFCQ1Mg4JnPTpeYsrZBE9pUjURMTEq0nN0lZO91juW N7uzhD+dzLj4ZUSdrx01gfi/dRSo35UvKqaD2r1MMcdNTHJx5VhX1OBtXzkXwoVyWBEi IbFfvbASBxCCro5k4VswONt5NFzXEQmR3REbcSG2SwibsCeMAR3UYuLqgDZJQ57xfYTH 3GHw== 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:mime-version :message-id:date:subject:cc:to:from; bh=6Um6ED6I3PME6LFQVQV/8kHAjm+sTMuYfm30McVPwl0=; b=r2+Uu+qdPQCktZFLjll3qZhXT9Pxhx0cLrdT1jUpCGY992IJdHvlq4ZfPjBuqHrg0A WC4frGEfv2p/1O+S8YCbRtFOeQEzuahC8mgQKccqOd+PwPC7JuYXzqLu6QicsoD0K47i Ld5lOBgfVywecXyQcpkwgiXSoY9jaTGeyUXSkPXxv60M4KBVqPRqkJlRdZlE90TZaMqG x657FkFRSwdCYREmBhWBa65NVzK+LMB2DgHjFmZRiMtRmh4UbiwhuZBUnmlFuDhK8erO r2ZaY6IlOMmkAEvgaG+7bcE8ELx8It8KP7w5NDNYDSKWRr/XjJqjkVMS15ddL0TE686R H8Xg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m143si27318991pfd.224.2019.07.29.03.15.01; Mon, 29 Jul 2019 03:15:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728215AbfG2KOU (ORCPT + 99 others); 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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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