This corrects a djgpp build error, seen with r1232 and later.
Signed-off-by: Idwer Vollering vidwer@gmail.com
Index: pcidev.c =================================================================== --- pcidev.c (revision 1246) +++ pcidev.c (working copy) @@ -207,7 +207,7 @@ return pci_write_word(dev, reg, data); }
-int rpci_write_long(struct pci_dev *dev, int reg, uint32_t data) +int rpci_write_long(struct pci_dev *dev, int reg, u32 data) { register_undo_pci_write_long(dev, reg); return pci_write_long(dev, reg, data);
---
pcidev.c:210: error: conflicting types for 'rpci_write_long' programmer.h:226: error: previous declaration of 'rpci_write_long' was here make[1]: *** [pcidev.o] Error 1
Am Montag, den 06.12.2010, 18:01 +0100 schrieb Idwer Vollering:
This corrects a djgpp build error, seen with r1232 and later.
Signed-off-by: Idwer Vollering vidwer@gmail.com
Not acked...
-int rpci_write_long(struct pci_dev *dev, int reg, uint32_t data) +int rpci_write_long(struct pci_dev *dev, int reg, u32 data)
pcidev.c:210: error: conflicting types for 'rpci_write_long' programmer.h:226: error: previous declaration of 'rpci_write_long' was here
I'd rather patch the header file to use uint32_t/uint16_t/uint8_t instead of u8/u16/u32, as the former types are used throughout flashrom. Is there any reason to not use them on rpci_write_*?
Regards, Michael Karcher