nixpkgs/pkgs/os-specific/linux/amdgpu-pro/patches/0004-fix-warnings-for-Werror.patch

47 lines
1.5 KiB
Diff
Raw Normal View History

2017-04-08 20:34:26 +02:00
From dbf01d3934c52acaaa37f008859f69c5edf19ad5 Mon Sep 17 00:00:00 2001
2017-01-28 22:10:50 +01:00
From: David McFarland <corngood@gmail.com>
Date: Mon, 6 Feb 2017 22:13:49 -0400
Subject: [PATCH 4/4] fix warnings for Werror
---
amd/amdgpu/amdgpu_ttm.c | 2 ++
amd/display/amdgpu_dm/amdgpu_dm_types.c | 2 +-
2017-04-08 20:34:26 +02:00
2 files changed, 3 insertions(+), 1 deletion(-)
2017-01-28 22:10:50 +01:00
diff --git a/amd/amdgpu/amdgpu_ttm.c b/amd/amdgpu/amdgpu_ttm.c
2017-04-08 20:34:26 +02:00
index 0e30389..890aafa 100644
2017-01-28 22:10:50 +01:00
--- a/amd/amdgpu/amdgpu_ttm.c
+++ b/amd/amdgpu/amdgpu_ttm.c
@@ -1083,6 +1083,7 @@ uint32_t amdgpu_ttm_tt_pte_flags(struct amdgpu_device *adev, struct ttm_tt *ttm,
return flags;
}
+#if 0
static void amdgpu_ttm_lru_removal(struct ttm_buffer_object *tbo)
{
struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev);
@@ -1132,6 +1133,7 @@ static struct list_head *amdgpu_ttm_swap_lru_tail(struct ttm_buffer_object *tbo)
return res;
}
+#endif
2017-04-08 20:34:26 +02:00
static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,
const struct ttm_place *place)
2017-01-28 22:10:50 +01:00
diff --git a/amd/display/amdgpu_dm/amdgpu_dm_types.c b/amd/display/amdgpu_dm/amdgpu_dm_types.c
2017-04-08 20:34:26 +02:00
index 44a4a71..ae7e707 100644
2017-01-28 22:10:50 +01:00
--- a/amd/display/amdgpu_dm/amdgpu_dm_types.c
+++ b/amd/display/amdgpu_dm/amdgpu_dm_types.c
2017-04-08 20:34:26 +02:00
@@ -932,7 +932,7 @@ static void decide_crtc_timing_for_drm_display_mode(
2017-01-28 22:10:50 +01:00
}
static struct dc_target *create_target_for_sink(
- const struct amdgpu_connector *aconnector,
+ struct amdgpu_connector *aconnector,
const struct drm_display_mode *drm_mode,
const struct dm_connector_state *dm_state)
{
--
2017-04-08 20:34:26 +02:00
2.12.2
2017-01-28 22:10:50 +01:00