public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Helmut Auer <vdr@helmutauer.de>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: v4l-dvb does not compile with kernel 2.6.34 [solved]
Date: Wed, 26 May 2010 23:33:14 +0200	[thread overview]
Message-ID: <4BFD939A.1090206@helmutauer.de> (raw)
In-Reply-To: <4BFC4858.8060403@helmutauer.de>

Am 25.05.2010 23:59, schrieb Helmut Auer:
> Hello
> 
> I just wanted to compile v4l-dvb for my Gen2VDR Ditribution with kernel 2.6.34, but it fails
> because many modules are missing:
> 
> #include <linux/slab.h>
> 
> and are getting errors like:
> 
> /tmp/portage/media-tv/v4l-dvb-hg-0.1-r3/work/v4l-dvb/v4l/tuner-xc2028.c: In function
> 'free_firmware':
> /tmp/portage/media-tv/v4l-dvb-hg-0.1-r3/work/v4l-dvb/v4l/tuner-xc2028.c:252: error: implicit
> declaration of function 'kfree'
> /tmp/portage/media-tv/v4l-dvb-hg-0.1-r3/work/v4l-dvb/v4l/tuner-xc2028.c: In function
> 'load_all_firmwares':
> /tmp/portage/media-tv/v4l-dvb-hg-0.1-r3/work/v4l-dvb/v4l/tuner-xc2028.c:314: error: implicit
> declaration of function
> 
> Am I missing something or is v4l-dvb broken ?
> 
Here is the complete patch I am using:

--- v4l/compat.h.org    2010-05-26 22:22:31.000000000 +0200
+++ v4l/compat.h        2010-05-26 22:22:43.000000000 +0200
@@ -28,6 +28,10 @@
 #include <linux/i2c-dev.h>
 #endif

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
+#include <linux/slab.h>
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
 #ifdef CONFIG_PROC_FS
 #include <linux/module.h>
--- linux/drivers/media/IR/ir-raw-event.c.org   2010-05-26 22:35:12.000000000 +0200
+++ linux/drivers/media/IR/ir-raw-event.c       2010-05-26 22:35:43.000000000 +0200
@@ -15,6 +15,7 @@
 #include <linux/workqueue.h>
 #include <linux/spinlock.h>
 #include <linux/sched.h>
+#include <linux/slab.h>
 #include "ir-core-priv.h"

 /* Define the max number of pulse/space transitions to buffer */
--- linux/drivers/media/dvb/dvb-core/dvb_frontend.h.org 2010-05-26 23:06:50.000000000 +0200
+++ linux/drivers/media/dvb/dvb-core/dvb_frontend.h     2010-05-26 23:06:21.000000000 +0200
@@ -39,6 +39,7 @@

 #include <linux/dvb/frontend.h>

+#include "compat.h"
 #include "dvbdev.h"

 struct dvb_frontend_tune_settings {
diff -upr /home/v4l/tmp/oldtree/drivers/media/radio/radio-tea5764.c
./drivers/media/radio/radio-tea5764.c
--- linux/drivers/media/radio/radio-tea5764.c.org       2010-05-25 23:56:57.000000000 -0300
+++ linux/drivers/media/radio/radio-tea5764.c   2010-05-21 11:21:19.000000000 -0300
@@ -32,6 +32,7 @@
  *  add RDS support
  */
 #include <linux/kernel.h>
+#include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/init.h>                        /* Initdata                     */
 #include <linux/videodev2.h>           /* kernel radio structs         */

-- 
Helmut Auer, helmut@helmutauer.de

      parent reply	other threads:[~2010-05-26 21:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 21:59 v4l-dvb does not compile with kernel 2.6.34 Helmut Auer
2010-05-25 22:40 ` VDR User
2010-05-25 23:43 ` hermann pitton
2010-05-26  3:32   ` Mauro Carvalho Chehab
2010-05-26 20:24 ` Helmut Auer
     [not found]   ` <AANLkTilEotbTzCqAXn9K53phzQmFWKM03icjWECaowPv@mail.gmail.com>
     [not found]     ` <AANLkTinC37We1AuamrP07ALJ87wtmKnb3_UHF6yr9q0m@mail.gmail.com>
2010-05-27 14:24       ` Nima
2010-05-26 21:33 ` Helmut Auer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BFD939A.1090206@helmutauer.de \
    --to=vdr@helmutauer.de \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox