Received: by 10.192.165.156 with SMTP id m28csp1354557imm; Mon, 16 Apr 2018 20:03:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+dlRy1stVDHE0hBv4xPjm8OD0tCOC0qnXGklkBJXQt6tkTNimvZHGUVuil/V4P5QIb128w X-Received: by 10.101.90.67 with SMTP id z3mr332510pgs.46.1523934208032; Mon, 16 Apr 2018 20:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523934207; cv=none; d=google.com; s=arc-20160816; b=KLseEBXEmsgTiJkjWCFl5L/oadUeYBkspcjOxaZRDhY/+9LOCDS0MShwZjTeH6R2dx ND/5+Gq9SyW/Qi4jXtyXo2LJCw6iZ206kMcGy7M5Q5Yg87sRrcO9Du6l9/sNnZlJ/1TE fPfWWX0deGhHUbQKNtdpzF98uzR8MoC4FOzJTyvXHs8QY4MjGJZr4Am1kumizLoVKvYl BxcW0tLxsKgw0VFY4KqSqrmWBVZHjy14MQeLTX+ibMOcUhDL5WqpOfuXpwd1tNQcSCxe CM+baPmU+9bUw9ilySjRS/YCq5psfJRnAWSxz7rVIFUwX0nDfYX4PW7M44DGHGz5xcWG 0b9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=JO9BEwZcGKM3TPmqzlDnO3fxW/vBoLUVv9YsCtmcYKc=; b=tJEeBKqls2FjtyXG/UW9dNp5Y3BcYq8YkftqCRXOGU+xmVnRtRpGQucB3ocSgwZakP fmLF3S3ORu31TIuRYr9aR4fzEShyPCm/+TrwAX0UjjfzlnfXEsIcNSF/tNXsVPJ+qP/T ydKToGyZEaavlG/C5NsOYx9XvIFxaalLyrvhMg5TMaGAYVF0tG7aVM3YQ8Ucj2OFIimn 3GMyWxIKaLLTsKMR7oy8MroHUQT44Dakityoz/qcoSdSKehKfiJoZ0LU3e3PwITMN4Sf D21W6i5s7xaihOj8TeDV7wVVw67A2HZXOH0HGZ6BkOxiO3ufzo0XSxvKI3lwSDI9UeQJ 7yJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=KOZJgUsh; 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 z5si10570118pgu.377.2018.04.16.20.03.13; Mon, 16 Apr 2018 20:03:27 -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=@ziepe.ca header.s=google header.b=KOZJgUsh; 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 S1752201AbeDQDCH (ORCPT + 99 others); Mon, 16 Apr 2018 23:02:07 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39527 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751193AbeDQDCG (ORCPT ); Mon, 16 Apr 2018 23:02:06 -0400 Received: by mail-pf0-f196.google.com with SMTP id z9so4662762pfe.6 for ; Mon, 16 Apr 2018 20:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JO9BEwZcGKM3TPmqzlDnO3fxW/vBoLUVv9YsCtmcYKc=; b=KOZJgUshng7aBZz22/dovlSclVD5LUVFS3U34FP1WA7L2Jt25r6AWgtlZODW49WW5p H3mLxLnql7jxIMfPCzVTgQvuYg9I3Z3RrLVZrGViJ5KVCK7WBgEb/Dd7+hRJNlkn1+n6 WWP6K1cPMbXBD+4iEzX3JJxDKwB5JpNjwBxMBmwvnStiGMiW3PF8m84e0RoXCSIqkqzW Dl8uhmqdMqfsraTPrkSvwle49Vi/ySEl5Igpuc+CjlqjwOOnwER1xkv9sMAKgQwQRwBB bmSfL/ERMB3vXfnqxiJkfi08kz5SMI4J6lInRTjxOhkYdqsaO+IKu4LqG2W1Njz92Oo6 zwSQ== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JO9BEwZcGKM3TPmqzlDnO3fxW/vBoLUVv9YsCtmcYKc=; b=EGOmriRJM6RLmk+/mA7TyLJh4WTeR+rUHjiIGXjqeCyfVuLGJYrjV5Vt2eiSYXZbkL y0jQAwsqd9IvsNLqRC3T5z+SLMRlYyFwql2ZlaUyRihsU2AqTwuj3Hrbb0bS3RtoDSAx FC0RS3F3rVRx4MIvRAChXrNeu1vLCFLy2jCPDQn+ENo00yxg+6d2TDa5quAaOMuN6Seg mA0zlDYo4JT1RQRISrRRUByBffKcvDSbekO75HJa1CFIqEZkHhW8NEtuX8ojiDskbk4Z 9JkCTS2k/ay+LvP4tnLariXZR0L4NsaQTEinNCr2n7iqK3cm37D6wkjMuJyq6BNP4NE0 Sj5g== X-Gm-Message-State: ALQs6tCUZRTBdbOxgBje9Bl1zAH3+FXCB2vpW0Rruh1KXOdnJ+DWmv9h tnKCLQb+njpOQ8PLycR85Yi2tA== X-Received: by 10.101.91.73 with SMTP id y9mr296848pgr.93.1523934125661; Mon, 16 Apr 2018 20:02:05 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id m7sm3170318pga.46.2018.04.16.20.02.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 20:02:04 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1f8Gsc-00082B-Ek; Mon, 16 Apr 2018 21:02:02 -0600 Date: Mon, 16 Apr 2018 21:02:02 -0600 From: Jason Gunthorpe To: Thiebaud Weksteen Cc: jarkko.sakkinen@linux.intel.com, nayna@linux.vnet.ibm.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] tpm: Add explicit endianness cast Message-ID: <20180417030202.GA30624@ziepe.ca> References: <20180412101350.210547-1-tweek@google.com> <20180412101350.210547-2-tweek@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180412101350.210547-2-tweek@google.com> 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 On Thu, Apr 12, 2018 at 12:13:47PM +0200, Thiebaud Weksteen wrote: > Signed-off-by: Thiebaud Weksteen > drivers/char/tpm/tpm_eventlog_of.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/char/tpm/tpm_eventlog_of.c b/drivers/char/tpm/tpm_eventlog_of.c > index 96fd5646f866..d74568d58a66 100644 > +++ b/drivers/char/tpm/tpm_eventlog_of.c > @@ -56,8 +56,8 @@ int tpm_read_log_of(struct tpm_chip *chip) > * but physical tpm needs the conversion. > */ > if (of_property_match_string(np, "compatible", "IBM,vtpm") < 0) { > - size = be32_to_cpup(sizep); > - base = be64_to_cpup(basep); > + size = be32_to_cpup((__be32 *)sizep); > + base = be64_to_cpup((__be64 *)basep); Er, no.. change the definitions of sizep and basep to be __be Jason