Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1048100oof; Tue, 25 Sep 2018 07:39:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV60P8MzaTY7ksxHelXuDZ1ZqIFklLGw6n1rbyGVJgORY/pqE8Cihw/EkcAPYIl0djWQZswO8 X-Received: by 2002:a63:81c8:: with SMTP id t191-v6mr1368681pgd.399.1537886396522; Tue, 25 Sep 2018 07:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537886396; cv=none; d=google.com; s=arc-20160816; b=noGfYVlSodF4ioJnm23PYuPEOXhqFhmRyZTrCw8a4D35D+gesm4FnSDnfBfej/IvEe DbvCwUfKO+Lsip30TOU0Wr0F+WLzhfulNS7YcdAw9C14jH8fxyiGx/zX7Sm8DHts3TaN RsMLIMuybdJ3K6Mkksyny9pOfO8ORu2iZ7z6b6H20Gpn8oUiXsc/zXScjoPQeNmnH2cy 2mPO8kTQnFToVCF7vuyCUZZSFlY18g0j7GVaWzUQaMkv4kC8gOirXXfyLKmCcV3hxRt4 NthrIuQNWQmJn1qNkIbleb/ZeScY7BZ4+1B80nsbNZnJUbdGKzK0LYwVblTedYEhwgCO W73Q== 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 :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=DXjFN7dRM3o994xyHmXY2iyZuzNSjipWglj/Fha8Dg4=; b=BGKW5XJ7weq/HeZT0843kCyEYeecHliv2rkwKpM/WVjiJj2cJ/VmdytvJ7XBsrxWK7 uS9QUHMt05irbPmoPlBp2BwSSjoofkiwZmwirqrcaexPoxOsRVezBKptFNs849wBn3Yu lVil36gaTe9NAmptuOPQTfgqIUJ7dINrTx9wKDnsubyQAqnbRiHd50jr2Hddbyf+3tbd TROcjRbBzc0S0gP4CIJkXJRN4Z0StT41yxAdDW8Nzgeiy0O/7d2Ldy5GYARjEjSq4J7m iUyDi5TdoGXF8HDtQMx6OkrjgGRk13Mp6QGJx6YuItQWksSG+YTwXv0Zp6aJEjQhoNd6 nZ8w== 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 a8-v6si2706086ple.189.2018.09.25.07.39.40; Tue, 25 Sep 2018 07:39:56 -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 S1729395AbeIYUqy (ORCPT + 99 others); Tue, 25 Sep 2018 16:46:54 -0400 Received: from mga06.intel.com ([134.134.136.31]:27643 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729260AbeIYUqy (ORCPT ); Tue, 25 Sep 2018 16:46:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Sep 2018 07:39:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,302,1534834800"; d="scan'208";a="86416666" Received: from thomasvo-mobl2.ger.corp.intel.com ([10.252.53.212]) by orsmga003.jf.intel.com with ESMTP; 25 Sep 2018 07:39:02 -0700 Message-ID: Subject: Re: [PATCH v4 14/21] tpm: tpm-interface.c drop unused macros From: Jarkko Sakkinen To: Tomas Winkler , Jason Gunthorpe Cc: Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 25 Sep 2018 17:39:01 +0300 In-Reply-To: <20180921135820.20549-15-tomas.winkler@intel.com> References: <20180921135820.20549-1-tomas.winkler@intel.com> <20180921135820.20549-15-tomas.winkler@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.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 Fri, 2018-09-21 at 16:58 +0300, Tomas Winkler wrote: > The commit: > "tpm_tis: further simplify calculation of ordinal duration" > left unused macros, we can drop them now. > > Fixes compilation warnings: > tpm-interface.c:37:0: warning: macro "TPM_PROTECTED_COMMAND" is not used [- > Wunused-macros] > tpm-interface.c:36:0: warning: macro "TSC_MAX_ORDINAL" is not used [-Wunused- > macros] > tpm-interface.c:38:0: warning: macro "TPM_CONNECTION_COMMAND" is not used [- > Wunused-macros] > > Fixes: f72864300139 ("tpm_tis: further simplify calculation of ordinal > duration") > Signed-off-by: Tomas Winkler > --- > V3: New in the series. > V4: Fix the commit message. > > 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 6cd3aed1e190..d7059fc72c51 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 Reviewed-by: Jarkko Sakkinen /Jarkko