linux-next: build failure after merge of the drm tree
Subsystems (3)
Hi Dave,
After merging the drm tree, today's linux-next build (powerpc allyesconfig) failed like this:
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:84:2: error: implicit declaration of function 'do_div' [-Werror=implicit-function-declaration]
do_div(tmp64, duty100);
^drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/fiji_thermal.c: In function 'fiji_fan_ctrl_get_fan_speed_percent':drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/fiji_thermal.c:78:2: error: implicit declaration of function 'do_div' [-Werror=implicit-function-declaration]
do_div(tmp64, duty100);
^
Caused by commit
1e4854e96c35 ("drm/amdgpu/powerplay: implement thermal control for tonga.")
[I notice that that commit does not have a Signed-off-by from its committer (Alex)]
I applied the following fix patch for today:
From: Stephen Rothwell <[email protected]>
Date: Thu, 31 Dec 2015 21:20:20 +1100
Subject: [PATCH] drm/amdgpu/powerplay: include asm/div64.h for do_div()
--- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c +1 -1
@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. * */ - +#include <asm/div64.h> #include "fiji_thermal.h" #include "fiji_hwmgr.h" #include "fiji_smumgr.h"
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c +1 -1
@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. * */ - +#include <asm/div64.h> #include "tonga_thermal.h" #include "tonga_hwmgr.h" #include "tonga_smumgr.h"
Signature · 5 lines
2.6.4 -- Cheers, Stephen Rothwell [email protected]
Hi all,
Quoted 61 lines · On Thu, 31 Dec 2015 21:31:24 +1100 Stephen Rothwell <[email protected]>…
After merging the drm tree, today's linux-next build (powerpc allyesconfig) failed like this:
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:84:2: error: implicit declaration of function 'do_div' [-Werror=implicit-function-declaration]
do_div(tmp64, duty100);
^drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/fiji_thermal.c: In function 'fiji_fan_ctrl_get_fan_speed_percent':drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/fiji_thermal.c:78:2: error: implicit declaration of function 'do_div' [-Werror=implicit-function-declaration]
do_div(tmp64, duty100);
^Caused by commit
1e4854e96c35("drm/amdgpu/powerplay: implement thermal control for tonga.")[I notice that that commit does not have a Signed-off-by from its committer (Alex)]
I applied the following fix patch for today:
From: Stephen Rothwell <[email protected]>
Date: Thu, 31 Dec 2015 21:20:20 +1100
Subject: [PATCH] drm/amdgpu/powerplay: includeasm/div64.hfordo_div()Fixes 1e4854e96c35 ("drm/amdgpu/powerplay: implement thermal control for tonga.")Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c +1
-1@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. * */ - +#include <asm/div64.h> #include "fiji_thermal.h" #include "fiji_hwmgr.h" #include "fiji_smumgr.h" drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c +1
-1@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. * */ - +#include <asm/div64.h> #include "tonga_thermal.h" #include "tonga_hwmgr.h" #include "tonga_smumgr.h" Signature · 1 line
2.6.4
Ping? I am still applying that patch ...
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hi Dave,
Quoted 57 lines · On Thu, 7 Jan 2016 13:44:03 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 55 lines · On Thu, 31 Dec 2015 21:31:24 +1100 Stephen Rothwell <[email protected]>…
After merging the drm tree, today's linux-next build (powerpc allyesconfig) failed like this:
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:84:2: error: implicit declaration of function 'do_div' [-Werror=implicit-function-declaration]
do_div(tmp64, duty100);
^drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/fiji_thermal.c: In function 'fiji_fan_ctrl_get_fan_speed_percent':drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/fiji_thermal.c:78:2: error: implicit declaration of function 'do_div' [-Werror=implicit-function-declaration]
do_div(tmp64, duty100);
^Caused by commit
1e4854e96c35("drm/amdgpu/powerplay: implement thermal control for tonga.")[I notice that that commit does not have a Signed-off-by from its committer (Alex)]
I applied the following fix patch for today:
From: Stephen Rothwell <[email protected]>
Date: Thu, 31 Dec 2015 21:20:20 +1100
Subject: [PATCH] drm/amdgpu/powerplay: includeasm/div64.hfordo_div()Fixes 1e4854e96c35 ("drm/amdgpu/powerplay: implement thermal control for tonga.")Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/hwmgr/fiji_thermal.c +1
-1@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. * */ - +#include <asm/div64.h> #include "fiji_thermal.h" #include "fiji_hwmgr.h" #include "fiji_smumgr.h" drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c +0
-1@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. * */ -
Quoted 8 lines
Quoted 6 lines
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_thermal.c +1
-0+#include <asm/div64.h> #include "tonga_thermal.h" #include "tonga_hwmgr.h" #include "tonga_smumgr.h" Signature · 1 line
2.6.4Ping? I am still applying that patch ...
Did this get fixed in some non-obvious way?
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 3 lines
Did this get fixed in some non-obvious way?
I don't think so, I just applied it as is.
Thanks,
Dave.
Hi Dave,
[This time keeping cc's]
Quoted 6 lines · On Tue, 12 Jan 2016 00:31:17 +0000 (GMT) Dave Airlie <[email protected]> wrote:
Quoted 4 lines
Did this get fixed in some non-obvious way?
I don't think so, I just applied it as is.
/me refetches the drm tree
Ah, there it is! :-)
Thanks.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hi,
In my end, this declaration of function 'do_div' can be founded.
In file included from ./arch/x86/include/asm/div64.h:63:0,
from include/linux/math64.h:5,
from ./arch/x86/include/asm/processor.h:30,
from ./arch/x86/include/asm/atomic.h:6,
from include/linux/atomic.h:4,
from include/linux/mutex.h:18,
from include/linux/seq_file.h:7,
from drivers/gpu/drm/amd/powerplay/inc/hwmgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_thermal.h:27,
from drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_thermal.c:24:drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_thermal.c: In function 'tonga_fan_ctrl_get_fan_speed_info'
So I will add "#include <asm/div64.h>" to fix the warning.
Best Regards
Rex
-----Original Message-----
From: Stephen Rothwell [mailto:[email protected]]
Sent: Tuesday, January 12, 2016 12:35 PM
To: Dave Airlie
Cc: [email protected]; [email protected]; Zhu, Rex; Deucher, Alexander
Subject: Re: linux-next: build failure after merge of the drm tree
Hi Dave,
[This time keeping cc's]
Quoted 6 lines · On Tue, 12 Jan 2016 00:31:17 +0000 (GMT) Dave Airlie <[email protected]> wrote:
Quoted 4 lines
Did this get fixed in some non-obvious way?
I don't think so, I just applied it as is.
/me refetches the drm tree
Ah, there it is! :-)
Thanks.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]