Fix use of inline in IMD

Change-Id: I2390f7df2becb260d1a4f8c4ad74676c997e9437