[hsflinux] driver install failes

Chris Vine chris at cvine.freeserve.co.uk
Wed Dec 10 04:43:08 EST 2008


On Wed, 10 Dec 2008 08:20:35 +0100
Thomas Lehnet <thomas.lehnet at 1und1.de> wrote:

> 
> Hello,
> 
> after upgrading to the actual kernel 2.6.27.8 the driver won't
> install:
> 
> (cd /lib/modules/2.6.27.8/build && make
> "CNXT_KERNELSRC=/lib/modules/2.6.27.8/build"
> "M=/usr/lib/hsfmodem/modules" "CC=gcc" clean)
> make[1]: Entering directory `/usr/src/linux-2.6.27.8'
> make[1]: Leaving directory `/usr/src/linux-2.6.27.8'
> (cd /lib/modules/2.6.27.8/build && make
> "CNXT_KERNELSRC=/lib/modules/2.6.27.8/build"
> "M=/usr/lib/hsfmodem/modules/GPL/hda" "CC=gcc"
> "HDA_CFLAGS=-DFOUND_KZALLOC  -DFOUND_TLV   -DFOUND_IRQ_HANDLER_T
> -DFOUN D_DELAYED_WORK  -DFOUND_NO_CTL_ELEM_RW" clean)
> make[1]: Entering directory `/usr/src/linux-2.6.27.8'
> make[1]: Leaving directory `/usr/src/linux-2.6.27.8'
> rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd
> GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.27.8/build/.tmp_versions/hsfosspec.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfs
> erial.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfengine.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfpcibasic2.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfpcibasic3.mod  /lib/modules/2.
> 6.27.8/build/.tmp_versions/hsfhda.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfmc97ich.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfmc97via.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfmc9
> 7ali.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfmc97ati.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfmc97sis.mod  /lib/modules/2.6.27.8/build/.tmp_versions/hsfsoar.mod
> Modules.symvers GPL/hda /Modules.symvers Module.symvers
> GPL/hda/Module.symvers modules.order (cd /lib/modules/2.6.27.8/build
> && make "CNXT_KERNELSRC=/lib/modules/2.6.27.8/build"
> "M=/usr/lib/hsfmodem/modules" "CC=gcc" modules)
> make[1]: Entering directory `/usr/src/linux-2.6.27.8'
>   CC [M]  /usr/lib/hsfmodem/modules/mod_engine.o
>   CC [M]  /usr/lib/hsfmodem/modules/mod_hda.o
>   CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ali.o
> In file included from /usr/lib/hsfmodem/modules/mod_mc97ali.c:32:
> /usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function
> 'cnxthwpci_probe':
> /usr/lib/hsfmodem/modules/cnxthwpci_common.c:38: error: 'struct
> pci_dev' has no member named 'slot_name'
> /usr/lib/hsfmodem/modules/cnxthwpci_common.c:57: error: 'struct
> pci_dev' has no member named 'slot_name'
> /usr/lib/hsfmodem/modules/cnxthwpci_common.c: In function
> 'cnxthwpci_init':
> /usr/lib/hsfmodem/modules/cnxthwpci_common.c:247: error: 'struct
> pci_dev' has no member named 'slot_name'
> make[2]: *** [/usr/lib/hsfmodem/modules/mod_mc97ali.o] Error 1
> make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.27.8'
> make: *** [all] Error 2
> 
> does anybody have any idea how to fix it?

If you delete the line:

FOUND_PCI_DEV_SLOT_NAME := $(shell grep -q 'slot_name' ${REAL_KERNELSRC}/include/linux/pci.h 2>/dev/null && echo -DFOUND_PCI_DEV_ SLOT_NAME)

in modules/Makefile, and rerun 'make install', then it will work (but not for some 2.4 kernels but I don't imagine you are using them).

A new symbol has been added in include/linux/pci.h which has affected that rather half-baked test in the Makefile.

Chris



More information about the hsflinux mailing list