]> git.dujemihanovic.xyz Git - u-boot.git/commit
xilinx: versal-net: fix no previous prototype for function warning.
authorPrasad Kummari <prasad.kummari@amd.com>
Thu, 5 Sep 2024 11:57:59 +0000 (17:27 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 20 Sep 2024 06:31:56 +0000 (08:31 +0200)
commit76197b6abb98d3f693c12f4346a91201e93fd1f8
tree50fa6bda609a30498e2b2e8cf8844597182ee8f1
parent948616894c6d3316a5ac8f2a891783e3e7ff3516
xilinx: versal-net: fix no previous prototype for function warning.

Included the SPI header to resolve the no previous prototypes
for function. Removed unused mode variable.
sparse warnings
warning: no previous prototype for 'spi_get_env_dev'
[-Wmissing-prototypes]
warning: variable 'mode' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
Link: https://lore.kernel.org/r/20240905115758.999936-1-prasad.kummari@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/xilinx/versal-net/board.c