diff options
author | Lauri Kasanen <cand@gmx.com> | 2012-08-31 13:43:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 13:10:41 -0400 |
commit | 1109ca09b9e2f2766d64d037a88ea8816559b3b3 (patch) | |
tree | b9e045fd634aa413f26bbe24e2e2e10642ecb11a /drivers/gpu/drm/radeon/r600.c | |
parent | b9ce0afeef13b18b12caec476f1e6dd76f0f094b (diff) |
drm/radeon: Mark all possible functions / structs as static
Let's allow GCC to optimize better.
This exposed some five unused functions, but this patch doesn't remove them.
Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index fd4289bb78d9..48460b4b3e2e 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -98,7 +98,7 @@ int r600_debugfs_mc_info_init(struct radeon_device *rdev); | |||
98 | 98 | ||
99 | /* r600,rv610,rv630,rv620,rv635,rv670 */ | 99 | /* r600,rv610,rv630,rv620,rv635,rv670 */ |
100 | int r600_mc_wait_for_idle(struct radeon_device *rdev); | 100 | int r600_mc_wait_for_idle(struct radeon_device *rdev); |
101 | void r600_gpu_init(struct radeon_device *rdev); | 101 | static void r600_gpu_init(struct radeon_device *rdev); |
102 | void r600_fini(struct radeon_device *rdev); | 102 | void r600_fini(struct radeon_device *rdev); |
103 | void r600_irq_disable(struct radeon_device *rdev); | 103 | void r600_irq_disable(struct radeon_device *rdev); |
104 | static void r600_pcie_gen2_enable(struct radeon_device *rdev); | 104 | static void r600_pcie_gen2_enable(struct radeon_device *rdev); |
@@ -881,7 +881,7 @@ int r600_pcie_gart_init(struct radeon_device *rdev) | |||
881 | return radeon_gart_table_vram_alloc(rdev); | 881 | return radeon_gart_table_vram_alloc(rdev); |
882 | } | 882 | } |
883 | 883 | ||
884 | int r600_pcie_gart_enable(struct radeon_device *rdev) | 884 | static int r600_pcie_gart_enable(struct radeon_device *rdev) |
885 | { | 885 | { |
886 | u32 tmp; | 886 | u32 tmp; |
887 | int r, i; | 887 | int r, i; |
@@ -938,7 +938,7 @@ int r600_pcie_gart_enable(struct radeon_device *rdev) | |||
938 | return 0; | 938 | return 0; |
939 | } | 939 | } |
940 | 940 | ||
941 | void r600_pcie_gart_disable(struct radeon_device *rdev) | 941 | static void r600_pcie_gart_disable(struct radeon_device *rdev) |
942 | { | 942 | { |
943 | u32 tmp; | 943 | u32 tmp; |
944 | int i; | 944 | int i; |
@@ -971,14 +971,14 @@ void r600_pcie_gart_disable(struct radeon_device *rdev) | |||
971 | radeon_gart_table_vram_unpin(rdev); | 971 | radeon_gart_table_vram_unpin(rdev); |
972 | } | 972 | } |
973 | 973 | ||
974 | void r600_pcie_gart_fini(struct radeon_device *rdev) | 974 | static void r600_pcie_gart_fini(struct radeon_device *rdev) |
975 | { | 975 | { |
976 | radeon_gart_fini(rdev); | 976 | radeon_gart_fini(rdev); |
977 | r600_pcie_gart_disable(rdev); | 977 | r600_pcie_gart_disable(rdev); |
978 | radeon_gart_table_vram_free(rdev); | 978 | radeon_gart_table_vram_free(rdev); |
979 | } | 979 | } |
980 | 980 | ||
981 | void r600_agp_enable(struct radeon_device *rdev) | 981 | static void r600_agp_enable(struct radeon_device *rdev) |
982 | { | 982 | { |
983 | u32 tmp; | 983 | u32 tmp; |
984 | int i; | 984 | int i; |
@@ -1158,7 +1158,7 @@ static void r600_vram_gtt_location(struct radeon_device *rdev, struct radeon_mc | |||
1158 | } | 1158 | } |
1159 | } | 1159 | } |
1160 | 1160 | ||
1161 | int r600_mc_init(struct radeon_device *rdev) | 1161 | static int r600_mc_init(struct radeon_device *rdev) |
1162 | { | 1162 | { |
1163 | u32 tmp; | 1163 | u32 tmp; |
1164 | int chansize, numchan; | 1164 | int chansize, numchan; |
@@ -1258,7 +1258,7 @@ void r600_vram_scratch_fini(struct radeon_device *rdev) | |||
1258 | * reset, it's up to the caller to determine if the GPU needs one. We | 1258 | * reset, it's up to the caller to determine if the GPU needs one. We |
1259 | * might add an helper function to check that. | 1259 | * might add an helper function to check that. |
1260 | */ | 1260 | */ |
1261 | int r600_gpu_soft_reset(struct radeon_device *rdev) | 1261 | static int r600_gpu_soft_reset(struct radeon_device *rdev) |
1262 | { | 1262 | { |
1263 | struct rv515_mc_save save; | 1263 | struct rv515_mc_save save; |
1264 | u32 grbm_busy_mask = S_008010_VC_BUSY(1) | S_008010_VGT_BUSY_NO_DMA(1) | | 1264 | u32 grbm_busy_mask = S_008010_VC_BUSY(1) | S_008010_VGT_BUSY_NO_DMA(1) | |
@@ -1433,7 +1433,7 @@ int r600_count_pipe_bits(uint32_t val) | |||
1433 | return ret; | 1433 | return ret; |
1434 | } | 1434 | } |
1435 | 1435 | ||
1436 | void r600_gpu_init(struct radeon_device *rdev) | 1436 | static void r600_gpu_init(struct radeon_device *rdev) |
1437 | { | 1437 | { |
1438 | u32 tiling_config; | 1438 | u32 tiling_config; |
1439 | u32 ramcfg; | 1439 | u32 ramcfg; |
@@ -2347,7 +2347,7 @@ void r600_clear_surface_reg(struct radeon_device *rdev, int reg) | |||
2347 | /* FIXME: implement */ | 2347 | /* FIXME: implement */ |
2348 | } | 2348 | } |
2349 | 2349 | ||
2350 | int r600_startup(struct radeon_device *rdev) | 2350 | static int r600_startup(struct radeon_device *rdev) |
2351 | { | 2351 | { |
2352 | struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; | 2352 | struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; |
2353 | int r; | 2353 | int r; |