Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp919535ybk; Wed, 13 May 2020 17:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Xd+vuvhtnIU+OqkvBnlZjG14FO+lNCFmXClCuQE1fQSqmT15iC4gt/pz/wfhkJMUrzs1 X-Received: by 2002:a17:906:1c94:: with SMTP id g20mr1403154ejh.319.1589414969148; Wed, 13 May 2020 17:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589414969; cv=none; d=google.com; s=arc-20160816; b=SmzMn+dk6HC4/afx62HTFOqpPu069mke0bdMtmstNHGtCr3LdZTlOXj3mw2kb9gk+I UUlbK2Sf39cXIHIqSeqi5lOEAr1ZI7bHqUgY315UeKfsIjz/okegaOMvGzati86ALN4L 9xDWd1PZUwy7LuDLdP6YIDgMOvLPw3K965KPPIOGtcUlsMJwJ1c7W8rrTIr5ErqIcTsj sBVp3Ut51WaR7hrUInsn8r6IQRiGsTFbhOopyfiVFiWzB8NHx1G5uy+xWHl23rhZmBD3 UbzanRUDe/E3ZwUkQHaLYCb30pKulFsFvSK8U2LKvTNsVaj6RPKtqIHLE9gWMQ1+wQFU f4MA== 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:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:ironport-sdr:ironport-sdr; bh=w9RReWVEmuw3GkY76Jv6dDgLk4QWt+znLFEZWuawO5M=; b=C+RlBrsCSFh2Kp++umG5juCaw0wxk+VjcFsRNeOO1OO5HFtiAmcifK4DfwIiCLSRLO sC4G0GXHmZxP04vYTNwdgRl/2xq6DMwD7V+3avwqNyXmyGwpYE7A6tARLHyGx3/8oUrQ uvkA2N3hn61SfDWuo9X6XMo5aw7HaTUpf5eaEE+blKFrnZGeUdRtKwTdudypIbwMN6bu 0mtvkTYD7LAIF20eQvEGtu5cklSEokxG2Aa2gFJHxMUE6pvZbXbJ3378pykwgdXoCW+2 dde4RDM24UNHfDBXO1pGNEmHUQU72lbo41us77Stt9wQR8t/gkp74RX3XlPiTz3KYrGT Z4oQ== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y27si834041ejj.412.2020.05.13.17.09.05; Wed, 13 May 2020 17:09:29 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732861AbgENAHn (ORCPT + 99 others); Wed, 13 May 2020 20:07:43 -0400 Received: from mga03.intel.com ([134.134.136.65]:17286 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732806AbgENAHm (ORCPT ); Wed, 13 May 2020 20:07:42 -0400 IronPort-SDR: z/6vuvIViRMyvbC+kLOySFnhZ/R1tzJ1FHmDLeTRMl2R+9FF32NqzaRCYUk8QnBcXth1U9QnoZ nBMSOEhDCQbw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 17:07:42 -0700 IronPort-SDR: r23TCOmpYyBRXSN97kdMe6MfL0xgxBWDDDYDKtee2AuwtM8fg5/bX9Fz5Z3Uc6u6Xge7rBl/CI nvJtSTeH+qdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,389,1583222400"; d="scan'208";a="280675048" Received: from gliber-mobl1.ger.corp.intel.com ([10.249.38.41]) by orsmga002.jf.intel.com with ESMTP; 13 May 2020 17:07:37 -0700 Message-ID: <90215c3c313a926267abf66dcfa175dd10f6bc5c.camel@linux.intel.com> Subject: Re: [PATCH] selftests/tpm: Fix runtime error From: Jarkko Sakkinen To: Nikita Sobolev , Shuah Khan Cc: "linux-kselftest@vger.kernel.org" , "linux-integrity@vger.kernel.org" , Tadeusz Struk , open list , Peter Huewe , Jason Gunthorpe , Alexey Brodkin , Eugeniy Paltsev Date: Thu, 14 May 2020 03:07:35 +0300 In-Reply-To: References: <20200412141118.70688-1-jarkko.sakkinen@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-05-10 at 18:44 +0000, Nikita Sobolev wrote: > Hi, Jarkko Sakkinen, all! > > Thank you for your notes about commit and sorry for not copying the message > to you! It's not a biggie, no worries. > There is definitely unwanted line of code in the commit. > After deleting that one, introduced changes work fine. > > There is a hardcoded usage of /dev/tpm2 in the kernel selftest. And if there > is no such device - test fails. I believe this is not a behavior, that we > expect. Test should be skipped in such case, should it? That is what my > commit makes. > > So, after deleting unwanted line of code and making cosmetic changes (new description + deleting > excess newline character), can commit be submitted again? > > You also mentioned reviewed-by nor tested-by tags in your message. Who should make these tags? > > P.S. > Also there was a question: why do I declare exit code with a constant instead of just exit 4. > I chose this style because it is used in other kernel selftests for such kind of checks. > It is proper to follow common style rules. Should I argument this decision in commit message? > > -Nikita Yes, you are of course free to submit a new patch for review. /Jarkko