Package: acx100-source Version: 20070101-1 Severity: wishlist *** Please type your report below this line ***
Building acx100 fails with the following error message: # Build modules /usr/bin/make -C "/tmp/pkg/linux" M="/tmp/pkg/modules/acx100" make[4]: Entering directory `/tmp/pkg/linux-2.6.24-rc4-git5-slh64-smp-1' LD /tmp/pkg/modules/acx100/built-in.o CC [M] /tmp/pkg/modules/acx100/wlan.o CC [M] /tmp/pkg/modules/acx100/conv.o /tmp/pkg/modules/acx100/conv.c: In function 'acx_rxbuf_to_ether': /tmp/pkg/modules/acx100/conv.c:502: warning: cast from pointer to integer of different size CC [M] /tmp/pkg/modules/acx100/ioctl.o CC [M] /tmp/pkg/modules/acx100/common.o /tmp/pkg/modules/acx100/common.c: In function 'acx_s_proc_diag_output': /tmp/pkg/modules/acx100/common.c:1249: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'long unsigned int' /tmp/pkg/modules/acx100/common.c:1527: warning: cast from pointer to integer of different size /tmp/pkg/modules/acx100/common.c:1527: warning: cast from pointer to integer of different size /tmp/pkg/modules/acx100/common.c:1532: warning: cast from pointer to integer of different size /tmp/pkg/modules/acx100/common.c:1532: warning: cast from pointer to integer of different size /tmp/pkg/modules/acx100/common.c: In function 'manage_proc_entries': /tmp/pkg/modules/acx100/common.c:1716: warning: passing argument 1 of 'ndev2adev' discards qualifiers from pointer target type CC [M] /tmp/pkg/modules/acx100/pci.o CC [M] /tmp/pkg/modules/acx100/usb.o /tmp/pkg/modules/acx100/usb.c: In function 'acxusb_e_probe': /tmp/pkg/modules/acx100/usb.c:862: error: implicit declaration of function 'SET_MODULE_OWNER' Introduced by "Nuke SET_MODULE_OWNER macro": http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=10d024c1b2fd58af8362670d7d6e5ae52fc33353 The attached debdiff fixes this build error by retaining (untested) kernel 2.4 compatibility, SET_MODULE_OWNER could be removed unconditionally for all kernels that are important for lenny (it should be obsolete since 2.5.66). Tested (iwlist s) with kernel 2.6.23.11 and 2.6.24-rc5-git3 on i386: 06:00.0 Network controller [0280]: Texas Instruments ACX 100 22Mbps Wireless Interface [104c:8400] Regards Stefan Lippers-Hollmann -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (200, 'testing'), (50, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-rc5-git1-slh64-smp-1 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages acx100-source depends on: ii debhelper 5.0.62 helper programs for debian/rules ii module-assistant 0.10.11 tool to make module package creati acx100-source recommends no packages. -- no debconf information
diff -u acx100-20070101/pci.c acx100-20070101/pci.c --- acx100-20070101/pci.c +++ acx100-20070101/pci.c @@ -1617,9 +1617,11 @@ acx_show_card_eeprom_id(adev); #endif /* NONESSENTIAL_FEATURES */ +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) #ifdef SET_MODULE_OWNER SET_MODULE_OWNER(ndev); #endif +#endif SET_NETDEV_DEV(ndev, &pdev->dev); log(L_IRQ|L_INIT, "using IRQ %d\n", pdev->irq); --- acx100-20070101.orig/usb.c +++ acx100-20070101/usb.c @@ -859,7 +859,9 @@ ndev->watchdog_timeo = 4 * HZ; #endif ndev->change_mtu = &acx_e_change_mtu; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) SET_MODULE_OWNER(ndev); +#endif /* Setup private driver context */
signature.asc
Description: This is a digitally signed message part.