linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0
@ 2015-10-20 11:49 Andreas Ziegler
  2015-10-20 14:58 ` Jarkko Sakkinen
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Ziegler @ 2015-10-20 11:49 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: Peter Huewe, Marcel Selhorst, Jason Gunthorpe, tpmdd-devel,
	linux-kernel@vger.kernel.org, Valentin Rothberg, Paul Bolle

Hi Jarkko,

your patch "tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0"
showed up as commit 399235dc6e95 in linux-next today (that is,
next-20151020). I noticed it because we (a research group from
Erlangen[0]) are running daily checks on linux-next.

Your commit creates the following structure of #ifdef blocks in
drivers/char/tpm/tpm_tis.c following line 1088:

 #ifdef CONFIG_ACPI
 ...
 #ifdef CONFIG_PNP
 ...
 #endif
 ...
 #endif

Looking at the definition of CONFIG_ACPI at drivers/acpi/Kconfig, line
5, we see that ACPI unconditionally selects PNP, meaning that CONFIG_PNP
is always enabled if CONFIG_ACPI has been enabled.
Thus, the inner #ifdef statement can never evaluate to 'false' if the
outer #ifdef evaluates to true (i.e., CONFIG_ACPI is enabled), and
hence, the #ifdef is unnecessary.

The same situation holds for the nested structure following line 1124,
where the #ifdef CONFIG_PNP at line 1129 is unnecessary.

Is this correct or did we miss something?

Regards,

Andreas

[0] https://cados.cs.fau.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-23 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 11:49 tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0 Andreas Ziegler
2015-10-20 14:58 ` Jarkko Sakkinen
2015-10-21 15:58   ` [tpmdd-devel] " Jarkko Sakkinen
2015-10-23 13:01     ` Valentin Rothberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).