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
Date: Wed, 26 May 2010 22:24:40 +0200 [thread overview]
Message-ID: <4BFD8388.9060904@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 ?
>
An easy patch for this problem is:
--- 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>
--
Helmut Auer, helmut@helmutauer.de
next prev parent reply other threads:[~2010-05-26 20:24 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 [this message]
[not found] ` <AANLkTilEotbTzCqAXn9K53phzQmFWKM03icjWECaowPv@mail.gmail.com>
[not found] ` <AANLkTinC37We1AuamrP07ALJ87wtmKnb3_UHF6yr9q0m@mail.gmail.com>
2010-05-27 14:24 ` Nima
2010-05-26 21:33 ` v4l-dvb does not compile with kernel 2.6.34 [solved] Helmut Auer
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=4BFD8388.9060904@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.