Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7023575ybi; Thu, 13 Jun 2019 08:18:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvtE+ak4uiLHaZjnjMynu2MPky6imgYK7/sp6aDlzntp4bTGS8oDtNtFtZLQ+Zy9Ou1VQn X-Received: by 2002:a63:d006:: with SMTP id z6mr19963451pgf.364.1560439106218; Thu, 13 Jun 2019 08:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439106; cv=none; d=google.com; s=arc-20160816; b=lLH/00nMJR0y1k7SR+XQkuBLGBVpUNUBQN8q0SNs+LdhPXqw0uZdLW+zKylPRiA5HX f423kS6MyVwgDry+hWgfNyy5YJ6UuFy+13agfniZPuwDM+oy04ARQbT2YKjyuZel3hjz iHSiWb9ep325r2WMbKsolNtYW6m27LBpvntGBo3Q+1jSEqfXyvcrTTtzXiBZlOmgSpvz mATWUEYHaGKlL6pbQQK1uYiGwFICRBYUyZp39LD3h9nKFF0dkztFHsB/83UVlEPlAQ2t 4bYFNsAfA3PZXdRs7biGJNb7kldtYjV5A0g2gkfS6VzVED/OL4CtdTR+ncmUcOPGrAaQ RdqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IpdX1rIhn/1Lk8TZ4g/8IVbNpyTArq72nZxCv7jiCEo=; b=csZzCfzzL0MLSAavHg75D4wcOvxfLeqdr6eMR3pYJhioApZ1zwOOlWXd8Q/PvGTxXw 8C1wKJky1wwEFP7PzJNyBzoVknU72R6nLrfEYlqlpv45d5oLn3BBHGrD8SP1GcQOiDhX Zr4K4bgX7Xw6eneqZM7AtIcNemgktS7oFGOwdkgqd8Q/jbKk4rsxKdFJGxZ1wWHkw3NK 2PFiW5bCNrUesrHtMEBEU1TobRE1s7K8C1Q8EGtXxzY/EkNRXH8bXpyN2BvdBZIl3nOR iuXSQ9rRIBcoRq1Da9UOiw3kJTl3nnXgyXAPSK2gFjZYxlm1OOjdh7hofuw7d6cFWj8z n20Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=iCcOgYbW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si18821pjt.87.2019.06.13.08.18.09; Thu, 13 Jun 2019 08:18:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=iCcOgYbW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732747AbfFMPQM (ORCPT + 99 others); Thu, 13 Jun 2019 11:16:12 -0400 Received: from mail-vs1-f52.google.com ([209.85.217.52]:46522 "EHLO mail-vs1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732214AbfFMNXx (ORCPT ); Thu, 13 Jun 2019 09:23:53 -0400 Received: by mail-vs1-f52.google.com with SMTP id l125so12572842vsl.13 for ; Thu, 13 Jun 2019 06:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IpdX1rIhn/1Lk8TZ4g/8IVbNpyTArq72nZxCv7jiCEo=; b=iCcOgYbWClI74T8LsWilhPOboTshwxc7nWtBvvK8Z7ywJ/r+FATaJHnGW4MyMnvh4y jUk7j+7+CY44jsMrY3m5tGIRuT67dJ6MwiEBmUW2puE+7W8OGkW6NyYnJjz8Wfu57MF9 tr5iFsez+1s52JVknUcrrcublDgoBc03Sv0dTTzYZMicYz6pQjqYUb82KCRNuG9SRLtl 2RSzBD+X98xoNhqjtPtg/L4mDXicIA6OpG3eJwUST9rSNzXbmMyWUp6pNf0wiZvKnwW2 DvxHyhE6zon70y/pcwFSJAFmGr/DEXc5Zp7XyutonkaJmcBVo1bJp1otzRo6lOT0Qrwm 6izA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IpdX1rIhn/1Lk8TZ4g/8IVbNpyTArq72nZxCv7jiCEo=; b=XCkvMmC+DruCaaBuVU+VreJEQgKRrZgxbG7o8eEjbA2nkjKSbsZvgzXGiYFdGJGR0J xuLxurPDz4wPD9u2tZDUxAODUxckObwzP3R2vcj2RuEIetKT9wn76XgFYWXmzvRHUFGB iuYwLLpn2Jytm/+bCAZ4cFPyn+RdZlA3oj6/7qy9lf/HTHpbIq10MgqkZXvcB1X1Yf5O hFMuvsbvIn8OEjw9RPboDhDLO0g63Kz5bAI0Ob+IvBWqnvAa39l+/gwI29X0eSRI5P4u xe6Tca5f1njJLP594c/z3auoRNlrYKk0row6XrE8nYr5Ved58/6GoPIE2/4Tc0cJAdkg n+Pw== X-Gm-Message-State: APjAAAXtp6Spu28+zeStgYM1gFEEvxds5kvaDx+R5GN9ljkoQEMdKdJc xvxy1rX46Fi+pDo1lsoZmWNDeeuv8zqKZsNQNR5n+A== X-Received: by 2002:a67:f795:: with SMTP id j21mr996812vso.226.1560432232846; Thu, 13 Jun 2019 06:23:52 -0700 (PDT) MIME-Version: 1.0 References: <20190611125904.1013-1-cai@lca.pw> In-Reply-To: From: Bartosz Szczepanek Date: Thu, 13 Jun 2019 15:23:42 +0200 Message-ID: Subject: Re: [PATCH -next] efi/tpm: fix a compilation warning To: Arnd Bergmann Cc: Qian Cai , Ard Biesheuvel , Matthew Garrett , linux-efi , Jarkko Sakkinen , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 2:40 PM Arnd Bergmann 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.