Use __unused instead of __used for static data structures.

Remove compiler.h defines from osdep.h
This commit is contained in:
Michael Brown
2005-05-17 12:16:28 +00:00
parent 301b2d40f0
commit 3bbf5f28a3
7 changed files with 24 additions and 18 deletions

View File

@@ -160,7 +160,7 @@ struct bus_driver {
const char * ( *name_device ) ( struct bus_dev *bus_dev );
};
#define __bus_driver __attribute__ (( used, __table_section(bus_driver,01) ))
#define __bus_driver __table ( bus_driver, 01 )
/*
* A structure fully describing the bus-independent parts of a
@@ -186,7 +186,7 @@ struct type_driver {
int ( * load ) ( struct type_dev *type_dev, struct buffer *buffer );
};
#define __type_driver __attribute__ (( used, __table_section(type_driver,01) ))
#define __type_driver __table ( type_driver, 01 )
/*
* A driver for a device.
@@ -203,8 +203,7 @@ struct device_driver {
struct bus_dev *bus_dev );
};
#define __device_driver \
__attribute__ (( used, __table_section(device_driver,01) ))
#define __device_driver __table ( device_driver, 01 )
#define DRIVER(_name,_type_driver,_bus_driver,_bus_info, \
_probe,_disable) \