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 0BEB9C433FF for ; Sun, 28 Jul 2019 21:37:59 +0000 (UTC) Received: from lists.ozlabs.org (unknown [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 3AF602070B for ; Sun, 28 Jul 2019 21:37:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3AF602070B 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 45xblR2xS5zDqTP for ; Mon, 29 Jul 2019 07:37:55 +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 45xZ4t3FPzzDqQf for ; Mon, 29 Jul 2019 06:22:49 +1000 (AEST) Received: by mail-lj1-f195.google.com with SMTP id p17so56489388ljg.1 for ; Sun, 28 Jul 2019 13:22:48 -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=H30JE1TBEsAuw94izU6UpoMxwvUnP+RXDRNZnh1O8pc=; b=uPjtM/lpXsew345llBPaeG7P1DUbKm9J73z8QE/pLIWfhnYqZ9QlKPzAkYuwJHk7WD CrRxo5J2gKJWxe1TYnbF4FAVJJ4f85M2OAGaMZ69JRGC52VSZd4DHNNvAejSP6tMqxuN 7Oq+aXQDI0cqDId37cmnzp4DgQGApHuBCUmOqH+YobgHFiii1y3TnjINAVJ0+PszOJic +Ce7NNvJW+lAevEAy8Yj8JhBmfhAuG7p6/7w0nTr4XKjloejDhF7oaqT2+9qEv7uiPdD /AFsLv5vmcZCAP+R+b6vGph80lKnCIv76pdnoYA3vDrX8lwhIeN7MoZA/BKGnLefug4C oZ8w== X-Gm-Message-State: APjAAAVxiXqBqMepHTXli4x0dDm+IswrNilGnwspQ+4ca1UWQhLy2bdt CQH3XYXU2ab5MB//ml6uz4o= X-Google-Smtp-Source: APXvYqygX2Y5dS/gnwNqOZKPSCByVOdOdiau/6PoALAhMf0ml07RPwI9uM2EKDeRpNnJ5yE9cYpa9g== X-Received: by 2002:a2e:814e:: with SMTP id t14mr20112908ljg.167.1564345365258; Sun, 28 Jul 2019 13:22:45 -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 z17sm12395917ljc.37.2019.07.28.13.22.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jul 2019 13:22:44 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Subject: [PATCH 0/5] PCI: Convert pci_resource_to_user() to a weak function Date: Sun, 28 Jul 2019 23:22:08 +0300 Message-Id: <20190728202213.15550-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 29 Jul 2019 07:36:11 +1000 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. 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 spark/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 | 18 +++--------------- 6 files changed, 11 insertions(+), 22 deletions(-) -- 2.21.0