1. 29 10月, 2016 1 次提交
  2. 22 9月, 2016 1 次提交
  3. 15 9月, 2016 1 次提交
    • B
      drm/amdgpu: mark symbols static where possible · 761c2e82
      Baoyou Xie 提交于
      We get a few warnings when building kernel with W=1:
      drivers/gpu/drm/amd/amdgpu/cz_smc.c:51:5: warning: no previous prototype for 'cz_send_msg_to_smc_async' [-Wmissing-prototypes]
      drivers/gpu/drm/amd/amdgpu/cz_smc.c:143:5: warning: no previous prototype for 'cz_write_smc_sram_dword' [-Wmissing-prototypes]
      drivers/gpu/drm/amd/amdgpu/iceland_smc.c:124:6: warning: no previous prototype for 'iceland_start_smc' [-Wmissing-prototypes]
      drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:3926:6: warning: no previous prototype for 'gfx_v8_0_rlc_stop' [-Wmissing-prototypes]
      drivers/gpu/drm/amd/amdgpu/amdgpu_job.c:94:6: warning: no previous prototype for 'amdgpu_job_free_cb' [-Wmissing-prototypes]
      ....
      
      In fact, these functions are only used in the file in which they are
      declared and don't need a declaration, but can be made static.
      So this patch marks these functions with 'static'.
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Acked-by: NHuang Rui <ray.huang@amd.com>
      Reviewed-by: NEdward O'Callaghan <funfunctor@folklore1984.net>
      Signed-off-by: NBaoyou Xie <baoyou.xie@linaro.org>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      761c2e82
  4. 26 8月, 2016 1 次提交
  5. 30 7月, 2016 7 次提交
  6. 16 7月, 2016 1 次提交
  7. 08 7月, 2016 4 次提交
  8. 21 6月, 2016 1 次提交
    • N
      drm/amdgpu: initialize amdgpu_cgs_acpi_eval_object result value · 29b9c528
      Nicolas Iooss 提交于
      amdgpu_cgs_acpi_eval_object() returned the value of variable "result"
      without initializing it first.
      
      This bug has been found by compiling the kernel with clang.  The
      compiler complained:
      
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: error: variable
          'result' is used uninitialized whenever 'for' loop exits because its
          condition is false [-Werror,-Wsometimes-uninitialized]
                  for (i = 0; i < count; i++) {
                              ^~~~~~~~~
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:1011:9: note: uninitialized
          use occurs here
                  return result;
                         ^~~~~~
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: note: remove the
          condition if it is always true
                  for (i = 0; i < count; i++) {
                              ^~~~~~~~~
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:864:12: note: initialize the
          variable 'result' to silence this warning
                  int result;
                            ^
                             = 0
      
      Fixes: 3f1d35a0 ("drm/amdgpu: implement new cgs interface for acpi
      function")
      Signed-off-by: NNicolas Iooss <nicolas.iooss_linux@m4x.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      29b9c528
  9. 09 6月, 2016 1 次提交
  10. 12 5月, 2016 1 次提交
  11. 05 5月, 2016 6 次提交
  12. 01 4月, 2016 2 次提交
  13. 08 2月, 2016 1 次提交
  14. 11 1月, 2016 1 次提交
  15. 05 1月, 2016 1 次提交
  16. 22 12月, 2015 5 次提交
  17. 01 10月, 2015 1 次提交
  18. 24 9月, 2015 1 次提交
  19. 18 8月, 2015 3 次提交