Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp833464pxy; Wed, 28 Apr 2021 15:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCeHFHoBzZRpT9eInd9vBIeXHVTThlH54CscpQpykAqhMc6gX3vMIElqm8NDyWo+mT1SQu X-Received: by 2002:a17:90a:4410:: with SMTP id s16mr34912223pjg.203.1619648265228; Wed, 28 Apr 2021 15:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619648265; cv=none; d=google.com; s=arc-20160816; b=I/QP324PleCft7RUJb2EfknTaRYf/Ra20F0Cs7+TWMXvWSyK9uOsgU9+GG/G2hxS+u chLgyW2Q0XFOacWG6oQRxsFsYhNCSB4mb95GxQ1TO2wSlvdqDsVmDaH4zYRBFlG8WV4C yRPFkcSZGMlfZO0hhlWpOFxdhgSrJgIyEjmQv0QTmmv+PPyDNHgYp4CM9FF+8dObBTaD vJnECIoPKDlVgSbZBPqv5Ph4jdotgtm0CjGbvRR9Z3q/D6eriUr6Za4C06GpkPSp7P6/ DMR310aeSNjltgkOjD4y7cuMkDLeIau43uNGkbHV6fiSjQqB4FMgStIuS4zLByvx+9T4 zDEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=VgbcSvcR1Ml6fja7kcjG7CS9QgO8edE4Ivt1dg5dXOk=; b=ANvUxyfasMN7a59TDRpqCyhgdfRC7X9KuSzCKVCNZ0LyOHBUE+Zn8PgQ8po/rz+4j2 4zZnkb1ntboUihCaVI8iN7HIfq6T6xlJ32Cfg6HnmYEecA5bJADZoqOnPpWR73ZhOgY7 WVgaJ8xDTY4hQ0/tt/M037K82/lyJwQnOl9oIsKVMMLmbCpENVj3VfzY3fKy7Le5iJxV YPLv71AydvvUNHr+UoLfLLR384jM0FxC+PkSZxzy2UMwpzU52q+fzR183yemuiSLmHqw aYF1qTq64VOVDVJJ97FLQskqPETbrvXhf5FVTfd+ob6N9WVhn15I6Js9Af5arb7AwT7C PWEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=SfzHNMxm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk15si8169477pjb.79.2021.04.28.15.16.55; Wed, 28 Apr 2021 15:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=SfzHNMxm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbhD1WO0 (ORCPT + 99 others); Wed, 28 Apr 2021 18:14:26 -0400 Received: from mout.gmx.net ([212.227.17.20]:33903 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbhD1WOZ (ORCPT ); Wed, 28 Apr 2021 18:14:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619648005; bh=VgbcSvcR1Ml6fja7kcjG7CS9QgO8edE4Ivt1dg5dXOk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=SfzHNMxm2KZJHKxtF0nQ2n/klF3LBuD1QEZLuE9/vPmgmyH0ajrt0oYWe52VYio/B qnFPkZ/7QqGXukRSu4voz86dB9h92FM5XusRyVFXy1WcdKgGj6QmiBRGz2eLtHpxy+ UsEol2uLgbQylcW4X2bqb3EIpoMewPoM0DY1FhfI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.51] ([78.42.220.31]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M2O6Y-1lbJP90jp0-003ty3; Thu, 29 Apr 2021 00:13:25 +0200 Subject: Re: [PATCH v2 3/4] tpm: Fix test for interrupts To: Stefan Berger , peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: stefanb@linux.vnet.ibm.com, James.Bottomley@hansenpartnership.com, keescook@chromium.org, jsnitsel@redhat.com, ml.linux@elloe.vision, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org References: <1619394440-30646-1-git-send-email-LinoSanfilippo@gmx.de> <1619394440-30646-4-git-send-email-LinoSanfilippo@gmx.de> From: Lino Sanfilippo Message-ID: Date: Thu, 29 Apr 2021 00:13:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:815WgyqZhVu2kkp9EwZEODigR0/YyvsGaPFMjrAjar6H4C+1h/6 P4M+7mPK/Xte91ZwiPW5ZAbZeTAYKrX+cgDQS6hml4WQ1tA7p/FvNMzfiTf8Dzxy9uTLH4/ 7Xsi5WQVBv8liP9w6LJVBEQG+WfgHVY8zhhDbDWloqeJKHoNN5u3fOGxxp8ERwjnLEg5u3k Y02M/DgUBJ2/zVco2dM/A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:E1YwGNTCWCI=:oFgcvmvS4cAqQjFntDfWiF 4CqSn6BEpyND+owTJPXr2Uga9QDBe79cSBZvYMpGFjvqroYlHyqvvCtSK6F9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UySAxjNEJPT0vb8hnTvghtgYO81al xhUFEAfbs1dKJijFvVWCuUC0UjwTdSbOBY/sT8af5U4uijfMO/k1JYl38OBZW5D04ng8t6PlU UNUGSLg7JfPrnRiVc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26.04.21 at 16:49, Stefan Berger wrote: >> diff --git a/include/linux/tpm.h b/include/linux/tpm.h >> index 55debe6..e9882acf 100644 >> --- a/include/linux/tpm.h >> +++ b/include/linux/tpm.h >> @@ -126,7 +126,7 @@ struct tpm_chip { >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct tpm_chip_seqops bin_log_seqops; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct tpm_chip_seqops ascii_log_seqops; >> =C2=A0 -=C2=A0=C2=A0=C2=A0 unsigned int flags; >> +=C2=A0=C2=A0=C2=A0 unsigned long flags; > > > This doesn't seem to be necessary. > The bitop makros require an unsigned long, leaving it as unsigned int resu= lts in a compiler error: error: passing argument 2 of =E2=80=98test_bit=E2=80=99 from incompatible = pointer type [-Werror=3Dincompatible-pointer-types] > The rest looks good to me. I remember that last time I had tried to acti= vate it some laptop didn't cooperate and we ended up reverting some code, = but maybe your changes fixed all of that now. Though you may want to 'prep= are for unforseen consequences' :-). > You may be right with your concerns and I will try to find some more hardw= are to test the patches. Thanks for the review(s). Regards, Lino