Messages in this thread | | | From | Bartosz Szczepanek <> | Date | Thu, 13 Jun 2019 15:23:42 +0200 | Subject | Re: [PATCH -next] efi/tpm: fix a compilation warning |
| |
On Thu, Jun 13, 2019 at 2:40 PM Arnd Bergmann <arnd@arndb.de> 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 = false.
| |