Received: by 10.213.65.68 with SMTP id h4csp115438imn; Fri, 30 Mar 2018 15:44:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+SPY0v65vItKHs5q0D80LEASgAaelOoHcheGai5GqmiStw/R1Pd8B6CwTbYiMvC2dGAfOE X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr741089plr.361.1522449852839; Fri, 30 Mar 2018 15:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522449852; cv=none; d=google.com; s=arc-20160816; b=OlgxjYZEi4d+P7sW8L3GYVb+GF2MaNHpcazLctDrHG7yfJ6oMM60VzQevf5FEF8vam ubdBaP4y0BAd6GZYsUcC3uOLT9e60/mq672RkyGHGKdCsPFwS/mJRaxezrcNfvaB+E7W Nud1dhnWy7OO/SJ2W5KS426bUIWelkTkTcmsKQ7Em6nVIfEUhZWSBh/cW8zGBCL7Y/S+ uezDXO3J164UzK5o5N2KF2IDFJ5PG0rpt8yS45MQ2t21+0kqprt/5avuPBeIx1URKj20 ejHgVNeUwO7byHS434atI/4accWlVmksgQPB/oX1jQWCslfhWbMkhPxk465sGsQkgaHh oz0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=z+7RCOJ8mfLe6L/NJCDRdEoYcaVcmlVGnyROQHBqI0s=; b=toOvi4xPudDtAlVMiqovhby6hdNl8+7EOMVY5fon4kFzJ2n9PxzZHN+mNWS5e5IKQP 0sF2p/oziZeqteKZTM607HXYVXgwzr4cKHs9Tf9yYVkwK2fHt80FbiOozy5432I8uN07 GaGqgUvz3Yd/fG36H9qwAhcmRFNTTU40j3XOIC0WOutTuudbyi/GCCsCdWwmcnSgKc6/ 7Wn9N9Zze0psB0ceTPeqARGsxpi5CehwQUN/ms7c1XO66eIQU2oKK0Y6GA6x3in4F8hP lcLWFtN2uSfCB/gW4ix1pVQi8Bu1Ew4hc3CMpQu1NiGuilt8DepWhq+vpMffUb1kqwBr U94w== 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 h80si7036692pfj.129.2018.03.30.15.43.58; Fri, 30 Mar 2018 15:44:12 -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 S1752732AbeC3Wme (ORCPT + 99 others); Fri, 30 Mar 2018 18:42:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:39860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbeC3Wmc (ORCPT ); Fri, 30 Mar 2018 18:42:32 -0400 Received: from localhost (unknown [69.71.5.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C8EE217D2; Fri, 30 Mar 2018 22:42:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C8EE217D2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Fri, 30 Mar 2018 17:42:29 -0500 From: Bjorn Helgaas To: Mathieu Malaterre Cc: Bjorn Helgaas , Wei Yang , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] PCI/IOV: Add missing prototype for powerpc specific Message-ID: <20180330224229.GF9322@bhelgaas-glaptop.roam.corp.google.com> References: <20180322203355.26448-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180322203355.26448-1-malat@debian.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 22, 2018 at 09:33:55PM +0100, Mathieu Malaterre wrote: > Some prototypes for weak functions were missing for powerpc specific > functions. Add the missing prototypes to the CONFIG_PCI_IOV block. This > fixes the following three warnings treated as error when using W=1: > > arch/powerpc/kernel/pci-common.c:236:17: error: no previous prototype for ‘pcibios_default_alignment’ [-Werror=missing-prototypes] > arch/powerpc/kernel/pci-common.c:253:5: error: no previous prototype for ‘pcibios_sriov_enable’ [-Werror=missing-prototypes] > arch/powerpc/kernel/pci-common.c:261:5: error: no previous prototype for ‘pcibios_sriov_disable’ [-Werror=missing-prototypes] > > Also in commit 978d2d683123 ("PCI: Add pcibios_iov_resource_alignment() > interface") a new function was added but the prototype was located in the > main header instead of the CONFIG_PCI_IOV specific section. Move this > function next to the newly added ones. > > Signed-off-by: Mathieu Malaterre Applied to pci/virtualization for v4.17, thanks! > --- > include/linux/pci.h | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 024a1beda008..f43b43b9b643 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1295,7 +1295,6 @@ unsigned char pci_bus_max_busnr(struct pci_bus *bus); > void pci_setup_bridge(struct pci_bus *bus); > resource_size_t pcibios_window_alignment(struct pci_bus *bus, > unsigned long type); > -resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno); > > #define PCI_VGA_STATE_CHANGE_BRIDGE (1 << 0) > #define PCI_VGA_STATE_CHANGE_DECODES (1 << 1) > @@ -1923,6 +1922,7 @@ void pcibios_release_device(struct pci_dev *dev); > void pcibios_penalize_isa_irq(int irq, int active); > int pcibios_alloc_irq(struct pci_dev *dev); > void pcibios_free_irq(struct pci_dev *dev); > +resource_size_t pcibios_default_alignment(void); > > #ifdef CONFIG_HIBERNATE_CALLBACKS > extern struct dev_pm_ops pcibios_pm_ops; > @@ -1955,6 +1955,11 @@ int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); > int pci_sriov_get_totalvfs(struct pci_dev *dev); > resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno); > void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool probe); > + > +/* Arch may override these (weak) */ > +int pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs); > +int pcibios_sriov_disable(struct pci_dev *pdev); > +resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno); > #else > static inline int pci_iov_virtfn_bus(struct pci_dev *dev, int id) > { > -- > 2.11.0 >