Re: [PATCH -next] efi/tpm: fix a compilation warning
From: Bartosz Szczepanek
Date: Thu Jun 13 2019 - 11:21:02 EST
On Thu, Jun 13, 2019 at 2:40 PM Arnd Bergmann <arnd@xxxxxxxx> wrote:
> Would it be correct to change that to 'false' then (or completely remove
> the additional remap, given that the other two callers pass false
> already) and pass final_tbl?
The problem is that we don't know the final_tbl size before running
tpm2_calc_event_log_size on it, so we cannot map it's entire content.
Only table header is mapped at the beginning.
After size of entire table is calculated it can be mapped as a whole
and no additional remap is needed, hence the calls with do_mapping =