From: Jan Hoogenraad <jan-conceptronic@hoogenraad.net>
To: Douglas Schilling Landgraf <dougsland@gmail.com>
Cc: linux-media <linux-media@vger.kernel.org>,
VDR User <user.vdr@gmail.com>,
Mauro Carvalho Chehab <mchehab@redhat.com>
Subject: Re: V4L hg tree fails to compile against kernel 2.6.28
Date: Wed, 25 Aug 2010 08:26:19 +0200 [thread overview]
Message-ID: <4C74B78B.3020101@hoogenraad.net> (raw)
In-Reply-To: <AANLkTinA1r87W+4J=MRV5i6M6BD-c+KTWnYqyBd7WCQA@mail.gmail.com>
Thanks for your help. I pulled the code
Actually, now the function definition in compat.h causes a compilation
error: see first text below.
I fixed that by inserting
#include <linux/err.h>
at line 38 in compat.h in my local branch
After that, compilation succeeds.
Now, the device will not install, as dvb_usb cannot install anymore.
see second text below.
Therefore, I have replaced the __kmalloc_track_caller with kmalloc (as
it was in dvb_demux.c before the change 2ceef3d75547 at line 49
can you make both changes in the hg branch ?
-----
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-19-generic'
CC [M] tuner-xc2028.o
In file included from tuner-xc2028.c:19:
compat.h: In function 'memdup_user':
compat.h:50: error: implicit declaration of function 'ERR_PTR'
compat.h:50: warning: return makes pointer from integer without a cast
compat.h:54: warning: return makes pointer from integer without a cast
In file included from include/linux/fs.h:1891,
from include/linux/poll.h:11,
from dvbdev.h:27,
from dvb_frontend.h:43,
from tuner-xc2028.h:10,
from tuner-xc2028.c:22:
include/linux/err.h: At top level:
include/linux/err.h:22: error: conflicting types for 'ERR_PTR'
----
sudo modprobe dvb-usb-rtl2831u ir_protocol=2
WARNING: Error inserting dvb_usb
(/lib/modules/2.6.28-19-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb.ko):
Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting dvb_usb_dibusb_common
(/lib/modules/2.6.28-19-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dibusb-common.ko):
Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting dvb_usb_rtl2831u
(/lib/modules/2.6.28-19-generic/kernel/drivers/media/dvb/rtl2831/dvb-usb-rtl2831u.ko):
Unknown symbol in module, or unknown parameter (see dmesg)
in the system log, I find:
dvb_core: Unknown symbol __kmalloc_track_caller
dvb_core: Unknown symbol __kmalloc_track_caller
Douglas Schilling Landgraf wrote:
> Hello Jan,
>
> On Tue, Aug 24, 2010 at 5:04 PM, Jan Hoogenraad
> <jan-conceptronic@hoogenraad.net> wrote:
>> Douglas:
>>
>> On compiling with Linux 2.6.28-19-generic #62-Ubuntu
>>
>> I now get:
>>
>> dvb_demux.c: In function 'dvbdmx_write':
>> dvb_demux.c:1137: error: implicit declaration of function 'memdup_user'
>> dvb_demux.c:1137: warning: assignment makes pointer from integer without a
>> cast
>>
>> This is probably due to changeset 2ceef3d75547
>>
>> which introduced the use of this function:
>> http://linuxtv.org/hg/v4l-dvb/diff/2ceef3d75547/linux/drivers/media/dvb/dvb-core/dvb_demux.c
>>
>> This function is not available in linux/string.h in kernel 2.6.29 and lower.
>>
>> http://lxr.free-electrons.com/source/include/linux/string.h?v=2.6.28
>>
>> Could you please advise me on what to do ?
>
> For this issue, I have fixed right now, please try again with a
> updated repository. But since I have commited several patches
> yesterday,
> we have another one that probably will reach your compilantion (the
> kfifo one). I will work to fix this one too.
>
> Thanks for the report.
>
> Cheers
> Douglas
>
--
Jan Hoogenraad
Hoogenraad Interface Services
Postbus 2717
3500 GS Utrecht
next prev parent reply other threads:[~2010-08-25 6:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 6:36 V4L hg tree fails to compile against latest stable kernel 2.6.35 VDR User
2010-08-03 6:44 ` VDR User
[not found] ` <4C581BB6.7000303@redhat.com>
2010-08-05 5:19 ` Douglas Schilling Landgraf
2010-08-05 5:44 ` VDR User
2010-08-05 15:07 ` Douglas Schilling Landgraf
2010-08-14 16:46 ` VDR User
2010-08-15 5:22 ` Douglas Schilling Landgraf
2010-08-15 17:57 ` Douglas Schilling Landgraf
2010-08-15 18:50 ` VDR User
2010-08-24 20:04 ` V4L hg tree fails to compile against kernel 2.6.28 Jan Hoogenraad
2010-08-25 3:45 ` Douglas Schilling Landgraf
2010-08-25 5:21 ` Douglas Schilling Landgraf
2010-08-25 6:26 ` Jan Hoogenraad [this message]
2010-08-25 19:26 ` Douglas Schilling Landgraf
2010-08-26 5:43 ` Jan Hoogenraad
2010-08-26 6:53 ` ir_codes_dibusb_table : please make table length a constant Jan Hoogenraad
2010-08-27 1:32 ` Mauro Carvalho Chehab
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=4C74B78B.3020101@hoogenraad.net \
--to=jan-conceptronic@hoogenraad.net \
--cc=dougsland@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=user.vdr@gmail.com \
/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