Patch "tpm: remove unused variables" has been added to the 4.15-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
tpm: remove unused variables
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
tpm-remove-unused-variables.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
68021bf4734d15c9a9ed1c1072b9ebcfda3e39ccMon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Tue, 2 Jan 2018 11:38:54 +0100
Subject: tpm: remove unused variables
From: Arnd Bergmann <[email protected]>
commit 68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc upstream.
The CLKRUN fix caused a few harmless compile-time warnings:
drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove':drivers/char/tpm/tpm_tis.c:274:23: error: unused variable 'priv' [-Werror=unused-variable] drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_plat_remove':drivers/char/tpm/tpm_tis.c:324:23: error: unused variable 'priv' [-Werror=unused-variable]
This removes the variables that have now become unused.
--- drivers/char/tpm/tpm_tis.c | 2 -- 1 file changed, 2 deletions(-)
drivers/char/tpm/tpm_tis.c +0 -2
@@ -256,7 +256,6 @@ MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl);static void tpm_tis_pnp_remove (struct pnp_dev *dev) {struct tpm_chip *chip =pnp_get_drvdata (dev); -struct tpm_tis_data *priv =dev_get_drvdata (&chip->dev);tpm_chip_unregister (chip);tpm_tis_remove (chip);
@@ -306,7 +305,6 @@ static int tpm_tis_plat_probe(struct plastatic int tpm_tis_plat_remove (struct platform_device *pdev) {struct tpm_chip *chip =dev_get_drvdata (&pdev->dev); -struct tpm_tis_data *priv =dev_get_drvdata (&chip->dev);tpm_chip_unregister (chip);tpm_tis_remove (chip);
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/watchdog-hpwdt-fix-unused-variable-warning.patch queue-4.15/dm-bufio-avoid-false-positive-wmaybe-uninitialized-warning.patch queue-4.15/objtool-fix-another-switch-table-detection-issue.patch queue-4.15/tpm-remove-unused-variables.patch