Message ID | 1458502483-16887-4-git-send-email-christophe-h.ricard@st.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sun, Mar 20, 2016 at 08:34:34PM +0100, Christophe Ricard wrote: > Add missing include guards in tpm.h > > Signed-off-by: Peter Huewe <peter.huewe@infineon.com> > Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> /Jarkko > --- > drivers/char/tpm/tpm.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h > index 928b47f..28a0c17 100644 > --- a/drivers/char/tpm/tpm.h > +++ b/drivers/char/tpm/tpm.h > @@ -19,6 +19,10 @@ > * License. > * > */ > + > +#ifndef __TPM_H__ > +#define __TPM_H__ > + > #include <linux/module.h> > #include <linux/delay.h> > #include <linux/fs.h> > @@ -548,3 +552,4 @@ extern unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *, u32); > extern int tpm2_do_selftest(struct tpm_chip *chip); > extern int tpm2_gen_interrupt(struct tpm_chip *chip); > extern int tpm2_probe(struct tpm_chip *chip); > +#endif > -- > 2.5.0 > ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 928b47f..28a0c17 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -19,6 +19,10 @@ * License. * */ + +#ifndef __TPM_H__ +#define __TPM_H__ + #include <linux/module.h> #include <linux/delay.h> #include <linux/fs.h> @@ -548,3 +552,4 @@ extern unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *, u32); extern int tpm2_do_selftest(struct tpm_chip *chip); extern int tpm2_gen_interrupt(struct tpm_chip *chip); extern int tpm2_probe(struct tpm_chip *chip); +#endif