Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1418233
| From | Ben Dooks <ben.dooks@codethink.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] pci: make bus_attr_resource_alignemnt static |
| Date | 2016-06-09 12:50 +0200 |
| Message-ID | <rI5Hb-5b7-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The symbol bus_attr_resource_alignment is not exported or declared elsewhere, so make it static to fix the following warning: drivers/pci/pci.c:4900:1: warning: symbol 'bus_attr_resource_alignment' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> --- Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index c8b4dbd..9add285 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -4897,7 +4897,7 @@ static ssize_t pci_resource_alignment_store(struct bus_type *bus, return pci_set_resource_alignment_param(buf, count); } -BUS_ATTR(resource_alignment, 0644, pci_resource_alignment_show, +static BUS_ATTR(resource_alignment, 0644, pci_resource_alignment_show, pci_resource_alignment_store); static int __init pci_resource_alignment_sysfs_init(void) -- 2.8.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] pci: make bus_attr_resource_alignemnt static Ben Dooks <ben.dooks@codethink.co.uk> - 2016-06-09 12:50 +0200 Re: [PATCH] pci: make bus_attr_resource_alignemnt static Bjorn Helgaas <helgaas@kernel.org> - 2016-06-11 02:30 +0200
csiph-web