Re: V4L hg tree fails to compile against kernel 2.6.28

2010-08-25 Thread Jan Hoogenraad

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-conceptro...@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
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: V4L hg tree fails to compile against kernel 2.6.28

2010-08-25 Thread Douglas Schilling Landgraf
Hello Jan,

On Wed, Aug 25, 2010 at 3:26 AM, Jan Hoogenraad
jan-conceptro...@hoogenraad.net wrote:
 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.


Thanks, applied.

 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 ?

This one won't be required because the idea is support until kernel 2.6.26.
Please check my next email about hg x announcement.

Thanks for checking it, your help is appreciate.

Cheers
Douglas
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: V4L hg tree fails to compile against kernel 2.6.28

2010-08-25 Thread Jan Hoogenraad

__kmalloc_track_caller is not avaiable in
2.6.28-19-generic #62-Ubuntu
which just passes your cut at 2.6.26.

Apparently, the code __kmalloc_track_caller is in the source archive for 
2.6.28, but the kernel options were not such that the symbol is available.
My guess is that it was changed in 2.6.30, where memory management was 
changed.


Thus, 2.6.28, it needs to stay kmalloc.

Douglas Schilling Landgraf wrote:

Hello Jan,

On Wed, Aug 25, 2010 at 3:26 AM, Jan Hoogenraad
jan-conceptro...@hoogenraad.net wrote:

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.



Thanks, applied.


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 ?


This one won't be required because the idea is support until kernel 2.6.26.
Please check my next email about hg x announcement.

Thanks for checking it, your help is appreciate.

Cheers
Douglas




--
Jan Hoogenraad
Hoogenraad Interface Services
Postbus 2717
3500 GS Utrecht
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


V4L hg tree fails to compile against kernel 2.6.28

2010-08-24 Thread Jan Hoogenraad

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 ?


Douglas Schilling Landgraf wrote:

Hello Derek,

On Sun, Aug 15, 2010 at 2:22 AM, Douglas Schilling Landgraf
dougsl...@gmail.com wrote:

Hello Derek,

On Sat, Aug 14, 2010 at 12:46 PM, VDR User user@gmail.com wrote:

On Wed, Aug 4, 2010 at 10:19 PM, Douglas Schilling Landgraf
dougsl...@gmail.com wrote:

I am already working to give a full update to hg tree. Sorry this problem.

Hi Douglas.  Any estimate when this will be fixed?  Was hoping it was
already since new stable kernel 2.6.35.2 is out now but still the same
problem when I tried just now.

I am already working on it this weekend. I will reply this thread when finished.


2.6.35 should be working, let me know if not. Now, I need to backport
the changes to old kernels
and commit other patches in my pending list.

Cheers
Douglas
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html




--
Jan Hoogenraad
Hoogenraad Interface Services
Postbus 2717
3500 GS Utrecht
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: V4L hg tree fails to compile against kernel 2.6.28

2010-08-24 Thread Douglas Schilling Landgraf
Hello Jan,

On Tue, Aug 24, 2010 at 5:04 PM, Jan Hoogenraad
jan-conceptro...@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
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: V4L hg tree fails to compile against kernel 2.6.28

2010-08-24 Thread Douglas Schilling Landgraf
Hi,

On Tue, Aug 24, 2010 at 11:45 PM, Douglas Schilling Landgraf
dougsl...@gmail.com wrote:
 Hello Jan,

 On Tue, Aug 24, 2010 at 5:04 PM, Jan Hoogenraad
 jan-conceptro...@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.


Ok, should be working right now, I have made the backports
needed/adjusts to compile agains 2.6.29. Let me know if you have any
problem.
Tomorrow I will continue commiting patches to get hg synced with git.

Thanks
Douglas
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html