Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp871740imm; Wed, 19 Sep 2018 08:12:51 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda6441s9+ZYk6m0W4D4y+dKyQZuAoNmFnNi3a9ZVP8QzM3x2/RXhQV99JIgXuFOGTHzW8hC X-Received: by 2002:a62:49d5:: with SMTP id r82-v6mr36433521pfi.245.1537369971351; Wed, 19 Sep 2018 08:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537369971; cv=none; d=google.com; s=arc-20160816; b=DPzNcx3DiAoZNbn0iGwrG4KTC6pICLIv3tAvHtnWmOsMc/jsdqXWdYjpSAgWdM8LZ7 CPapzwP9agEawSW7w1JelPQvM4s/kkIIOrVvzJey7WEIK7+V2jjFeIUHTwYnlTzmRtvU XWedbk9uDzSWHH7nH0Kwiog6Z276IUpYhxJTQPnfNTakFicGAZjMCzqCQquyc2vxzpu4 +Rh9wIjxRetByuS+EEfu+Zxd3VAquc+H8atZct2IpbOBhMh6jPhhR11wWsB+ntsEgSJy vUmBDWaSMFNriw7lFc0h6GP4m3qhL4OrjYKD5VenWQtUnPp/TrzDHWn+uK2TbiVtkHtW uPvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ayX5NQLEzZ3MKq102nMfRC2f2RjoiZyqusawwAUtP+c=; b=suyhAGkW7UzzFO8LhR1SiPGTrDpFdGS7uIIitpGIfJuoZsMshhT2u6Xgml+ef417kd vZriFBy1rM4mE6Ty7L680T5CH9mb5W9OIS4Jp0LrZtWyglyBoc1wA6y975hQklns2YMp 2UbFFM2LqP558Ow7p2Wr4nd3BUmddxl/7nxQvfTwDszeI8Xd76P6Ialn32zVwsbZ2j+O VKFXKIOBFcbRUsSwKpcE7GhAbh0DCPskEExwAhtLsiWh8bo3uJlfFlaOBvVKpdyAIiI/ E84bxWn+2r4kMo4J5qXQiTS0uUlZcDned41SYjqRqbUZeJly3EQBDXMOTqW6xspsIRee gEFQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si21547549plz.485.2018.09.19.08.12.35; Wed, 19 Sep 2018 08:12:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732472AbeISUtO (ORCPT + 99 others); Wed, 19 Sep 2018 16:49:14 -0400 Received: from mga05.intel.com ([192.55.52.43]:15515 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731221AbeISUtO (ORCPT ); Wed, 19 Sep 2018 16:49:14 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2018 08:10:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,394,1531810800"; d="scan'208";a="84862452" Received: from pqueiros-mobl.ger.corp.intel.com (HELO localhost) ([10.249.37.13]) by orsmga003.jf.intel.com with ESMTP; 19 Sep 2018 08:10:46 -0700 Date: Wed, 19 Sep 2018 18:10:45 +0300 From: Jarkko Sakkinen To: Tomas Winkler Cc: Jason Gunthorpe , Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 14/20] tpm: tpm-interface.c drop unused macros Message-ID: <20180919151045.GG31076@linux.intel.com> References: <20180918093459.19165-1-tomas.winkler@intel.com> <20180918093459.19165-15-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180918093459.19165-15-tomas.winkler@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2018 at 12:34:53PM +0300, Tomas Winkler wrote: > The code movement left some macros unused. Rewrite the long description and the language is horrible. The code movement maps to nothing. Should be something along the lines: "The migration of the TPM 1.x code has left some unused macros to tpm-interface.c. Remove those macros." /Jarkko > > Signed-off-by: Tomas Winkler > --- > V3: new in the series > > drivers/char/tpm/tpm-interface.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c > index a8f8e0bcb434..358ef5bd601e 100644 > --- a/drivers/char/tpm/tpm-interface.c > +++ b/drivers/char/tpm/tpm-interface.c > @@ -33,10 +33,6 @@ > > #include "tpm.h" > > -#define TSC_MAX_ORDINAL 12 > -#define TPM_PROTECTED_COMMAND 0x00 > -#define TPM_CONNECTION_COMMAND 0x40 > - > /* > * Bug workaround - some TPM's don't flush the most > * recently changed pcr on suspend, so force the flush > -- > 2.14.4 >