Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vchiq_arm: make vchiq_platform_get_arm_state() static

Fix "no previous prototype" W=1 warning by making the function
vchiq_platform_get_arm_state() static.

While at it, realign the function declaration in one line and reposition
the asterisk symbol to fulfill the 'foo *bar' syntax.

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/216ad30d674b80e0051ecc233ac26ddb1d3e0e75.1646255044.git.gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gaston Gonzalez and committed by
Greg Kroah-Hartman
56955aae dcd520af

+1 -2
+1 -2
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
··· 593 593 return 0; 594 594 } 595 595 596 - struct vchiq_arm_state* 597 - vchiq_platform_get_arm_state(struct vchiq_state *state) 596 + static struct vchiq_arm_state *vchiq_platform_get_arm_state(struct vchiq_state *state) 598 597 { 599 598 struct vchiq_2835_state *platform_state; 600 599