Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp143108ybi; Fri, 14 Jun 2019 21:02:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZWAVr9YLdn/cb/P6DsJIXWjJzWkF6rMgo/+PpJ4ZlADJZlmzXdWBdneaaQb6GxzPg3ffH X-Received: by 2002:a63:81c2:: with SMTP id t185mr22595461pgd.257.1560571362765; Fri, 14 Jun 2019 21:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560571362; cv=none; d=google.com; s=arc-20160816; b=K+Sx9Loc1cnnOwrqjkmJcKW2W2CVE83K3x9yhYsaguXxDZLwx3NEtyU9gUh0x1OS8o 0Mh4cs/IzGB9f00ciqjJJPcyl5YjQHPi70jyB7TFvtFo42qT/EibzWMj8PBss+c7sDiB b/W8iBYSrHboWUxZTGT2N8/uc4wvFXFxJ2JK59ZVkXQ5y+TLcIC5Jo3VnwQsShmddpO+ 5syqIBC3TDr/uPz6tGSaRPGytIyaK5s6RniEEKt+E9uS37d90crCNcDE/7hFnuSWioC1 NP3/Iv5XJVhfpuweaaE7it+3MgBmMFQbm44EZBkGXst7+OFM1rYveh2iFyGa/oqpBtTa 613w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:to:from:date :dkim-signature; bh=u1ZcG1Sp0JvhKEi3rEpRDEedkqqLBcdvyquQGonVQRw=; b=tQd4IrL5g66s0+mudPKd9iosbq05ghMc75K45rKxQtKEc3PPEx6Eq1fiGYCoh1Lt0m Yzmfo0jNGhCxTbFRq9eojK3AWp5385P+vKGPAitn+4KqG1FHesCkRaWz1hRV/eXvYg+G aP9zVMVDeIuItFBkMPcNVCKwy+zSIan724IqUIoM/IOIO5oZT5D74EnCrSC1u8O4W4GF FIF8R8s6ZFHOtrSAmWm3irLv1kbWD3q/MylGoL3hkqWZE9puHI9RUkYTDxCHXw5yhbVb qCrz7tm79h8cuHQFbmp+tIGlhNE+/1aT0Jnv+JnjA64cMMH+RT9oyjXqbD9cVDhvv6ox FCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GzCnkIla; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si795200pjh.1.2019.06.14.21.02.25; Fri, 14 Jun 2019 21:02:42 -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=@gmail.com header.s=20161025 header.b=GzCnkIla; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726500AbfFOECR (ORCPT + 99 others); Sat, 15 Jun 2019 00:02:17 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42448 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfFOECQ (ORCPT ); Sat, 15 Jun 2019 00:02:16 -0400 Received: by mail-pg1-f196.google.com with SMTP id l19so2608497pgh.9; Fri, 14 Jun 2019 21:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=u1ZcG1Sp0JvhKEi3rEpRDEedkqqLBcdvyquQGonVQRw=; b=GzCnkIla8t/CAZwgluyHn46xdqBub+xym2+1pTfmLv7K5C5y691nCtPwbWqiAGwSwK WDyrJVMv+CaURgfh0yM31SgMFDZ0mxU9kzcLlrX4Ap5YdQPDtAynNZPh06brqIWlQUr3 1FpXmpo/LbmuU+c5Z0WWjfMzFk2xQ8osf9Zzih9oBdY9MTjv/BHJw+YufUEQb2W9Moeu M+BbcjPTjbu5SM80EnekimCviunjNUJ3c5pjJTQORg2Cvhw9W8Cpv+FUQw2VdqKxW3zD yu2qoZGp+x6xOk7uV+N6rp0VvGC3i+Gl7HDcfWMX7aIWRMForIlRH2Taj06y3vqyCBnh BV6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=u1ZcG1Sp0JvhKEi3rEpRDEedkqqLBcdvyquQGonVQRw=; b=Lh/up5ZsrUwbJwTFTS0tAe1P0DIx+4dnWcVZpPUgVKPPgBvTnh7rLqkpfyADyjNqoN vWgJpR9N2XJqpZkQFH+4LQ7/KU8OnX3TBFnjuxhcJleckYMSiw43zCkiaTwEFXTyCTub AJYnQPCU0wrLvVL2alzDSWo7ZoXfg83F8+DHK5Dsax1N9HmvIfkRFBQdQYgD4ykViyUI YNVnS1BPXYb/1yiyEIRwKuoEas1BAukspK8Irr5u5XH8B1sCO9DNjhVlk52Bwfb7fXkX suS31bEfwvliDFi6qPyFomLBAVpeE8VJ6Fm1qnsEitpALjUGFYA+S4ZO+5v7k1bd/G/e Myfg== X-Gm-Message-State: APjAAAX1Et3JYpktUPy/2aNckBELHqs8aNAi0/h9SXRJcZVV7ZyEYLye Zmx5f/lVMe9j3HmYJ6FrbNo= X-Received: by 2002:aa7:8d98:: with SMTP id i24mr34349227pfr.199.1560571335596; Fri, 14 Jun 2019 21:02:15 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id m1sm3857242pjv.22.2019.06.14.21.02.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 21:02:14 -0700 (PDT) Date: Sat, 15 Jun 2019 09:32:10 +0530 From: Hariprasad Kelam To: Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers: firmware: efi: fix gcc warning -Wint-conversion Message-ID: <20190615040210.GA9112@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below warning drivers/firmware/efi/tpm.c:78:38: warning: passing argument 1 of ‘tpm2_calc_event_log_size’ makes pointer from integer without a cast [-Wint-conversion] Signed-off-by: Hariprasad Kelam --- drivers/firmware/efi/tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/tpm.c b/drivers/firmware/efi/tpm.c index 74d0cd1..1d3f5ca 100644 --- a/drivers/firmware/efi/tpm.c +++ b/drivers/firmware/efi/tpm.c @@ -75,7 +75,7 @@ int __init efi_tpm_eventlog_init(void) goto out; } - tbl_size = tpm2_calc_event_log_size(efi.tpm_final_log + tbl_size = tpm2_calc_event_log_size((void *)efi.tpm_final_log + sizeof(final_tbl->version) + sizeof(final_tbl->nr_events), final_tbl->nr_events, -- 2.7.4