linux/drivers/vfio/platform
Baoyou Xie 2e06285655 vfio: platform: mark symbols static where possible
We get a few warnings when building kernel with W=1:
drivers/vfio/platform/vfio_platform_common.c:76:5: warning: no previous prototype for 'vfio_platform_acpi_call_reset' [-Wmissing-prototypes]
drivers/vfio/platform/vfio_platform_common.c:98:6: warning: no previous prototype for 'vfio_platform_acpi_has_reset' [-Wmissing-prototypes]
drivers/vfio/platform/vfio_platform_common.c:640:5: warning: no previous prototype for 'vfio_platform_of_probe' [-Wmissing-prototypes]
drivers/vfio/platform/reset/vfio_platform_amdxgbe.c:59:5: warning: no previous prototype for 'vfio_platform_amdxgbe_reset' [-Wmissing-prototypes]
drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c:60:5: warning: no previous prototype for 'vfio_platform_calxedaxgmac_reset' [-Wmissing-prototypes]
....

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
so this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2016-09-13 16:11:37 -06:00
..
reset vfio: platform: mark symbols static where possible 2016-09-13 16:11:37 -06:00
Kconfig VFIO: platform: enable ARM64 build 2015-06-22 09:35:47 -06:00
Makefile vfio: platform: introduce vfio-platform-base module 2015-11-03 12:54:56 -07:00
vfio_amba.c vfio, platform: make reset driver a requirement by default 2016-07-19 10:26:46 -06:00
vfio_platform_common.c vfio: platform: mark symbols static where possible 2016-09-13 16:11:37 -06:00
vfio_platform_irq.c VFIO: platform: clear IRQ_NOAUTOEN when de-assigning the IRQ 2015-10-27 15:02:53 -06:00
vfio_platform_private.h vfio, platform: make reset driver a requirement by default 2016-07-19 10:26:46 -06:00
vfio_platform.c vfio, platform: make reset driver a requirement by default 2016-07-19 10:26:46 -06:00