Subject: spca5xx-source: does not compile on powerpc

From: Paul Brossier <[email-masked]>
Date: Mon, 17 Oct 2005 17:31:30 +0100

Package: spca5xx-source
Version: 20051001-1
Severity: normal

Hi,

thanks for packaging these modules. the module works fine on an i386
box, but I have troubles compiling it on 2.6.12-1-powerpc64. Attached is
the compilation log.

Cheers, piem

piem@calabaza:/usr/src/modules/spca5xx$ make
   Building SPCA5XX driver for 2.5/2.6 kernel.
   Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/spca5xx CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.12-1-powerpc64'
  CC [M]  /usr/src/modules/spca5xx/drivers/usb/spca5xx.o
In file included from include/linux/thread_info.h:20,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:
include/linux/bitops.h: In function ‘generic_hweight64’:
include/linux/bitops.h:123: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:123: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:124: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:124: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:125: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:125: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:126: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:126: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:127: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:127: warning: integer constant is too large for ‘unsigned long’ type
include/linux/bitops.h:128: warning: right shift count >= width of type
In file included from include/linux/byteorder/big_endian.h:12,
                 from include/asm/byteorder.h:94,
                 from include/linux/kernel.h:16,
                 from include/linux/cache.h:4,
                 from include/asm/thread_info.h:15,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:
include/linux/byteorder/swab.h: In function ‘__fswab64’:
include/linux/byteorder/swab.h:167: warning: left shift count >= width of type
include/linux/byteorder/swab.h:167: warning: left shift count >= width of type
include/linux/byteorder/swab.h:167: warning: right shift count >= width of type
include/linux/byteorder/swab.h:167: warning: right shift count >= width of type
include/linux/byteorder/swab.h: In function ‘__swab64p’:
include/linux/byteorder/swab.h:172: warning: left shift count >= width of type
include/linux/byteorder/swab.h:172: warning: left shift count >= width of type
include/linux/byteorder/swab.h:172: warning: right shift count >= width of type
include/linux/byteorder/swab.h:172: warning: right shift count >= width of type
include/linux/byteorder/swab.h: In function ‘__swab64s’:
include/linux/byteorder/swab.h:176: warning: left shift count >= width of type
include/linux/byteorder/swab.h:176: warning: left shift count >= width of type
include/linux/byteorder/swab.h:176: warning: right shift count >= width of type
include/linux/byteorder/swab.h:176: warning: right shift count >= width of type
In file included from include/asm/paca.h:23,
                 from include/asm/spinlock.h:20,
                 from include/linux/spinlock.h:43,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:
include/asm/mmu.h: At top level:
include/asm/mmu.h:73: error: width of ‘avpn’ exceeds its type
include/asm/mmu.h:85: error: width of ‘rpn’ exceeds its type
include/asm/mmu.h: In function ‘hpt_hash’:
include/asm/mmu.h:133: warning: integer constant is too large for ‘unsigned long’ type
include/asm/mmu.h: In function ‘vsid_scramble’:
include/asm/mmu.h:323: warning: right shift count >= width of type
include/asm/mmu.h:323: warning: left shift count >= width of type
include/asm/mmu.h:324: warning: right shift count >= width of type
include/asm/mmu.h:324: warning: left shift count >= width of type
In file included from include/asm/spinlock.h:22,
                 from include/linux/spinlock.h:43,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:
include/asm/iSeries/HvCall.h: In function ‘HvCall_setVirtualDecr’:
include/asm/iSeries/HvCall.h:133: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:133: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_yieldProcessor’:
include/asm/iSeries/HvCall.h:138: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:138: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_setEnabledInterrupts’:
include/asm/iSeries/HvCall.h:143: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:143: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_clearLogBuffer’:
include/asm/iSeries/HvCall.h:149: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:149: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_getLogBufferCodePage’:
include/asm/iSeries/HvCall.h:155: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:155: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_getLogBufferFormat’:
include/asm/iSeries/HvCall.h:162: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:162: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_getLogBufferLength’:
include/asm/iSeries/HvCall.h:169: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:169: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_setLogBufferFormatAndCodepage’:
include/asm/iSeries/HvCall.h:176: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:176: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_sendIPI’:
include/asm/iSeries/HvCall.h:186: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:186: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_terminateMachineSrc’:
include/asm/iSeries/HvCall.h:192: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:192: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_setDABR’:
include/asm/iSeries/HvCall.h:197: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:197: warning: large integer implicitly truncated to unsigned type
include/asm/iSeries/HvCall.h: In function ‘HvCall_setDebugBus’:
include/asm/iSeries/HvCall.h:202: warning: integer constant is too large for ‘unsigned long’ type
include/asm/iSeries/HvCall.h:202: warning: large integer implicitly truncated to unsigned type
In file included from include/linux/sched.h:12,
                 from include/linux/module.h:10,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:
include/linux/jiffies.h: In function ‘timespec_to_jiffies’:
include/linux/jiffies.h:325: warning: left shift count >= width of type
include/linux/jiffies.h: In function ‘timeval_to_jiffies’:
include/linux/jiffies.h:364: warning: left shift count >= width of type
include/linux/jiffies.h:364: warning: left shift count >= width of type
In file included from include/linux/mm.h:36,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:48:
include/asm/pgtable.h: In function ‘find_linux_pte’:
include/asm/pgtable.h:533: warning: integer constant is too large for ‘unsigned long’ type
include/asm/pgtable.h:533: warning: cast to pointer from integer of different size
include/asm/pgtable.h:535: warning: integer constant is too large for ‘unsigned long’ type
include/asm/pgtable.h:535: warning: cast to pointer from integer of different size
In file included from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:48:
include/linux/mm.h: In function ‘lowmem_page_address’:
include/linux/mm.h:434: warning: integer constant is too large for ‘unsigned long’ type
include/linux/mm.h:434: warning: cast to pointer from integer of different size
include/linux/mm.h: In function ‘pmd_alloc’:
include/linux/mm.h:679: warning: integer constant is too large for ‘unsigned long’ type
include/linux/mm.h:679: warning: cast to pointer from integer of different size
In file included from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:53:
include/asm/cacheflush.h: In function ‘flush_icache_range’:
include/asm/cacheflush.h:44: warning: integer constant is too large for ‘unsigned long’ type
include/asm/cacheflush.h:44: warning: large integer implicitly truncated to unsigned type
In file included from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:55:
include/asm/io.h: In function ‘virt_to_phys’:
include/asm/io.h:224: warning: integer constant is too large for ‘unsigned long’ type
include/asm/io.h: In function ‘phys_to_virt’:
include/asm/io.h:241: warning: integer constant is too large for ‘unsigned long’ type
include/asm/io.h:241: warning: cast to pointer from integer of different size
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c: In function ‘uvirt_to_kva’:
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c:1088: warning: integer constant is too large for ‘unsigned long’ type
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c:1088: warning: cast to pointer from integer of different size
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c:1098: warning: integer constant is too large for ‘unsigned long’ type
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c:1098: warning: cast to pointer from integer of different size
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c: In function ‘kvirt_to_pa’:
/usr/src/modules/spca5xx/drivers/usb/spca5xx.c:1140: warning: integer constant is too large for ‘unsigned long’ type
make[2]: *** [/usr/src/modules/spca5xx/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/usr/src/modules/spca5xx] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.12-1-powerpc64'
make: *** [default] Error 2

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-powerpc64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages spca5xx-source depends on:
ii  build-essential               11.1       informational list of build-essent
ii  bzip2                         1.0.2-10   high-quality block-sorting file co
ii  debhelper                     4.9.13     helper programs for debian/rules
ii  module-assistant              0.9.10     tool to make module package creati

spca5xx-source recommends no packages.

-- no debconf information