[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <12741269.Soyf6M0mBp@wuerfel>
Date: Thu, 01 Sep 2016 13:23:01 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Baoyou Xie <baoyou.xie@...aro.org>
Cc: b.reynal@...tualopensystems.com, alex.williamson@...hat.com,
eric.auger@...aro.org, dan.carpenter@...cle.com,
kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
xie.baoyou@....com.cn
Subject: Re: [PATCH] vfio: platform: mark symbols static where possible
On Thursday, September 1, 2016 7:15:35 PM CEST Baoyou Xie wrote:
> 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@...aro.org>
>
Acked-by: Arnd Bergmann <arnd@...db.de>
Powered by blists - more mailing lists