diff options
| author | Michael Brown | 2006-04-24 20:31:37 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-04-24 20:31:37 +0200 |
| commit | 832e86246b37c78466a5a30159bed48ed59eb811 (patch) | |
| tree | c931cdff0738445ba4b5d432784ac11af323b35a /src/drivers/net/3c509.c | |
| parent | (librm_base-1b) is already an offset; no need to apply OFFSET(). (diff) | |
| download | ipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.gz ipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.xz ipxe-832e86246b37c78466a5a30159bed48ed59eb811.zip | |
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
Diffstat (limited to 'src/drivers/net/3c509.c')
| -rw-r--r-- | src/drivers/net/3c509.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c index 095fb392..b27ee1f6 100644 --- a/src/drivers/net/3c509.c +++ b/src/drivers/net/3c509.c @@ -311,7 +311,7 @@ static const char * t509_name_device ( struct bus_dev *bus_dev __unused ) { * T509 bus operations table * */ -static struct bus_driver t509_driver __bus_driver = { +struct bus_driver t509_driver __bus_driver = { .name = "T509", .next_location = t509_next_location, .fill_device = t509_fill_device, @@ -392,7 +392,7 @@ static void el3_t509_disable ( struct nic *nic, struct t509_device *t509 ) { deactivate_t509_device ( t509 ); } -static struct {} el3_t509_driver; +struct {} el3_t509_driver; DRIVER ( "3c509", nic_driver, t509_driver, el3_t509_driver, el3_t509_probe, el3_t509_disable ); |
