firmware: meson_sm: stop using 0 as NULL pointer
Subsystems (2)
PATCH 1/1 firmware: meson_sm: stop using 0 as NULL pointer
Use NULL for NULL pointer to fix the following sparse warning:drivers/firmware/meson/meson_sm.c:85:24: sparse: warning: Using plain integer as NULL pointer
--- drivers/firmware/meson/meson_sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/meson/meson_sm.c +1 -1
@@ -82,7 +82,7 @@ static void __iomem *meson_sm_map_shmem(u32 cmd_shmem, unsigned int size) sm_phy_base =__meson_sm_call (cmd_shmem,0 ,0 ,0 ,0 ,0 );if (!sm_phy_base) -return 0 ; +return NULL ;return ioremap_cache (sm_phy_base, size); }
Signature · 1 line
2.18.0
Quoted 13 lines · Miles Chen
Use NULL for NULL pointer to fix the following sparse warning:
drivers/firmware/meson/meson_sm.c:85:24: sparse: warning: Using plain integer as NULL pointerSigned-off-by Miles Chen <[email protected]>--- drivers/firmware/meson/meson_sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/meson/meson_sm.c +0
-0
drivers/firmware/meson/meson_sm.c static void __iomem *meson_sm_map_shmem(u32 cmd_shmem, unsigned int size) · line 88
Quoted 8 lines
drivers/firmware/meson/meson_sm.c +1
-1@@ -82,7 +82,7 @@ static void __iomem *meson_sm_map_shmem(u32 cmd_shmem, unsigned int size) sm_phy_base =__meson_sm_call (cmd_shmem,0 ,0 ,0 ,0 ,0 );if (!sm_phy_base) -return 0 ; +return NULL ;return ioremap_cache (sm_phy_base, size); }
Hi,
Quoted 4 lines · Miles Chen
Use NULL for NULL pointer to fix the following sparse warning:
drivers/firmware/meson/meson_sm.c:85:24: sparse: warning: Using plain integer as NULL pointer
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.3/drivers)
[1/1] firmware: meson_sm: stop using 0 as NULL pointer
https://git.kernel.org/amlogic/c/fcdc53aceed413dce3ef1d0166a8e9348d5a9c94
These changes has been applied on the intermediate git tree [1].
The v6.3/drivers branch will then be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in their intermediate git branches in order to be sent to Linus during the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate kernel and as soon they appear on the Linux master branch they will be backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3], people are encouraged testing these pre-release kernels and report issues on the relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signature · 6 lines
Neil _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic