too few arguments to 'gspca_frame_add'

  • Jiri Cernovsky
    Jiri Cernovsky

    I am trying to compile m5603c-gscpa (SVN 510) on Gentoo on Asus A3N series. I patched kernel 2.6.30 (and 2.6.32 later) as written in README_INSTALLATION. When i try to "make" new kernel it fails with following message:

    asus linux # make
      CHK     include/linux/version.h
      CHK     include/linux/utsrelease.h
      SYMLINK include/asm -> include/asm-x86
      CALL    scripts/
      CHK     include/linux/compile.h
    dnsdomainname: Unknown host
      CC   drivers/media/video/gspca/m5603c/m5603c_core.o
    drivers/media/video/gspca/m5603c/m5603c_core.c: In function ‘sd_pkt_scan’:
    drivers/media/video/gspca/m5603c/m5603c_core.c:1215: error: too few arguments to function ‘gspca_frame_add’
    drivers/media/video/gspca/m5603c/m5603c_core.c:1216: error: too few arguments to function ‘gspca_frame_add’
    drivers/media/video/gspca/m5603c/m5603c_core.c:1221: warning: passing argument 3 of ‘gspca_frame_add’ from incompatible pointer type
    drivers/media/video/gspca/m5603c/m5603c_core.c:1221: warning: passing argument 4 of ‘gspca_frame_add’ makes pointer from integer without a cast
    drivers/media/video/gspca/m5603c/m5603c_core.c:1221: error: too few arguments to function ‘gspca_frame_add’
    drivers/media/video/gspca/m5603c/m5603c_core.c: At top level:
    drivers/media/video/gspca/m5603c/m5603c_core.c:1259: warning: initialization from incompatible pointer type
    make: ***  Error 1
    make: ***  Error 2
    make: ***  Error 2
    make: ***  Error 2
    make: ***  Error 2
    make: ***  Error 2

    Has somehow changed the arguments for the gspca_frame_add function?

    Thanks for explanation.
    Jiri Cernovsky