Skip to contentSkip to conversation

linux-next: build failure after merge of the drm-misc tree

PATCH Applied Stephen Rothwell 2 participants 2 messages Oct 16, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c:23:10: fatal error: drm/drmP.h: No such file or directory
23 | #include <drm/drmP.h>

      |          ^~~~~~~~~~~~

Caused by commit

4e98f871bcff ("drm: delete drmP.h + drm_os_linux.h")

interacting with commit

8b8c294c5d37 ("drm/amdgpu: add function to check tmz capability (v4)")

from the amdgpu tree.

I applied the following merge fix patch for today (which should also apply to the amdgpu tree).

From: Stephen Rothwell <[email protected]>
Date: Wed, 16 Oct 2019 11:17:32 +1100
Subject: [PATCH] drm/amdgpu: fix up for amdgpu_tmz.c and removal of drm/drmP.h

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c +4 -1
index 14a55003dd81..823527a0fa47 100644
@@ -20,7 +20,10 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <drm/drmP.h>
+#include <linux/device.h>
+
+#include <drm/amd_asic_type.h>
+
 #include "amdgpu.h"
 #include "amdgpu_tmz.h"
 
Signature · 5 lines
2.23.0

-- 
Cheers,
Stephen Rothwell
Applied
#1 lore raw

Applied. Thanks!

Alex

Quoted 54 lines · Stephen Rothwell

Hi all,

After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c:23:10: fatal error: drm/drmP.h: No such file or directory
23 | #include <drm/drmP.h>

      |          ^~~~~~~~~~~~

Caused by commit

4e98f871bcff ("drm: delete drmP.h + drm_os_linux.h")

interacting with commit

8b8c294c5d37 ("drm/amdgpu: add function to check tmz capability (v4)")

from the amdgpu tree.

I applied the following merge fix patch for today (which should also apply to the amdgpu tree).

From: Stephen Rothwell <[email protected]>
Date: Wed, 16 Oct 2019 11:17:32 +1100
Subject: [PATCH] drm/amdgpu: fix up for amdgpu_tmz.c and removal of drm/drmP.h

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c +4 -2
index 14a55003dd81..823527a0fa47 100644
@@ -20,7 +20,10 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <drm/drmP.h>
+#include <linux/device.h>
+
+#include <drm/amd_asic_type.h>
+
 #include "amdgpu.h"
 #include "amdgpu_tmz.h"
 
--

2.23.0

--
Cheers,
Stephen Rothwell