parent
2f846e69c4
commit
9e47e60971
@ -1,71 +0,0 @@ |
||||
From 9167d76c435a7c1df7954f0fbe5cc6d083f8ed2f Mon Sep 17 00:00:00 2001
|
||||
From: David McFarland <corngood@gmail.com>
|
||||
Date: Mon, 6 Feb 2017 22:13:49 -0400
|
||||
Subject: [PATCH 1/3] fix warnings for Werror
|
||||
|
||||
---
|
||||
amd/amdgpu/amdgpu_device.c | 4 ++--
|
||||
amd/amdgpu/amdgpu_sa.c | 2 +-
|
||||
amd/display/dc/bios/bios_parser2.c | 8 ++++----
|
||||
3 files changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/amd/amdgpu/amdgpu_device.c b/amd/amdgpu/amdgpu_device.c
|
||||
index fc1c543..186e06d 100644
|
||||
--- a/amd/amdgpu/amdgpu_device.c
|
||||
+++ b/amd/amdgpu/amdgpu_device.c
|
||||
@@ -3164,7 +3164,7 @@ void amdgpu_debugfs_cleanup(struct drm_minor *minor)
|
||||
struct drm_info_node *node, *tmp;
|
||||
|
||||
if (!&minor->debugfs_root)
|
||||
- return 0;
|
||||
+ return;
|
||||
|
||||
mutex_lock(&minor->debugfs_lock);
|
||||
list_for_each_entry_safe(node, tmp,
|
||||
@@ -3175,7 +3175,7 @@ void amdgpu_debugfs_cleanup(struct drm_minor *minor)
|
||||
}
|
||||
mutex_unlock(&minor->debugfs_lock);
|
||||
|
||||
- return 0;
|
||||
+ return;
|
||||
}
|
||||
#endif
|
||||
|
||||
diff --git a/amd/amdgpu/amdgpu_sa.c b/amd/amdgpu/amdgpu_sa.c
|
||||
index 7206b34..8b7123c 100644
|
||||
--- a/amd/amdgpu/amdgpu_sa.c
|
||||
+++ b/amd/amdgpu/amdgpu_sa.c
|
||||
@@ -430,7 +430,7 @@ void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager,
|
||||
if (i->fence)
|
||||
#if defined(BUILD_AS_DKMS)
|
||||
seq_printf(m, " protected by 0x%08x on context %d",
|
||||
- i->fence->seqno, i->fence->context);
|
||||
+ i->fence->seqno, (int)i->fence->context);
|
||||
#else
|
||||
seq_printf(m, " protected by 0x%08x on context %llu",
|
||||
i->fence->seqno, i->fence->context);
|
||||
diff --git a/amd/display/dc/bios/bios_parser2.c b/amd/display/dc/bios/bios_parser2.c
|
||||
index 86fce5a..99681c5 100644
|
||||
--- a/amd/display/dc/bios/bios_parser2.c
|
||||
+++ b/amd/display/dc/bios/bios_parser2.c
|
||||
@@ -1326,13 +1326,13 @@ static enum bp_result get_embedded_panel_info_v2_1(
|
||||
info->lcd_timing.misc_info.VERTICAL_CUT_OFF = 0;
|
||||
|
||||
info->lcd_timing.misc_info.H_REPLICATION_BY2 =
|
||||
- lvds->lcd_timing.miscinfo & ATOM_H_REPLICATIONBY2;
|
||||
+ (lvds->lcd_timing.miscinfo & ATOM_H_REPLICATIONBY2) != 0;
|
||||
info->lcd_timing.misc_info.V_REPLICATION_BY2 =
|
||||
- lvds->lcd_timing.miscinfo & ATOM_V_REPLICATIONBY2;
|
||||
+ (lvds->lcd_timing.miscinfo & ATOM_V_REPLICATIONBY2) != 0;
|
||||
info->lcd_timing.misc_info.COMPOSITE_SYNC =
|
||||
- lvds->lcd_timing.miscinfo & ATOM_COMPOSITESYNC;
|
||||
+ (lvds->lcd_timing.miscinfo & ATOM_COMPOSITESYNC) != 0;
|
||||
info->lcd_timing.misc_info.INTERLACE =
|
||||
- lvds->lcd_timing.miscinfo & ATOM_INTERLACE;
|
||||
+ (lvds->lcd_timing.miscinfo & ATOM_INTERLACE) != 0;
|
||||
|
||||
/* not provided by VBIOS*/
|
||||
info->lcd_timing.misc_info.DOUBLE_CLOCK = 0;
|
||||
--
|
||||
2.15.1
|
||||
|
@ -1,25 +0,0 @@ |
||||
From a07ee5dec35ca24a013a6638543ef5030b2bab40 Mon Sep 17 00:00:00 2001
|
||||
From: David McFarland <corngood@gmail.com>
|
||||
Date: Tue, 9 Jan 2018 21:45:33 -0400
|
||||
Subject: [PATCH 2/3] fix sketchy int->ptr warning
|
||||
|
||||
---
|
||||
amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
|
||||
index d0f091b..707815a 100644
|
||||
--- a/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
|
||||
+++ b/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
|
||||
@@ -236,7 +236,7 @@ bool dm_helpers_dp_mst_write_payload_allocation_table(
|
||||
pbn = drm_dp_calc_pbn_mode(clock, bpp);
|
||||
|
||||
slots = drm_dp_find_vcpi_slots(mst_mgr, pbn);
|
||||
- ret = drm_dp_mst_allocate_vcpi(mst_mgr, mst_port, pbn, slots);
|
||||
+ ret = drm_dp_mst_allocate_vcpi(mst_mgr, mst_port, pbn, &slots);
|
||||
|
||||
if (!ret)
|
||||
return false;
|
||||
--
|
||||
2.15.1
|
||||
|
@ -1,25 +0,0 @@ |
||||
From 7a3062acbbabdb29239bbc8c984e62589a88576e Mon Sep 17 00:00:00 2001
|
||||
From: David McFarland <corngood@gmail.com>
|
||||
Date: Tue, 9 Jan 2018 21:49:55 -0400
|
||||
Subject: [PATCH 3/3] disable firmware copy
|
||||
|
||||
---
|
||||
pre-build.sh | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/pre-build.sh b/pre-build.sh
|
||||
index e7b8a32..bad8f25 100755
|
||||
--- a/pre-build.sh
|
||||
+++ b/pre-build.sh
|
||||
@@ -38,8 +38,3 @@ find ttm -name '*.c' -exec grep EXPORT_SYMBOL {} + \
|
||||
| sort -u \
|
||||
| awk -F'[()]' '{print "#define "$2" amd"$2" //"$0}'\
|
||||
>> include/rename_symbol.h
|
||||
-
|
||||
-FW_DIR="/lib/firmware/$KERNELVER"
|
||||
-mkdir -p $FW_DIR
|
||||
-cp -ar /usr/src/amdgpu-17.40-492261/firmware/radeon $FW_DIR
|
||||
-cp -ar /usr/src/amdgpu-17.40-492261/firmware/amdgpu $FW_DIR
|
||||
--
|
||||
2.15.1
|
||||
|
@ -1,5 +0,0 @@ |
||||
#include <malloc.h> |
||||
|
||||
void *xreallocarray(void *ptr, size_t nmemb, size_t size) { |
||||
return reallocarray(ptr, nmemb, size); |
||||
} |
Loading…
Reference in new issue