From: Tom Zanussi <[email protected]> Fix build errors caused by changes to kernel interfaces introduced by linux 3.2 such as:
error: 'THIS_MODULE' undeclared here (not in a function) due to a missing THIS_MODULE definition which can be found in linux/export.h. It also fixes a ream of errors like: error: expected ')' before string constant due to missing MODULE_PARM_DESC definition which can be found in linux/moduleparam.h, included by linux/module.h, needed also for MODULE_AUTHOR, etc. Signed-off-by: Tom Zanussi <[email protected]> --- drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c | 2 ++ drivers/gpu/drm/emgd/emgd/drm/emgd_fbcon.c | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c b/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c index 5a8f2e6..9ed2363 100644 --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c @@ -38,6 +38,8 @@ #include <drm/drm_crtc_helper.h> #include <linux/version.h> #include <linux/device.h> +#include <linux/export.h> +#include <linux/module.h> #include <drm/drm_pciids.h> #include <intelpci.h> #include "drm_emgd_private.h" diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_fbcon.c b/drivers/gpu/drm/emgd/emgd/drm/emgd_fbcon.c index 547caaa..edfe2c7 100644 --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_fbcon.c +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_fbcon.c @@ -36,6 +36,7 @@ #include <drmP.h> #include <drm_crtc_helper.h> #include <linux/vga_switcheroo.h> +#include <linux/export.h> #include "user_config.h" -- 1.7.0.4 _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
