Re: [PATCH] Revert "dynamic_debug: Remove unnecessary __used"

From: Joe Perches
Date: Mon May 11 2020 - 15:56:16 EST


On Mon, 2020-05-11 at 12:31 -0700, Elliot Berman wrote:
> On 5/11/2020 11:54 AM, Joe Perches wrote> Change-Id: probably isn't necessary.
>
> Thanks for the catch
>
> > Is there a separate mechanism possible to avoid bloating the
> > otherwise unused content?
>
> This struct is being used in lib/dynamic_debug.c but compiler doesn't know
> about this usage when optimizing the struct/branch away.

I only remember that I removed __used awhile ago
because it _wasn't_ used in some paths.

Maybe that's changed, but I don't know.