Skip to content

Commit 798dc3f

Browse files
bijudaskrzk
authored andcommitted
memory: renesas-rpc-if: Add missing static keyword
Fix the below sparse warnings: symbol 'rpcif_impl' was not declared. Should it be static? symbol 'xspi_impl' was not declared. Should it be static? Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Biju Das <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 687cac9 commit 798dc3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/memory/renesas-rpc-if.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ static void rpcif_remove(struct platform_device *pdev)
10631063
platform_device_unregister(rpc->vdev);
10641064
}
10651065

1066-
struct rpcif_impl rpcif_impl = {
1066+
static const struct rpcif_impl rpcif_impl = {
10671067
.hw_init = rpcif_hw_init_impl,
10681068
.prepare = rpcif_prepare_impl,
10691069
.manual_xfer = rpcif_manual_xfer_impl,
@@ -1072,7 +1072,7 @@ struct rpcif_impl rpcif_impl = {
10721072
.status_mask = RPCIF_CMNSR_TEND,
10731073
};
10741074

1075-
struct rpcif_impl xspi_impl = {
1075+
static const struct rpcif_impl xspi_impl = {
10761076
.hw_init = xspi_hw_init_impl,
10771077
.prepare = xspi_prepare_impl,
10781078
.manual_xfer = xspi_manual_xfer_impl,

0 commit comments

Comments
 (0)