Re: [PATCH] Mark inline functions as __maybe_unused

From: Måns Rullgård
Date: Wed Jan 28 2015 - 15:44:58 EST


Behan Webster <behanw@xxxxxxxxxxxxxxxxxx> writes:

> clang warns if inline functions aren't used. By making them __maybe_unused
> there is no warning for either gcc nor clang.

Are you sure about that? I've never seen such behaviour from clang (or
any other compiler), and it would truly be idiotic. If clang has taken
to warning about unused inline functions, that's a regression that needs
to be addressed in clang, not the kernel.

--
Måns Rullgård
mans@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/