Patch "tpm_crb: fix address space of the return pointer in crb_map_res()" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
tpm_crb: fix address space of the return pointer in crb_map_res()
to the 4.7-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_crb-fix-address-space-of-the-return-pointer-in-crb_map_res.patch
and it can be found in the queue-4.7 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
f786b752098216fedb73ba2905c8cce12358534aMon Sep 17 00:00:00 2001
From: Jarkko Sakkinen <[email protected]>
Date: Fri, 17 Jun 2016 16:39:29 +0200
Subject: tpm_crb: fix address space of the return pointer in crb_map_res()
From: Jarkko Sakkinen <[email protected]>
commit f786b752098216fedb73ba2905c8cce12358534a upstream.
When running make C=2 M=drivers/char/tpm/
CHECK drivers/char/tpm//tpm_crb.c
drivers/char/tpm//tpm_crb.c:248:31: warning: incorrect type in return expression (different address spaces)
drivers/char/tpm//tpm_crb.c:248:31: expected void [noderef] <asn:2>*
drivers/char/tpm//tpm_crb.c:248:31: got void *
--- drivers/char/tpm/tpm_crb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_crb.c +1 -1
@@ -246,7 +246,7 @@ static void __iomem *crb_map_res(struct/* Detect a 64 bit address on a 32 bit system */ if (start != new_res.start) -return ERR_PTR (-EINVAL ); +return (void __iomem *)ERR_PTR (-EINVAL );if (!resource_contains (&priv->res, &new_res))return devm_ioremap_resource (dev, &new_res);
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/tpm_crb-fix-address-space-of-the-return-pointer-in-crb_map_res.patch