Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1283485imm; Fri, 28 Sep 2018 15:36:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV63AXt/VyJ0NWSN3PaM7KQ/Bo8V1pj7798UB4BRICiJtdudu9Zqs/fq/KwUhqecSOU71kS3w X-Received: by 2002:a65:4001:: with SMTP id f1-v6mr565712pgp.228.1538174208117; Fri, 28 Sep 2018 15:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538174208; cv=none; d=google.com; s=arc-20160816; b=AjWE+7qk2ojteu98355WGk7cAoMZMgSgNerdiqK2/2hz9bo5vZaGXXqfbznCc1Nc34 LeG4oPd1U6gLRGQqb3bmQJvYQ+8X3ZVi+vJAVXgVq6WSFH5JxluoIViahdbmL/IxpElm u/niSw6MSpArpddNWMNqVVdEYbfjC5sfvk3/TYbcyPsXEUgysgeHlmGU1QXN6BZC5onh J+wA2DhpojliY/q0Y9hhjxixTxsJFEeZgvTmUuvbMTEjrNusWnrQ8cjjDGfdlmKpJObL YN40LgBnhKGzhjOgbj9QoOIIRE/qg1XLjltbcLnsfQWMkENGI42W1dNhAeOI3RWMQ6md 148Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=1c3w40fZlof0L2Gm+4QYN0Rjiij+uCCFiDwxFGoUA6s=; b=JX8SbB8X7Zs3hWWnHQELyCoySL5ALj4fqjQsbGHRh+PvSQTC9GVxkZbwFtsUHuVS18 Cu9W7x4D1ZdrhQYwkGCGWThOzJFPcn90uJkodYyaMynuQwAcCCwJI2mmuY93aS1Vf005 INyVsg5iAeQkW6kvvtRitCh4l5of6BjSbX5hY6hH4jOJt2ko82HK9084Gg0X2XhLKain Y7HfvT/sjaoybMMeha+NFykXUS631nND4GzhaMsUhcPS3Avm5gVwRu23fWy7LWywP6zl maJA5gr9JA/7m8fC5INYoYm2/wrZHlKPUuzEKad2ULaT8SAPMR8kiuxQprNmtBYuoaZM wN5w== 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 v20-v6si5969142pgk.586.2018.09.28.15.36.33; Fri, 28 Sep 2018 15:36:48 -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 S1727637AbeI2FBK (ORCPT + 99 others); Sat, 29 Sep 2018 01:01:10 -0400 Received: from mga11.intel.com ([192.55.52.93]:9469 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727551AbeI2FBJ (ORCPT ); Sat, 29 Sep 2018 01:01:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2018 15:35:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,316,1534834800"; d="scan'208";a="267880278" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by fmsmga006.fm.intel.com with ESMTP; 28 Sep 2018 15:35:15 -0700 From: Tomas Winkler To: Jarkko Sakkinen , Jason Gunthorpe Cc: Nayna Jain , Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH v5 14/21] tpm: tpm-interface.c drop unused macros Date: Sat, 29 Sep 2018 01:30:28 +0300 Message-Id: <20180928223035.14471-15-tomas.winkler@intel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180928223035.14471-1-tomas.winkler@intel.com> References: <20180928223035.14471-1-tomas.winkler@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Jarkko Sakkinen --- V3: New in the series. V4: Fix the commit message. V5: Resend. 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 fb142e229f95..98f9a0bbeed9 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