Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3238958ybi; Mon, 29 Jul 2019 03:17:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8uiGlFbW2OpTRO8msjEpdAYQAfZ+UBiw6fOrXCES0PUhfl3YOopRfGXmy90tHD3AggJjG X-Received: by 2002:a17:902:a60d:: with SMTP id u13mr110327206plq.144.1564395438088; Mon, 29 Jul 2019 03:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564395438; cv=none; d=google.com; s=arc-20160816; b=cwvlDCxESsimNKkElY6JZwijFCf6DUsgJJuTzzSyPgidex9/IRukTAKplXJ+rxfip2 2IjcBuB9VOWicUPQCI8eYrr7TuX7UjYqHUv5/n12nwio4i4K352hQcwPuhBGMMlYgYGq bYEGeNvFCTHhWayONZjrSdutvndDtpUaDcOJqsvA3TDRN1nyUwnY9kmMPLoiJbXo7G7h 6/b/s8saCrB8+OSsu1xAjOY5hJ3GdWeoGmELk+8FBatk3RW2xGbvYcmZqVuLWV77ygsL GMPzgJP9C02ZIqnfHGxiXCbIFr2TTl6tOfl5woiPVxxA0lsFc4qHPQvZ3qKG6BcVWj/d WvhA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BsIPSvfzLwnhnLKtcEHLG5y6k186GA8GW/6JbbfPnA4=; b=L5ELSANEN3zUHWx7KLSzswlGMdM/JEzHkIRnRbxRnfW2j7pIG+RjmSI0cbGkK5c/2/ vokwccz+36iW0bFexzIL8rd+4CkFUhayMCzZGV2ABZjxE6Nm7PMVK9PrV234kus+1NNE n1uFNqISZZRTPVXt7i8gxhbnZhJfgnlpHxBuYtxlVx4IniaARf3xFxz5fUthvUezxfX9 WZvEHgZSveFLBCKjG+NL3o0TNz/fgNUJCNwXSGDuqzQLcrEA/mIZd4FuPQT26Mr0L0HI UZBYV//XsTj/7gTc/7VceqOnRj9Ib+RxUeqc0vVc1fvuQPwDxxGyN9bTTveqrEb7Dh+i N8Wg== 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 m71si24020261pjb.26.2019.07.29.03.17.02; Mon, 29 Jul 2019 03:17:18 -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 S1728310AbfG2KOn (ORCPT + 99 others); Mon, 29 Jul 2019 06:14:43 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40629 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728260AbfG2KOk (ORCPT ); Mon, 29 Jul 2019 06:14:40 -0400 Received: by mail-lf1-f65.google.com with SMTP id b17so41668809lff.7; Mon, 29 Jul 2019 03:14:39 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=BsIPSvfzLwnhnLKtcEHLG5y6k186GA8GW/6JbbfPnA4=; b=Bs6UPJ5AGBfzGCDu1yTlLyiAGy/axf7R5AP8BquIYDJcIDHfPQbNs/uxxXOtgdqbrT +x4q2VfquCtIdRSMCV14uxsQAqELm2Erq/3evaRSL659fACwYgGrjEb2m0f3V5qHjxsA 554SEssPzLAnrI/ZnRBvOiJ7KMl+GJS5UKoM8hUiC84MxbRkiEehEdbJ/7mAJwvmPxj9 2yzdv9if5oTGUUdVDKdt8mGyek6cOPJ3a+fdLPViRpnFA3+WGBVEEQIdUti/uzOIMijx gKdnym3hmSPhbbE6fuekglwfmvEqHi4HAPUrltBn9JYEe8y/VH85uevVtvrWndfgFs3S gsVQ== X-Gm-Message-State: APjAAAVO4XS41fsfxEqFx6QDMyvU3qizS2GaFpA5fDXOaG+B0W6PkbrB 5j9RYEhs0IiXdV70ZZfEfmk= X-Received: by 2002:ac2:5492:: with SMTP id t18mr53096046lfk.41.1564395278677; Mon, 29 Jul 2019 03:14:38 -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.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 03:14:38 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , "Benjamin Herrenschmidt" , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] powerpc/PCI: Remove HAVE_ARCH_PCI_RESOURCE_TO_USER Date: Mon, 29 Jul 2019 13:14:00 +0300 Message-Id: <20190729101401.28068-5-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190729101401.28068-1-efremov@linux.com> References: <20190729101401.28068-1-efremov@linux.com> 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 The function pci_resource_to_user() was turned to a weak one. Thus, powerpc-specific version will automatically override the generic one and the HAVE_ARCH_PCI_RESOURCE_TO_USER macro should be removed. Signed-off-by: Denis Efremov --- arch/powerpc/include/asm/pci.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/include/asm/pci.h b/arch/powerpc/include/asm/pci.h index 2372d35533ad..327567b8f7d6 100644 --- a/arch/powerpc/include/asm/pci.h +++ b/arch/powerpc/include/asm/pci.h @@ -112,8 +112,6 @@ extern pgprot_t pci_phys_mem_access_prot(struct file *file, unsigned long size, pgprot_t prot); -#define HAVE_ARCH_PCI_RESOURCE_TO_USER - extern resource_size_t pcibios_io_space_offset(struct pci_controller *hose); extern void pcibios_setup_bus_devices(struct pci_bus *bus); extern void pcibios_setup_bus_self(struct pci_bus *bus); -- 2.21.0