]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: fsl-diu-fb: mark wr_reg_wa() static
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Nov 2023 12:58:42 +0000 (13:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 09:30:16 +0000 (10:30 +0100)
commit7be3aca8d73db6d2ea6970ec1fb7152fa40e4f3d
treeb84755bc368be0cd62afa3c34d66b9ffae9b4217
parent6c66d737b2726ac7784269ddf32a31634f8f269d
fbdev: fsl-diu-fb: mark wr_reg_wa() static

[ Upstream commit a5035c81847430dfa3482807b07325f29e9e8c09 ]

wr_reg_wa() is not an appropriate name for a global function, and doesn't need
to be global anyway, so mark it static and avoid the warning:

drivers/video/fbdev/fsl-diu-fb.c:493:6: error: no previous prototype for 'wr_reg_wa' [-Werror=missing-prototypes]

Fixes: 0d9dab39fbbe ("powerpc/5121: fsl-diu-fb: fix issue with re-enabling DIU area descriptor")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/fsl-diu-fb.c