Skip to contentSkip to conversation

drm: Fix build error caused by missing drm_nomodeset.o

PATCH In review Javier Martinez Canillas 2 participants 3 messages Nov 27, 2021

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

PATCH 1/1 drm: Fix build error caused by missing drm_nomodeset.o

The patch for commit ("6a2d2ddf2c34 drm: Move nomodeset kernel parameter to the DRM subsystem") was generated with config 'diff.noprefix true'.

But later was applied using 'cat nomodeset.mbox | dim apply-branch' on a machine with 'diff.noprefix false'. And command 'git am --scissors -3' as used by the dim tool doesn't handle that case well, since the 3-way merge wrongly resolves the path for new file drivers/gpu/drm/drm_nomodeset.c as gpu/drm/drm_nomodeset.c instead.

It led to the following build error as reported by the kernel test robot:

make[4]: *** No rule to make target 'drivers/gpu/drm/drm_nomodeset.o', needed by 'drivers/gpu/drm/built-in.a'.

Fixes ("6a2d2ddf2c34 drm: Move nomodeset kernel parameter to the DRM subsystem")

---

 {gpu => drivers/gpu}/drm/drm_nomodeset.c | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {gpu => drivers/gpu}/drm/drm_nomodeset.c (100%)
drivers/gpu/drm/drm_nomodeset.c renamed from gpu/drm/drm_nomodeset.c +0 -0
similarity index 100%
rename from gpu/drm/drm_nomodeset.c
rename to drivers/gpu/drm/drm_nomodeset.c
Signature · 1 line
2.33.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Javier Martinez Canillas

The patch for commit ("6a2d2ddf2c34 drm: Move nomodeset kernel parameter to the DRM subsystem") was generated with config 'diff.noprefix true'.

But later was applied using 'cat nomodeset.mbox | dim apply-branch' on a machine with 'diff.noprefix false'. And command 'git am --scissors -3' as

Huh that's a dangerous setting, I guess a dim patch to check for this and very loudly complain would be good? Care to type that up? It's no big deal because strange git settings for dim is pretty much a game of whack-a-mole, but we should tackle them when they pop up.

Quoted 11 lines

used by the dim tool doesn't handle that case well, since the 3-way merge wrongly resolves the path for new file drivers/gpu/drm/drm_nomodeset.c as gpu/drm/drm_nomodeset.c instead.

It led to the following build error as reported by the kernel test robot:

make[4]: *** No rule to make target 'drivers/gpu/drm/drm_nomodeset.o', needed by 'drivers/gpu/drm/built-in.a'.

Fixes ("6a2d2ddf2c34 drm: Move nomodeset kernel parameter to the DRM subsystem")

Build testing before pushing should be done, not the other way round :-)

Also this is pretty much why we want gitlab CI and real branches.

Quoted 13 lines

---

 {gpu => drivers/gpu}/drm/drm_nomodeset.c | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {gpu => drivers/gpu}/drm/drm_nomodeset.c (100%)
drivers/gpu/drm/drm_nomodeset.c renamed from gpu/drm/drm_nomodeset.c +0 -0
similarity index 100%
rename from gpu/drm/drm_nomodeset.c
rename to drivers/gpu/drm/drm_nomodeset.c
Signature · 1 line
2.33.1
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#2 lore raw
Quoted 4 lines · Daniel Vetter
Quoted 3 lines · Javier Martinez Canillas

The patch for commit ("6a2d2ddf2c34 drm: Move nomodeset kernel parameter to the DRM subsystem") was generated with config 'diff.noprefix true'.

Quoted 8 lines
Quoted 2 lines

But later was applied using 'cat nomodeset.mbox | dim apply-branch' on a machine with 'diff.noprefix false'. And command 'git am --scissors -3' as

Huh that's a dangerous setting, I guess a dim patch to check for this and very loudly complain would be good? Care to type that up? It's no big deal because strange git settings for dim is pretty much a game of whack-a-mole, but we should tackle them when they pop up.

Sure.

Quoted 6 lines
Quoted 6 lines

used by the dim tool doesn't handle that case well, since the 3-way merge wrongly resolves the path for new file drivers/gpu/drm/drm_nomodeset.c as gpu/drm/drm_nomodeset.c instead.

It led to the following build error as reported by the kernel test robot:

Quoted 8 lines
Quoted 5 lines

make[4]: *** No rule to make target 'drivers/gpu/drm/drm_nomodeset.o', needed by 'drivers/gpu/drm/built-in.a'.

Fixes ("6a2d2ddf2c34 drm: Move nomodeset kernel parameter to the DRM subsystem")

Build testing before pushing should be done, not the other way round :-)

Yes, sorry about that. I wrongly assumed that the tools would do the correct thing but I will make sure to build test before pushing in the future.

Quoted 4 lines

Also this is pretty much why we want gitlab CI and real branches.

Quoted 1 line

---

Thanks!

Best regards,

Signature · 3 lines
Javier Martinez Canillas
Linux Engineering
Red Hat