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(+)
@@ -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