Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp483649ybi; Wed, 19 Jun 2019 02:55:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzm4C1Mevi9usD/YYisLTU6qGt+dgMt17x+ngW5ys4uw1kbNw1tMkvDRJEjSFLrCH5MezO7 X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr10555550pje.11.1560938150571; Wed, 19 Jun 2019 02:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560938150; cv=none; d=google.com; s=arc-20160816; b=m5v0jwA7LXDnOtfoY0YErn1NTcM16RWznxY0QFAdzpt+Uri99PmWzBdN0ziimKR6/+ F+AJtq/HLF0oWCt6h+Pi3Ofmo6Ws9xlSqvu+s2Rga1opey7prqB3590282C9wrg5hoet FSelfLHQmNXOE8q+dzKGBo/kq7KXejSZjfjhuK9GytSHEXZaC/FGa9F8pGB0KgHBK6s7 +u/y6JErXLKoCIrdQeul8C5zAx625EFY/IAOHqPkUa+s4L5ExqPN8s7p3c7K9B2zh5oc uYKz5TSLs9q5SihTXrc9P7qHgKiDIi6ECNqK9Fvl/csZMtbTr5dbpHfofeUD6hO7biOA 2mdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NOAHJ6UJcXUgY0jPOCunNfj5a/meWoc55ppSw19pMJw=; b=QYADuH+w0qKvbakDQuKMB2Mc4/r6fnqE14pDHdGnJ9G2QXFbIdjP0L5seZRhCqttic 9mQi6EmGb26q7IBSQW5MdaZq2kJvn+quWoIEyIX5Mucz/LbyCf6iBi9SUkh+28C1oGOY 3DNlDJDe9RkTnHmF+7Yg5nT5QgWmJOtrh7CuJ0peg3Zhpx0HkhLKQpQ3vbd7DirHV+Rg 20iEAbvTWUC1DdLu/oayEBDYidFRp8DZLBstoQ0zPN40p1pwaqV4B6GolEecyKcr78ws pqD79t7RL0VWeXQlBVydfFAO0vEOq7plbuZOF5jLbLLC6K0XeJ3dpDGWZBsjzFCTjlOz bw8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGE0xIN1; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si2551003pgv.303.2019.06.19.02.55.35; Wed, 19 Jun 2019 02:55:50 -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=@linaro.org header.s=google header.b=iGE0xIN1; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731105AbfFSJz0 (ORCPT + 99 others); Wed, 19 Jun 2019 05:55:26 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35078 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbfFSJzZ (ORCPT ); Wed, 19 Jun 2019 05:55:25 -0400 Received: by mail-io1-f65.google.com with SMTP id m24so36837089ioo.2 for ; Wed, 19 Jun 2019 02:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NOAHJ6UJcXUgY0jPOCunNfj5a/meWoc55ppSw19pMJw=; b=iGE0xIN1mnywsd2Ce9XydaQG42uFJVo1Fa+IZlogrgNPhixIiWWhYhymIB7etaoEpb l+e97WPf9990nNcy6IpRVWoEb9DkjiD6cKYCIah98nQeNIaH68oYqHRSpke0+NSTMMXo KWZ7n1PPMoOzwCWUP58CEHIFKULymNRzLQVCjuiAbXjapCSFJ2ac6D94aLkgPFn/uYpU q6CFuiHP31HNHKFFv0p7KwXpQX9CtjGg1stHcPgjO7707+T4hr4luSJqSJ4CWPKkY201 4GEG4agouZwtYoKwJQqEeartWFSHACEyaX7y1CVp7QTUa+3ZTHDyxb+hkRzEHNWMeDTq CJog== 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:content-transfer-encoding; bh=NOAHJ6UJcXUgY0jPOCunNfj5a/meWoc55ppSw19pMJw=; b=uQuD+A3n8O0P2xVVdbfQDHEnzJYi25C5LNxkJHnhlJMN5uiXaHm5RAWimR4tLhGE1u chRw+5DnIuK/HtUjdum1BXNfuYXlLMje+BLqr0+ovrxxw/DxXnV/dy0GFddP4J5KNn/k zIO+Uz1H3o/0h0IvP6NplwSjvn31te3O+MXN7pDWhudXlUiFKTyeWOTdt+DDKQNS2Eyx CUSGR3jpSBad0u+8hjWkqAI4D0v1lYKyVoK83cpFu2JS3QrcsBEQvodoc4wKnOSeGE2v VXySggFUWZNntic/WXnXGXKrcfCob3awV1rBhn/17BK4LPzN7rRZkxJGnMeOhAlmzAaO 7cgQ== X-Gm-Message-State: APjAAAWGJkA8OUVMoBM+R0zx0cKTJ+8BLpdC2nowjE0tIyNcIh3mXf17 Xx90F2tdoMeWjXUxjpLX350RPdyFiIspL61nAuLU1w== X-Received: by 2002:a5d:9d97:: with SMTP id 23mr10934397ion.204.1560938124836; Wed, 19 Jun 2019 02:55:24 -0700 (PDT) MIME-Version: 1.0 References: <20190615040210.GA9112@hari-Inspiron-1545> In-Reply-To: <20190615040210.GA9112@hari-Inspiron-1545> From: Ard Biesheuvel Date: Wed, 19 Jun 2019 11:55:14 +0200 Message-ID: Subject: Re: [PATCH] drivers: firmware: efi: fix gcc warning -Wint-conversion To: Hariprasad Kelam , Jarkko Sakkinen , tpmdd-devel@lists.sourceforge.net, Matthew Garrett Cc: linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (+ Jarkko, tpmdd, Matthew) On Sat, 15 Jun 2019 at 06:02, Hariprasad Kelam wrote: > > This patch fixes below warning > > drivers/firmware/efi/tpm.c:78:38: warning: passing argument 1 of > =E2=80=98tpm2_calc_event_log_size=E2=80=99 makes pointer from integer wit= hout a cast > [-Wint-conversion] > > Signed-off-by: Hariprasad Kelam I think we already have a fix queued for this, no? > --- > 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 =3D tpm2_calc_event_log_size(efi.tpm_final_log > + tbl_size =3D 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 >