Re: [PATCH] tpm/tpm_crb: mark PM functions as __maybe_unused

From: Jason Gunthorpe
Date: Mon Mar 20 2017 - 19:05:37 EST


On Mon, Mar 20, 2017 at 11:01:36PM +0000, Winkler, Tomas wrote:

> I believe that in this case the #ifdefs can be done correctly quite
> easily, but now I'm not against your solution as well, just maybe
> put some of this info to the commit message.

I perfer fewer ifdefs, it makes it more maintainable..

The compiler will remove unused static functions.

Jason