[PATCH] resolving Re: 2.6.30-rc3 still fails to build inintel_opregion_init

From: Soeren Sonnenburg
Date: Sun Apr 26 2009 - 11:54:09 EST


On Fri, 2009-04-24 at 23:20 +0200, Soeren Sonnenburg wrote:
> still the same thing...
>
> MODPOST vmlinux.o
> WARNING: modpost: Found 1 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> GEN .version
> CHK include/linux/compile.h
> UPD include/linux/compile.h
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> drivers/built-in.o: In function `intel_opregion_init':
> (.text+0xcf239): undefined reference to `acpi_video_register'
> make: *** [.tmp_vmlinux1] Error 1

Argh, looks like one could select ACPI_VIDEO to be build as module
though DRM_I915 requires it to be compiled inside, so I guess this patch
should fix things:

Signed-off-by: Soeren Sonnenburg <sonne@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 3a22eb9..71ebf04 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -71,6 +71,7 @@ config DRM_I915
select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT
select FB
+ select ACPI_VIDEO
tristate "i915 driver"
help
Choose this option if you have a system that has Intel 830M, 845G,


--
For the one fact about the future of which we can be certain is that it
will be utterly fantastic. -- Arthur C. Clarke, 1962
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/