Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: satalink at cardbus



> >In order to get this to compile on my system, I had to adjust all the
> >initalizers in piixide.c; presumably, this would be required in other
> >ide chipset drivers, as well.
> 
> I get this:
> 
> /usr/store/source/netbsd/current/src/sys/dev/pci/acardide.c:56:  
> warning: missing initializer
> /usr/store/source/netbsd/current/src/sys/dev/pci/acardide.c:56:  
> warning: (near initialization for  
> 'pciide_acard_products[0].cardbus_chip_map')
> /usr/store/source/netbsd/current/src/sys/dev/pci/acardide.c:61:  
> warning: missing initializer
> ...
> 
> It seems obvious that I'm hitting the same problem you did, except I  
> don't understand how to fix this in piixide.c. Can you send me a diff?

you need to add an extra ", NULL" to the pciide_product_desc struct -
here's a fake diff(1) to illustrate.

        { PCI_PRODUCT_ACARD_ATP865A,
          0,
          "Acard ATP865-A Ultra133 IDE Controller",
          acard_chip_map,
+         NULL,
        },



Home | Main Index | Thread Index | Old Index