Add always_inline attribute to force gcc to inline single-instruction

functions.
This commit is contained in:
Michael Brown
2007-05-01 10:17:29 +00:00
parent 123a98db26
commit 817a446cc6
2 changed files with 4 additions and 4 deletions

View File

@@ -138,7 +138,7 @@ static inline void xfer_init ( struct xfer_interface *xfer,
* @v intf Generic object communication interface
* @ret xfer Data transfer interface
*/
static inline struct xfer_interface *
static inline __attribute__ (( always_inline )) struct xfer_interface *
intf_to_xfer ( struct interface *intf ) {
return container_of ( intf, struct xfer_interface, intf );
}
@@ -149,7 +149,7 @@ intf_to_xfer ( struct interface *intf ) {
* @v xfer Data transfer interface
* @ret dest Destination interface
*/
static inline struct xfer_interface *
static inline __attribute__ (( always_inline )) struct xfer_interface *
xfer_dest ( struct xfer_interface *xfer ) {
return intf_to_xfer ( xfer->intf.dest );
}