drm/radeon/si/ci: make u8 static arrays constant
Subsystems (2)
Dave Airlie
maintainerPATCH 1/1 drm/radeon/si/ci: make u8 static arrays constant
From: Dave Airlie <[email protected]>
These two arrays don't change, just make them constant, reduces data segment by a few bytes.
Signed-off-by Dave Airlie <[email protected]>
--- drivers/gpu/drm/radeon/ci_smc.c | 2 +- drivers/gpu/drm/radeon/si_smc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/ci_smc.c +1 -1
@@ -129,7 +129,7 @@ void ci_reset_smc(struct radeon_device *rdev)int ci_program_jump_on_start (struct radeon_device *rdev) { -static u8 data[] = {0xE0 ,0x00 ,0x80 ,0x40 }; +static const u8 data[] = {0xE0 ,0x00 ,0x80 ,0x40 };return ci_copy_bytes_to_smc (rdev,0x0 , data,4 ,sizeof (data)+1 ); }
drivers/gpu/drm/radeon/si_smc.c +1 -1
@@ -135,7 +135,7 @@ void si_reset_smc(struct radeon_device *rdev)int si_program_jump_on_start (struct radeon_device *rdev) { -static u8 data[] = {0x0E ,0x00 ,0x40 ,0x40 }; +static const u8 data[] = {0x0E ,0x00 ,0x40 ,0x40 };return si_copy_bytes_to_smc (rdev,0x0 , data,4 ,sizeof (data)+1 ); }
Signature · 6 lines
1.9.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 4 lines · Dave Airlie
From: Dave Airlie <[email protected]>
These two arrays don't change, just make them constant, reduces data segment by a few bytes.
Applied to my -next tree. Thanks!
Alex
Quoted 36 lines
Signed-off-by Dave Airlie <[email protected]>--- drivers/gpu/drm/radeon/ci_smc.c | 2 +- drivers/gpu/drm/radeon/si_smc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/radeon/ci_smc.c +1
-1@@ -129,7 +129,7 @@ void ci_reset_smc(struct radeon_device *rdev)int ci_program_jump_on_start (struct radeon_device *rdev) { -static u8 data[] = {0xE0 ,0x00 ,0x80 ,0x40 }; +static const u8 data[] = {0xE0 ,0x00 ,0x80 ,0x40 };return ci_copy_bytes_to_smc (rdev,0x0 , data,4 ,sizeof (data)+1 ); }drivers/gpu/drm/radeon/si_smc.c +1
-2@@ -135,7 +135,7 @@ void si_reset_smc(struct radeon_device *rdev)int si_program_jump_on_start (struct radeon_device *rdev) { -static u8 data[] = {0x0E ,0x00 ,0x40 ,0x40 }; +static const u8 data[] = {0x0E ,0x00 ,0x40 ,0x40 };return si_copy_bytes_to_smc (rdev,0x0 , data,4 ,sizeof (data)+1 ); } --1.9.3
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel