Re: [PATCH 2/2] tpm_crb: fix address space of the return pointer in crb_map_res()

From: Stefan Berger
Date: Fri Jun 17 2016 - 10:43:45 EST


On 06/17/2016 10:39 AM, Jarkko Sakkinen wrote:
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 *

Fixes: 1bd047be37d9 ("tpm_crb: Use devm_ioremap_resource")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>

Tested-by: Stefan Berger <stefanb@xxxxxxxxxxxxxxxxxx>