Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/radeon: Fix warning using plain integer as NULL

sparse static analysis tools generate a warning with this message
"Using plain integer as NULL pointer". In this case this warning is
being shown because we are trying to intialize a pointer to NULL using
integer value 0.

Signed-off-by: Abhinav Singh <singhabhinav9051571833@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Abhinav Singh and committed by
Alex Deucher
d8a38137 b5a52d2a

+4 -4
+4 -4
drivers/gpu/drm/radeon/clearstate_evergreen.h
··· 1049 1049 {SECT_CONTEXT_def_5, 0x0000a29e, 5 }, 1050 1050 {SECT_CONTEXT_def_6, 0x0000a2a5, 56 }, 1051 1051 {SECT_CONTEXT_def_7, 0x0000a2de, 290 }, 1052 - { 0, 0, 0 } 1052 + { NULL, 0, 0 } 1053 1053 }; 1054 1054 static const u32 SECT_CLEAR_def_1[] = 1055 1055 { ··· 1060 1060 static const struct cs_extent_def SECT_CLEAR_defs[] = 1061 1061 { 1062 1062 {SECT_CLEAR_def_1, 0x0000ffc0, 3 }, 1063 - { 0, 0, 0 } 1063 + { NULL, 0, 0 } 1064 1064 }; 1065 1065 static const u32 SECT_CTRLCONST_def_1[] = 1066 1066 { ··· 1070 1070 static const struct cs_extent_def SECT_CTRLCONST_defs[] = 1071 1071 { 1072 1072 {SECT_CTRLCONST_def_1, 0x0000f3fc, 2 }, 1073 - { 0, 0, 0 } 1073 + { NULL, 0, 0 } 1074 1074 }; 1075 1075 static const struct cs_section_def evergreen_cs_data[] = { 1076 1076 { SECT_CONTEXT_defs, SECT_CONTEXT }, 1077 1077 { SECT_CLEAR_defs, SECT_CLEAR }, 1078 1078 { SECT_CTRLCONST_defs, SECT_CTRLCONST }, 1079 - { 0, SECT_NONE } 1079 + { NULL, SECT_NONE } 1080 1080 };