[PATCH] staging: vchiq_arm: Make vchiq_platform_init() static
Simon Horman
horms at kernel.org
Wed Apr 19 01:51:06 PDT 2023
On Wed, Apr 19, 2023 at 08:37:58AM +0200, Stefan Wahren wrote:
> Hi Simon,
>
> Am 18.04.23 um 13:23 schrieb Simon Horman:
> > vchiq_platform_init() is only used in this file so it can be static.
> >
> > clang-16 with W=1 reports:
> >
> > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:465:5: error: no previous prototype for function 'vchiq_platform_init' [-Werror,-Wmissing-prototypes]
> > int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
> > ^
> > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:465:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> >
> > Signed-off-by: Simon Horman <horms at kernel.org>
>
> this is not the first attempt to fix this [1]. But maybe this has been fixed
> in the meantime.
>
> [1] - https://lore.kernel.org/linux-staging/20221022043548.1671644-1-scottjcrouch@gmail.com/#t
Thanks,
I see in that thread that Greg notes that "this breaks the build in a very
horrible and strange way" [2].
I'm a bit surprised as I didn't observe such a thing.
But I also don't dispute it - clearly my testing was inadequate.
I'll try and dig a bit deeper into this one.
Perhaps starting with the report from the kernel test robot [3]
[2] https://lore.kernel.org/linux-staging/Y1Okpjbi2kKU2GFz@kroah.com/
[3] https://lore.kernel.org/linux-staging/202210230127.p1Dp295m-lkp@intel.com/
More information about the linux-arm-kernel
mailing list