Skip to contentSkip to conversation

More missing module.h includes

PATCH Hans Verkuil 1 participant 2 messages Nov 25, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

While compiling the very latest for_v3.3 branch with the very latest media_build on a 3.1 kernel I got more compile errors for a missing module.h header.

Add these includes.

Regards,

Hans

drivers/media/media-device.c +1 -0
index 6edc9ba..b826867 100644
@@ -21,6 +21,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/module.h>
 #include <linux/ioctl.h>
 #include <linux/media.h>
 #include <linux/export.h>
drivers/media/video/hdpvr/hdpvr-i2c.c +1 -0
index 82e819f..48cf133 100644
@@ -15,6 +15,7 @@
 
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
 
+#include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
 #include <linux/export.h>
drivers/media/video/v4l2-subdev.c +1 -0
index 65ade5f..5c3abc5 100644
@@ -20,6 +20,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <linux/module.h>
 #include <linux/ioctl.h>
 #include <linux/slab.h>
 #include <linux/types.h>
#1 lore raw
Quoted 2 lines · On Friday, November 25, 2011 12:37:58 Hans Verkuil wrote:

While compiling the very latest for_v3.3 branch with the very latest media_build on a 3.1 kernel I got more compile errors for a missing module.h header.

I spoke too soon, I was actually using a different source tree than I expected.

I need to do some more digging in order to understand why I get these compile errors...

Regards,

Hans

Quoted 50 lines

Add these includes.

Regards,

Hans

drivers/media/media-device.c +1 -0
index 6edc9ba..b826867 100644
@@ -21,6 +21,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/module.h>
 #include <linux/ioctl.h>
 #include <linux/media.h>
 #include <linux/export.h>
drivers/media/video/hdpvr/hdpvr-i2c.c +1 -0
index 82e819f..48cf133 100644
@@ -15,6 +15,7 @@
 
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
 
+#include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
 #include <linux/export.h>
drivers/media/video/v4l2-subdev.c +1 -1
index 65ade5f..5c3abc5 100644
@@ -20,6 +20,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <linux/module.h>
 #include <linux/ioctl.h>
 #include <linux/slab.h>
 #include <linux/types.h>
--

To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html