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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505072013.1EqwjtaR-lkp@intel.com/ Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20250507162146.140494-1-biju.das.jz@bp.renesas.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 687cac9 commit 798dc3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)