1. 08 Jan, 2014 6 commits
  2. 07 Jan, 2014 16 commits
    • Rashika Kheria's avatar
      drivers: gpu: Move prototype declarations to header file radeon_mode.h from... · 0091fc13
      Rashika Kheria authored
      drivers: gpu: Move prototype declarations to header file radeon_mode.h from radeon_atombios.c and radeon_combios.c
      
      Move prototype declarations of functions radeon_get_encoder_enum() and
      radeon_link_encoder_connector() to header file drm/radeon/radeon_mode.h
      because they are used by more than one file.
      
      This eliminates the following warnings in drm/radeon/radeon_encoders.c:
      drivers/gpu/drm/radeon/radeon_encoders.c:86:1: warning: no previous prototype for ‘radeon_get_encoder_enum’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_encoders.c:162:1: warning: no previous prototype for ‘radeon_link_encoder_connector’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      0091fc13
    • Rashika Kheria's avatar
      drivers: gpu: Move prototype declaration to header file radeon_mode.h · a38eab52
      Rashika Kheria authored
      Move prototype declaration of functions radeon_add_atom_connector() and
      radeon_add_legacy_connector() to header file drm/radeon/radeon_mode.h
      because  they are used by more than one file.
      
      This eliminates the following warning in drm/radeon/radeon_connectors.c:
      drivers/gpu/drm/radeon/radeon_connectors.c:1588:1: warning: no previous prototype for ‘radeon_add_atom_connector’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_connectors.c:2020:1: warning: no previous prototype for ‘radeon_add_legacy_connector’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      a38eab52
    • Alex Deucher's avatar
      drm/radeon: move com/atombios scratch reg functions to radeon_mode.h · 84ac68e0
      Alex Deucher authored
      fixes warnings with -Wmissing-prototypes
      
      Based on initial patches from Rashika Kheria.
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: Rashika Kheria <rashika.kheria@gmail.com>
      84ac68e0
    • Alex Deucher's avatar
      drm/radeon/dpm: make some functions static for TN · fbb74bce
      Alex Deucher authored
      Noticed by Rashika Kheria and cherry-picked from
      her larger patch set.
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: Rashika Kheria <rashika.kheria@gmail.com>
      fbb74bce
    • Alex Deucher's avatar
      drm/radeon/dpm: make some functions static for sumo · 3b5da5ce
      Alex Deucher authored
      Noticed by Rashika Kheria and cherry-picked from
      her larger patch set.
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: Rashika Kheria <rashika.kheria@gmail.com>
      3b5da5ce
    • Alex Deucher's avatar
      drm/radeon/dpm: make some functions static for CI · 9a04dad3
      Alex Deucher authored
      Noticed by Rashika Kheria and cherry-picked from
      her larger patch set.
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: Rashika Kheria <rashika.kheria@gmail.com>
      9a04dad3
    • Rashika Kheria's avatar
      drivers: gpu: Include appropriate header file in ci_smc.c · b4fcab37
      Rashika Kheria authored
      Include header file drm/radeon/ci_dpm.h in drm/radeon/ci_smc.c because
      it uses function declared in the header file.
      
      This eliminates the following warnings in drm/radeon/ci_smc.c:
      drivers/gpu/drm/radeon/ci_smc.c:46:5: warning: no previous prototype for ‘ci_copy_bytes_to_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:113:6: warning: no previous prototype for ‘ci_start_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:121:6: warning: no previous prototype for ‘ci_reset_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:129:5: warning: no previous prototype for ‘ci_program_jump_on_start’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:136:6: warning: no previous prototype for ‘ci_stop_smc_clock’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:145:6: warning: no previous prototype for ‘ci_start_smc_clock’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:154:6: warning: no previous prototype for ‘ci_is_smc_running’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:165:14: warning: no previous prototype for ‘ci_send_msg_to_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:186:14: warning: no previous prototype for ‘ci_wait_for_smc_inactive’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:204:5: warning: no previous prototype for ‘ci_load_smc_ucode’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:251:5: warning: no previous prototype for ‘ci_read_smc_sram_dword’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/ci_smc.c:266:5: warning: no previous prototype for ‘ci_write_smc_sram_dword’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      b4fcab37
    • Rashika Kheria's avatar
      drivers: gpu: Move prototype declaration to header file radeon_mode.h from atombios_i2c.c · 4cf3b494
      Rashika Kheria authored
      Move prototype declaration of function radeon_atom_copy_swap() to header
      file drm/radeon/radeon_mode.h because it is used by more than one file.
      
      This eliminates the following warnings in drm/radeon/atombios_dp.c:
      drivers/gpu/drm/radeon/atombios_dp.c:53:6: warning: no previous prototype for ‘radeon_atom_copy_swap’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      4cf3b494
    • Rashika Kheria's avatar
      drivers: gpu: Include appropriate header file in si_smc.c and remove prototype... · 6c149d96
      Rashika Kheria authored
      drivers: gpu: Include appropriate header file in si_smc.c and remove prototype declaration from header file sislands_smc.h
      
      Include header file gpu/drm/radeon/sislands_smc.h in drm/radeon/si_smc.c
      because it uses function declared in the header file.
      
      Remove prototype declaration of function si_set_smc_sram_address() from
      drm/radeon/sislands_smc.h because the function is used only in one file
      where it is declared static already.
      
      This eliminates the following warnings in drm/radeon/si_smc.c:
      drivers/gpu/drm/radeon/si_smc.c:46:5: warning: no previous prototype for ‘si_copy_bytes_to_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:112:6: warning: no previous prototype for ‘si_start_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:121:6: warning: no previous prototype for ‘si_reset_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:135:5: warning: no previous prototype for ‘si_program_jump_on_start’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:142:6: warning: no previous prototype for ‘si_stop_smc_clock’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:151:6: warning: no previous prototype for ‘si_start_smc_clock’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:160:6: warning: no previous prototype for ‘si_is_smc_running’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:171:14: warning: no previous prototype for ‘si_send_msg_to_smc’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:192:14: warning: no previous prototype for ‘si_wait_for_smc_inactive’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:210:5: warning: no previous prototype for ‘si_load_smc_ucode’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:269:5: warning: no previous prototype for ‘si_read_smc_sram_dword’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/si_smc.c:284:5: warning: no previous prototype for ‘si_write_smc_sram_dword’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      6c149d96
    • Rashika Kheria's avatar
      drivers: gpu: Add static keyword to the definition of KMS_INVALID_IOCTL in radeon_kms.c · f6e2e407
      Rashika Kheria authored
      Add static keyword to the definition of KMS_INVALID_IOCTL(name) in
      radeon_kms.c because the functions passed to it as arguments are not
      used anywhere else.
      
      This eliminates the following warnings in drm/radeon/radeon_kms.c:
      drivers/gpu/drm/radeon/radeon_kms.c:719:1: warning: no previous prototype for ‘radeon_cp_init_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:720:1: warning: no previous prototype for ‘radeon_cp_start_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:721:1: warning: no previous prototype for ‘radeon_cp_stop_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:722:1: warning: no previous prototype for ‘radeon_cp_reset_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:723:1: warning: no previous prototype for ‘radeon_cp_idle_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:724:1: warning: no previous prototype for ‘radeon_cp_resume_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:725:1: warning: no previous prototype for ‘radeon_engine_reset_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:726:1: warning: no previous prototype for ‘radeon_fullscreen_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:727:1: warning: no previous prototype for ‘radeon_cp_swap_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:728:1: warning: no previous rototype for ‘radeon_cp_clear_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:729:1: warning: no previous prototype for ‘radeon_cp_vertex_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:730:1: warning: no previous rototype for ‘radeon_cp_indices_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:731:1: warning: no previous prototype for ‘radeon_cp_texture_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:732:1: warning: no previous prototype for ‘radeon_cp_stipple_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:733:1: warning: no previous prototype for ‘radeon_cp_indirect_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:734:1: warning: no previous prototype for ‘radeon_cp_vertex2_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:735:1: warning: no previous prototype for ‘radeon_cp_cmdbuf_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:736:1: warning: no previous prototype for ‘radeon_cp_getparam_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:737:1: warning: no previous prototype for ‘radeon_cp_flip_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:738:1: warning: no previous prototype for ‘radeon_mem_alloc_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:739:1: warning: no previous prototype for ‘radeon_mem_free_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:740:1: warning: no previous rototype for ‘radeon_mem_init_heap_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:741:1: warning: no previous rototype for ‘radeon_irq_emit_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:742:1: warning: no previous prototype for ‘radeon_irq_wait_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:743:1: warning: no previous rototype for ‘radeon_cp_setparam_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:744:1: warning: no previous prototype for ‘radeon_surface_alloc_kms’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_kms.c:745:1: warning: no previous prototype for ‘radeon_surface_free_kms’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      f6e2e407
    • Rashika Kheria's avatar
      drivers: gpu: Mark function as static in r600_hdmi.c · 27b83179
      Rashika Kheria authored
      Mark function r600_audio_set_dto() as static in drm/radeon/r600_hdmi.c
      because it is not used outside this file.
      
      This eliminates the following warning in drm/radeon/r600_hdmi.c:
      drivers/gpu/drm/radeon/r600_hdmi.c:253:6: warning: no previous prototype for ‘r600_audio_set_dto’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      27b83179
    • Rashika Kheria's avatar
      drivers: gpu: Mark function as static in radeon_gem.c · 248a6c4a
      Rashika Kheria authored
      Mark function radeon_gem_set_domain() as static in
      drm/radeon/radeon_gem.c because it is not used outside this file.
      
      This eliminates the following warning in drm/radeon/radeon_gem.c:
      drivers/gpu/drm/radeon/radeon_gem.c:89:5: warning: no previous prototype for ‘radeon_gem_set_domain’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      248a6c4a
    • Rashika Kheria's avatar
      drivers: gpu: Mark function as static in radeon_kms.c · 5520345f
      Rashika Kheria authored
      Mark function radeon_info_ioctl() as static in drm/radeon/radeon_kms.c
      because it is not used outside this file.
      
      This eliminates the following warning in drm/radeon/radeon_kms.c:
      drivers/gpu/drm/radeon/radeon_kms.c:194:5: warning: no previous prototype for ‘radeon_info_ioctl’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      5520345f
    • Rashika Kheria's avatar
      drivers: gpu: Mark functions as static in radeon_device.c · 28f5a6cd
      Rashika Kheria authored
      Mark functions radeon_doorbell_init() and radeon_doorbell_fini() as
      static in drm/radeon/radeon_device.c because they are not used outside
      this file.
      
      This eliminates the following warning in drm/radeon/radeon_device.c:
      drivers/gpu/drm/radeon/radeon_device.c:252:5: warning: no previous prototype for ‘radeon_doorbell_init’ [-Wmissing-prototypes]
      drivers/gpu/drm/radeon/radeon_device.c:281:6: warning: no previous prototype for ‘radeon_doorbell_fini’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      28f5a6cd
    • Rashika Kheria's avatar
      drivers: gpu: Mark function as static in radeon_object.c · 2f43651c
      Rashika Kheria authored
      Mark function radeon_bo_clear_va() as static in
      drm/radeon/radeon_object.c because it is not used outside this file.
      
      This eliminates the following warning in drm/radeon/radeon_object.c:
      drivers/gpu/drm/radeon/radeon_object.c:49:6: warning: no previous prototype for ‘radeon_bo_clear_va’ [-Wmissing-prototypes]
      Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      2f43651c
    • Alex Deucher's avatar
      drm/radeon: warn users when hw_i2c is enabled (v2) · d1951782
      Alex Deucher authored
      The hw i2c engines are disabled by default as the
      current implementation is still experimental.  Print
      a warning when users enable it so that it's obvious
      when the option is enabled.
      
      v2: check for non-0 rather than 1
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Cc: stable@vger.kernel.org
      d1951782
  3. 03 Jan, 2014 1 commit
  4. 24 Dec, 2013 17 commits