[patch] gcc-3.3 compilation fixes
Enrico Scholz <[email protected]> Tue, 02 Sep 2003 17:56:15 +0200
| Newsgroups | gmane.linux.drivers.realtek.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have attached two patches which are fixing gcc-3.3 compilation issues. The first one is trivial and is for the multi-line strings. The second one fixes | eepro100-diag.c:931: Warnung: weak declaration of `monitor_mii' after first use results in unspecified behavior | eepro100-diag.c:932: Warnung: weak declaration of `show_mii_details' after first use results in unspecified behavior by moving the monitor_mii()/show_mii_details() declarations some lines upwards. Enrico
netdiag-2.4-gcc33.patch.gz
(application/x-gzip, 5.6 KB) - not displayed
netdiag-2.4-weak.patch
(text/x-patch, 1.1 KB)
2003-09-02 Enrico Scholz <[email protected]> * eepro100-diag.c: moved show_mii_details()/monitor_mii() declarations to fix gcc-3.3 warning about late weak-declarations --- eepro100-diag.c.weak 2003-09-02 17:33:06.000000000 +0200 +++ eepro100-diag.c 2003-09-02 17:50:29.000000000 +0200 @@ -87,8 +87,9 @@ #endif /* No libmii.h or libflash.h yet, thus the declarations here. */ -extern int show_mii_details(long ioaddr, int phy_id); -extern int monitor_mii(long ioaddr, int phy_id); +/* Simple alternate functions if libmii is not used. */ +extern int monitor_mii(long ioaddr, int phy_id) __attribute__((weak)); +extern int show_mii_details(long ioaddr, int phy_id) __attribute__((weak)); extern int flash_pci_rom_show(long addr_ioaddr, long data_ioaddr); extern int flash_pci_rom_dump(long addr_ioaddr, long data_ioaddr, @@ -927,10 +928,6 @@ return; } -/* Simple alternate functions if libmii is not used. */ -extern int monitor_mii(long ioaddr, int phy_id) __attribute__((weak)); -extern int show_mii_details(long ioaddr, int phy_id) __attribute__((weak)); - int monitor_mii(long ioaddr, int phy_id) { int i;