diff mbox

amggpu FTBS

Message ID 56D98187.6090009@canonical.com
State New
Headers show

Commit Message

Tim Gardner March 4, 2016, 12:37 p.m. UTC
Perhaps you could send this patch upstream as a way to start a
conversation with the maintainers as to what is the best way to solve
this compile issue on non-amd64 arches. I haven't finished compiling for
all arches yet, but this patch fixed ppc64el and armhf.

rtg

Comments

Alberto Milone March 4, 2016, 12:54 p.m. UTC | #1
On 04-03-16 05:37:27, Tim Gardner wrote:
> Perhaps you could send this patch upstream as a way to start a
> conversation with the maintainers as to what is the best way to solve
> this compile issue on non-amd64 arches. I haven't finished compiling for
> all arches yet, but this patch fixed ppc64el and armhf.
>
> rtg

Sure, I'll discuss this with upstream, and let you know.

Thanks,

--
Alberto Milone
Software Engineer
Hardware Enablement Team
Professional and Engineering Services
diff mbox

Patch

From 1610418482a9e27cfceeaa595e31e8ca63908997 Mon Sep 17 00:00:00 2001
From: Tim Gardner <tim.gardner@canonical.com>
Date: Fri, 4 Mar 2016 05:18:38 -0700
Subject: [PATCH] UBUNTU: SAUCE: amd: Include errno.h

Fixes compile failure on non-amd64 arches:

drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_thermal.c: In function 'tonga_fan_ctrl_get_fan_speed_percent':
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_thermal.c:80:11: error: 'EINVAL' undeclared (first use in this function)
   return -EINVAL;

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
index aeaa3db..d559804 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
@@ -24,6 +24,7 @@ 
 #define _HWMGR_H_
 
 #include <linux/seq_file.h>
+#include <linux/errno.h>
 #include "amd_powerplay.h"
 #include "pp_instance.h"
 #include "hardwaremanager.h"
-- 
2.7.0