arch: Fix name collision with ACPI's video.o
Subsystems (5)
PATCH 1/1 arch: Fix name collision with ACPI's video.o
Commit 2fd001cd3600 ("arch: Rename fbdev header and source files") renames the video source files under arch/ such that they do not refer to fbdev any longer. The new files named video.o conflict with ACPI's video.ko module. Modprobing the ACPI module can then fail with warnings about missing symbols, as shown below.
(i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol acpi_video_unregister (err -2) (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol acpi_video_register_backlight (err -2) (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol __acpi_video_get_backlight_type (err -2) (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol acpi_video_register (err -2)
Fix the issue by renaming the architecture's video.o to video-common.o.
---
arch/sparc/video/Makefile | 2 +-
arch/sparc/video/{video.c => video-common.c} | 0
arch/x86/video/Makefile | 2 +-
arch/x86/video/{video.c => video-common.c} | 0
4 files changed, 2 insertions(+), 2 deletions(-)
rename arch/sparc/video/{video.c => video-common.c} (100%)
rename arch/x86/video/{video.c => video-common.c} (100%)arch/sparc/video/Makefile +1 -1
@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-y += video.o +obj-y += video-common.o
arch/sparc/video/video-common.c renamed from arch/sparc/video/video.c +0 -0
arch/x86/video/Makefile +1 -1
@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-y += video.o +obj-y += video-common.o
arch/x86/video/video-common.c renamed from arch/x86/video/video.c +0 -0
Signature · 1 line
2.45.0
Patchwork
CI✗ Fi.CI.BUILD: failure for arch: Fix name collision with ACPI's video.o
== Series Details ==
== Series Details ==
Series: arch: Fix name collision with ACPI's video.o
URL : https://patchwork.freedesktop.org/series/133734/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/133734/revisions/1/mbox/ not applied
Applying: arch: Fix name collision with ACPI's video.o
error: mode change for arch/sparc/video/video.c, which is not in current HEAD
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 arch: Fix name collision with ACPI's video.o
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced
Hi,
Quoted 13 lines · Thomas Zimmermann
Commit
2fd001cd3600("arch: Rename fbdev header and source files") renames the video source files underarch/such that they do not refer to fbdev any longer. The new files named video.o conflict with ACPI's video.ko module. Modprobing the ACPI module can then fail with warnings about missing symbols, as shown below.(i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol
acpi_video_unregister(err -2) (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbolacpi_video_register_backlight(err -2) (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol__acpi_video_get_backlight_type(err -2) (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbolacpi_video_register(err -2)Fix the issue by renaming the architecture's video.o to video-common.o.
Quoted 8 lines
Reported-by Chaitanya Kumar Borah <[email protected]>Signed-off-by Thomas Zimmermann <[email protected]>Fixes 2fd001cd3600 ("arch: Rename fbdev header and source files")Cc Arnd Bergmann <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 35 lines
--- arch/sparc/video/Makefile | 2 +- arch/sparc/video/{video.c => video-common.c} | 0 arch/x86/video/Makefile | 2 +- arch/x86/video/{video.c => video-common.c} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename arch/sparc/video/{video.c => video-common.c} (100%) rename arch/x86/video/{video.c => video-common.c} (100%)arch/sparc/video/Makefile +1
-1@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-y += video.o +obj-y += video-common.oarch/sparc/video/video-common.c renamed from arch/sparc/video/video.c +0
-0arch/x86/video/Makefile +1
-1@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-y += video.o +obj-y += video-common.oarch/x86/video/video-common.c renamed from arch/x86/video/video.c +0
-0