Skip to content

Commit d4abd95

Browse files
author
Jarkko Sakkinen
committed
tpm: remove unnecessary externs from tpm.h
Removed unnecessary externs from tpm.h. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
1 parent 09dd770 commit d4abd95

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

drivers/char/tpm/tpm.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -486,26 +486,26 @@ ssize_t tpm_transmit_cmd(struct tpm_chip *chip, const void *cmd, int len,
486486
unsigned int flags, const char *desc);
487487
ssize_t tpm_getcap(struct tpm_chip *chip, __be32 subcap_id, cap_t *cap,
488488
const char *desc);
489-
extern int tpm_get_timeouts(struct tpm_chip *);
490-
extern void tpm_gen_interrupt(struct tpm_chip *);
489+
int tpm_get_timeouts(struct tpm_chip *);
490+
void tpm_gen_interrupt(struct tpm_chip *);
491491
int tpm1_auto_startup(struct tpm_chip *chip);
492-
extern int tpm_do_selftest(struct tpm_chip *);
493-
extern unsigned long tpm_calc_ordinal_duration(struct tpm_chip *, u32);
494-
extern int tpm_pm_suspend(struct device *);
495-
extern int tpm_pm_resume(struct device *);
496-
extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long,
497-
wait_queue_head_t *, bool);
492+
int tpm_do_selftest(struct tpm_chip *chip);
493+
unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
494+
int tpm_pm_suspend(struct device *dev);
495+
int tpm_pm_resume(struct device *dev);
496+
int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout,
497+
wait_queue_head_t *queue, bool check_cancel);
498498

499499
struct tpm_chip *tpm_chip_find_get(int chip_num);
500500
__must_check int tpm_try_get_ops(struct tpm_chip *chip);
501501
void tpm_put_ops(struct tpm_chip *chip);
502502

503-
extern struct tpm_chip *tpm_chip_alloc(struct device *dev,
504-
const struct tpm_class_ops *ops);
505-
extern struct tpm_chip *tpmm_chip_alloc(struct device *pdev,
506-
const struct tpm_class_ops *ops);
507-
extern int tpm_chip_register(struct tpm_chip *chip);
508-
extern void tpm_chip_unregister(struct tpm_chip *chip);
503+
struct tpm_chip *tpm_chip_alloc(struct device *dev,
504+
const struct tpm_class_ops *ops);
505+
struct tpm_chip *tpmm_chip_alloc(struct device *pdev,
506+
const struct tpm_class_ops *ops);
507+
int tpm_chip_register(struct tpm_chip *chip);
508+
void tpm_chip_unregister(struct tpm_chip *chip);
509509

510510
void tpm_sysfs_add_device(struct tpm_chip *chip);
511511

@@ -532,8 +532,8 @@ ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id,
532532
u32 *value, const char *desc);
533533

534534
int tpm2_auto_startup(struct tpm_chip *chip);
535-
extern void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type);
536-
extern unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *, u32);
537-
extern int tpm2_gen_interrupt(struct tpm_chip *chip);
538-
extern int tpm2_probe(struct tpm_chip *chip);
535+
void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type);
536+
unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
537+
int tpm2_gen_interrupt(struct tpm_chip *chip);
538+
int tpm2_probe(struct tpm_chip *chip);
539539
#endif

0 commit comments

Comments
 (0)