Skip to content

Commit 8e91cb3

Browse files
dmcraciunAlex Williamson
authored andcommitted
vfio/fsl-mc: Make vfio_fsl_mc_irqs_allocate static
Fixed compiler warning: drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:16:5: warning: no previous prototype for function 'vfio_fsl_mc_irqs_allocate' [-Wmissing-prototypes] ^ drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:16:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int vfio_fsl_mc_irqs_allocate(struct vfio_fsl_mc_device *vdev) Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Diana Craciun <diana.craciun@oss.nxp.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 69848cd commit 8e91cb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "linux/fsl/mc.h"
1414
#include "vfio_fsl_mc_private.h"
1515

16-
int vfio_fsl_mc_irqs_allocate(struct vfio_fsl_mc_device *vdev)
16+
static int vfio_fsl_mc_irqs_allocate(struct vfio_fsl_mc_device *vdev)
1717
{
1818
struct fsl_mc_device *mc_dev = vdev->mc_dev;
1919
struct vfio_fsl_mc_irq *mc_irq;

0 commit comments

Comments
 (0)