Commit cd0659e3 authored by Alberto Escolar Piedras's avatar Alberto Escolar Piedras Committed by Anas Nashif
Browse files

util.h: Remove INLINE definition and user



INLINE is a very common macro, just like MAX or MIN.
Defining it always can easily collide with libraries or
application headers.
And option would be to add a ifdef guard around it,
But it was used in only 1 place in Zephyr, instead
of keeping it just for that, remove it.

Signed-off-by: default avatarAlberto Escolar Piedras <alpi@oticon.com>
parent 351f39f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ static void timer_restart(u32_t countdown)
 * is 0 and the START bit is set then the timer has been started and is in the
 * process of moving the preload register value into the count register.
 */
static INLINE u32_t timer_count(void)
static inline u32_t timer_count(void)
{
	u32_t ccr = TIMER_REGS->CNT;

+0 −6
Original line number Diff line number Diff line
@@ -95,12 +95,6 @@ size_t ARRAY_SIZE(T(&)[N]) { return N; }
#define ceiling_fraction(numerator, divider) \
	(((numerator) + ((divider) - 1)) / (divider))

#ifdef INLINED
#define INLINE inline
#else
#define INLINE
#endif

/** @brief Return larger value of two provided expressions.
 *
 * @note Arguments are evaluated twice. See Z_MAX for GCC only, single