Messages in this thread | | | From | Haiyang Zhang <> | Subject | RE: [PATCH v3] PCI: hv: Make functions static | Date | Thu, 29 Aug 2019 15:50:47 +0000 |
| |
> -----Original Message----- > From: Krzysztof Wilczynski <kswilczynski@gmail.com> On Behalf Of Krzysztof > Wilczynski > Sent: Thursday, August 29, 2019 2:17 AM > To: Bjorn Helgaas <helgaas@kernel.org> > Cc: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang > <haiyangz@microsoft.com>; Stephen Hemminger > <sthemmin@microsoft.com>; Sasha Levin <sashal@kernel.org>; Lorenzo > Pieralisi <lorenzo.pieralisi@arm.com>; linux-pci@vger.kernel.org; linux- > kernel@vger.kernel.org; linux-hyperv@vger.kernel.org > Subject: [PATCH v3] PCI: hv: Make functions static > > Functions hv_read_config_block(), hv_write_config_block() and > hv_register_block_invalidate() are not used anywhere else and are local to > drivers/pci/controller/pci-hyperv.c, > and do not need to be in global scope, so make these static. > > Resolve following compiler warning that can be seen when building with > warnings enabled (W=1): > > drivers/pci/controller/pci-hyperv.c:933:5: warning: > no previous prototype for ‘hv_read_config_block’ > [-Wmissing-prototypes] > > drivers/pci/controller/pci-hyperv.c:1013:5: warning: > no previous prototype for ‘hv_write_config_block’ > [-Wmissing-prototypes] > > drivers/pci/controller/pci-hyperv.c:1082:5: warning: > no previous prototype for ‘hv_register_block_invalidate’ > [-Wmissing-prototypes] > > Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Thanks!
| |