Re: [PATCH net-next] liquidio: Fix -Wmissing-prototypes warnings for liquidio

From: David Miller
Date: Fri Sep 18 2020 - 17:53:14 EST


From: Wang Hai <wanghai38@xxxxxxxxxx>
Date: Fri, 18 Sep 2020 21:02:10 +0800

> If the header file containing a function's prototype isn't included by
> the sourcefile containing the associated function, the build system
> complains of missing prototypes.
>
> Fixes the following W=1 kernel build warning(s):
>
> drivers/net/ethernet/cavium/liquidio/cn68xx_device.c:124:5: warning: no previous prototype for ʽlio_setup_cn68xx_octeon_deviceʼ [-Wmissing-prototypes]
> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:159:1: warning: no previous prototype for ʽocteon_pci_read_core_memʼ [-Wmissing-prototypes]
> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:168:1: warning: no previous prototype for ʽocteon_pci_write_core_memʼ [-Wmissing-prototypes]
> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:176:5: warning: no previous prototype for ʽocteon_read_device_mem64ʼ [-Wmissing-prototypes]
> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:185:5: warning: no previous prototype for ʽocteon_read_device_mem32ʼ [-Wmissing-prototypes]
> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:194:6: warning: no previous prototype for ʽocteon_write_device_mem32ʼ [-Wmissing-prototypes]
>
> Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>

Applied.