Subject: Re: FYI: Unused function ehci_dump()
To: Patrick Welche <>
From: Krister Walfridsson <>
List: tech-kern
Date: 11/04/2005 20:38:29
On Thu, 3 Nov 2005, Patrick Welche wrote:

> The following seems to do the trick - I just still haven't tested the
> kernel yet - should be safe to apply nevertheless (I can't)

You should use __attribute__((__used__)) instead, which tells gcc that
the function is used in a way that gcc does not know about (and implies
that the function must not be eliminated).  Or even better, use the __used
definition from sys/cdefs.h...