diff options
Diffstat (limited to 'src/include/gpxe/interface.h')
| -rw-r--r-- | src/include/gpxe/interface.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/gpxe/interface.h b/src/include/gpxe/interface.h index d27ba6a53..94c711a99 100644 --- a/src/include/gpxe/interface.h +++ b/src/include/gpxe/interface.h @@ -34,7 +34,8 @@ struct interface { * @v intf Interface * @ret intf Interface */ -static inline struct interface * intf_get ( struct interface *intf ) { +static inline __attribute__ (( always_inline )) struct interface * +intf_get ( struct interface *intf ) { ref_get ( intf->refcnt ); return intf; } @@ -44,7 +45,8 @@ static inline struct interface * intf_get ( struct interface *intf ) { * * @v intf Interface */ -static inline void intf_put ( struct interface *intf ) { +static inline __attribute__ (( always_inline )) void +intf_put ( struct interface *intf ) { ref_put ( intf->refcnt ); } |
