diff options
| author | Michael Brown | 2007-05-01 12:17:29 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-05-01 12:17:29 +0200 |
| commit | 817a446cc6e80e04388250624a335ac0083ea79a (patch) | |
| tree | 4758e9a8109abf3260e6d87f4bb71557f97d84b5 /src/include/gpxe/xfer.h | |
| parent | Added (non-functional) reference count to struct image (diff) | |
| download | ipxe-817a446cc6e80e04388250624a335ac0083ea79a.tar.gz ipxe-817a446cc6e80e04388250624a335ac0083ea79a.tar.xz ipxe-817a446cc6e80e04388250624a335ac0083ea79a.zip | |
Add always_inline attribute to force gcc to inline single-instruction
functions.
Diffstat (limited to 'src/include/gpxe/xfer.h')
| -rw-r--r-- | src/include/gpxe/xfer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gpxe/xfer.h b/src/include/gpxe/xfer.h index 3c46cdf2d..61f5d86cf 100644 --- a/src/include/gpxe/xfer.h +++ b/src/include/gpxe/xfer.h @@ -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 ); } |
