Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    ‘struct pci_dev’ has no member named ‘slot_name’

    I'm running Suse 10 on a pentium III 550Mhz with 128Mb.

    I've recently purchased an Encore network card, ENL832-TX-ICNT. When i attempt to "make all", i get the following response;

    linux:/home/meulogin/encore/Linux # make all
    make -C /lib/modules/2.6.13-15-default/build SUBDIRS=/home/meulogin/encore/Linux modules
    make[1]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/default'
    make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules
    CC [M] /home/meulogin/encore/Linux/sundance_main.o
    /home/meulogin/encore/Linux/sundance_main.c: In function ‘netdev_ethtool_ioctl’:
    /home/meulogin/encore/Linux/sundance_main.c:1657: error: ‘struct pci_dev’ has no member named ‘slot_name’
    make[4]: ** [/home/meulogin/encore/Linux/sundance_main.o] Erro 1
    make[3]: ** [_module_/home/meulogin/encore/Linux] Erro 2
    make[2]: ** [modules] Erro 2
    make[1]: ** [modules] Erro 2
    make[1]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/default'
    make: ** [all] Erro 2

    Has anybody seen this before? How do i fix this?

    Thanx in advance,


  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    The pci_dev structure lost the slot_name member a while ago, I think it was dropped after 2.4 AFAIK. You should use the newer pci_name()...
    You could try replacing all references to pci_dev->slot_name with pci_dev->pci_name(pci_dev) in the source, that should fix it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts