All of lore.kernel.org
 help / color / mirror / Atom feed
* Compilation problem : too few arguments to function 'kmap_atomic
       [not found] <20120329174427.D1F6E15D201A8@alastor.dyndns.org>
@ 2012-03-29 18:13 ` Loïc Bertron
  2012-03-29 19:18   ` Andy Walls
  0 siblings, 1 reply; 2+ messages in thread
From: Loïc Bertron @ 2012-03-29 18:13 UTC (permalink / raw)
  To: linux-media

Hello,

I'm running into an issue when compiling the last version of media_build : 

/usr/src/linux-headers-2.6.32-5-common/include/linux/kernel.h:366:1: warning: this is the location of the previous definition
  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-control.o
  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-core.o
  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-video.o
  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-i2c.o
  CC [M]  /home/toto/sources/media_build/v4l/hopper_cards.o
  CC [M]  /home/toto/sources/media_build/v4l/hopper_vp3028.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-routing.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-cards.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-controls.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-driver.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-fileops.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-firmware.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-gpio.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-i2c.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-ioctl.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-irq.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-mailbox.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-queue.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-streams.o
  CC [M]  /home/toto/sources/media_build/v4l/ivtv-udma.o
/home/toto/sources/media_build/v4l/ivtv-udma.c: In function 'ivtv_udma_fill_sg_list':
/home/toto/sources/media_build/v4l/ivtv-udma.c:60: error: too few arguments to function 'kmap_atomic'
/home/toto/sources/media_build/v4l/ivtv-udma.c:62:21: error: macro "kunmap_atomic" requires 2 arguments, but only 1 given 
/home/toto/sources/media_build/v4l/ivtv-udma.c:62: error: 'kunmap_atomic' undeclared (first use in this function)
/home/toto/sources/media_build/v4l/ivtv-udma.c:62: error: (Each undeclared identifier is reported only once
/home/toto/sources/media_build/v4l/ivtv-udma.c:62: error: for each function it appears in.)
make[5]: *** [/home/toto/sources/media_build/v4l/ivtv-udma.o] Error 1
make[4]: *** [_module_/home/toto/sources/media_build/v4l] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/toto/sources/media_build/v4l'
make: *** [all] Error 2
build failed at ./build line 410.

After searching a bit on Google, I found someone with the same issue than me who post it today : http://pastebin.com/zgqN7LRE

Any idea ? 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compilation problem : too few arguments to function 'kmap_atomic
  2012-03-29 18:13 ` Compilation problem : too few arguments to function 'kmap_atomic Loïc Bertron
@ 2012-03-29 19:18   ` Andy Walls
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Walls @ 2012-03-29 19:18 UTC (permalink / raw)
  To: Loïc Bertron, linux-media

"Loïc Bertron" <loic.bertron@gmail.com> wrote

>Hello,
>
>I'm running into an issue when compiling the last version of
>media_build : 
>
>/usr/src/linux-headers-2.6.32-5-common/include/linux/kernel.h:366:1:
>warning: this is the location of the previous definition
>  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-control.o
>  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-core.o
>  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-video.o
>  CC [M]  /home/toto/sources/media_build/v4l/hdpvr-i2c.o
>  CC [M]  /home/toto/sources/media_build/v4l/hopper_cards.o
>  CC [M]  /home/toto/sources/media_build/v4l/hopper_vp3028.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-routing.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-cards.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-controls.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-driver.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-fileops.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-firmware.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-gpio.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-i2c.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-ioctl.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-irq.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-mailbox.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-queue.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-streams.o
>  CC [M]  /home/toto/sources/media_build/v4l/ivtv-udma.o
>/home/toto/sources/media_build/v4l/ivtv-udma.c: In function
>'ivtv_udma_fill_sg_list':
>/home/toto/sources/media_build/v4l/ivtv-udma.c:60: error: too few
>arguments to function 'kmap_atomic'
>/home/toto/sources/media_build/v4l/ivtv-udma.c:62:21: error: macro
>"kunmap_atomic" requires 2 arguments, but only 1 given 
>/home/toto/sources/media_build/v4l/ivtv-udma.c:62: error:
>'kunmap_atomic' undeclared (first use in this function)
>/home/toto/sources/media_build/v4l/ivtv-udma.c:62: error: (Each
>undeclared identifier is reported only once
>/home/toto/sources/media_build/v4l/ivtv-udma.c:62: error: for each
>function it appears in.)
>make[5]: *** [/home/toto/sources/media_build/v4l/ivtv-udma.o] Error 1
>make[4]: *** [_module_/home/toto/sources/media_build/v4l] Error 2
>make[3]: *** [sub-make] Error 2
>make[2]: *** [all] Error 2
>make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
>make[1]: *** [default] Error 2
>make[1]: Leaving directory `/home/toto/sources/media_build/v4l'
>make: *** [all] Error 2
>build failed at ./build line 410.
>
>After searching a bit on Google, I found someone with the same issue
>than me who post it today : http://pastebin.com/zgqN7LRE
>
>Any idea ? --
>To unsubscribe from this list: send the line "unsubscribe linux-media"
>in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

Backport builds to older kernels are never guarnteed to work.

The ivtv driver source has to keep up with the latest kernel.  In this case kmap_atomic and kunmap_atomic in the latest kernels have one less argument that in the older kernel version you are using.

You will need to fix the drivers/media/video/ivtv/ source files to fix the problem.  If you develop a patch for the backport, you can submit it and hopefully get it included as a backward compatibilty patch for the media_build repo.

Of course that may not be the only problem.   A PVR-x50 user recent noted that media_build ivtv didn't work right with 2.6.32.  I investigated it down to an I2c driver module binding problem, also due to the media_build backport not having a patch.

I have no time, nor desire, to fix things for kernels that old, which are likely Enterprise kernels anyway.  If you do need support for an Enterprise kernel, I recommend getting it from the Enterprise kernel vendor or a consultant.

Regards,
Andy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-29 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120329174427.D1F6E15D201A8@alastor.dyndns.org>
2012-03-29 18:13 ` Compilation problem : too few arguments to function 'kmap_atomic Loïc Bertron
2012-03-29 19:18   ` Andy Walls

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.