Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp706781imm; Fri, 21 Sep 2018 07:03:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbEtP1NQGSkfKzsejKud/sEgGDgdg8akP51fCYTvXdVPttle7I7jEZGOic4caUt6DBHTCSM X-Received: by 2002:a17:902:b189:: with SMTP id s9-v6mr44452413plr.188.1537538594231; Fri, 21 Sep 2018 07:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537538594; cv=none; d=google.com; s=arc-20160816; b=IU/Bkr8RH0xHst1qFe2KKrAtwovrDU3rNx1vY+rvjg0zlJek/mTJbxxnyXFl/4AYkU j58lG9E0LZdStr1uMHGVnkI5l7BH9Qs0QlRmjhqe2mKCXgJ+/diDVBx3e3s8J5pG0Tez sZCVtCvMYTCFfYmGAq4rB6BlRYZw17dZDVZgl2z/3cn87EfUirFQ7UQKLfn4gDrAzg/S C2d2iDKNHBJPMbQBI5YgICJJKVH7JZ4fliBvShzjdyQMHO1hyil1q4DvHohVa1Vm4YJ5 JccsyHLIVbvVqWcIi+z5iXKfhrRHk+baKTS3cQScZNa6TtWh8voIHK2sNqPLYCBkE0td JziQ== 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=xW+RMj+gommCX0IhOObSJ9b0/8yNAHocJ3dfCr55w0c=; b=pf906nCEXllJrs/9scA82KtWmIU/DaEXhlyws/chP/3C1JHRv8ro5sW1//TbrDz+JU 6cV3sAqOGRJ09pKCGM1SM5DLsfiyZIBr5DKl6lOq3bIU5ExiLXv0wVj5egSol/CKRThq omSpvDcYkoAM2QnZSvq40gMn8A44RgA+cJ9p1NPOTip2FKgnRNWhWSM+k+UyO6eMAA3A f3hdA4GNhIlCduWb+aU+aVG6DeV43GtMjqxAhmq/QJ56nwgRyxY029kKKLjc4Jx5vadF 1DBwtqbhd2MUOS0uvVM1i58VDg7yYmcYOX56xXvT7td1ADaMo2bYBb0AnT7RwNGK4sCI y6qg== 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 n6-v6si26066154plk.255.2018.09.21.07.02.56; Fri, 21 Sep 2018 07:03:14 -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 S2390414AbeIUTvZ (ORCPT + 99 others); Fri, 21 Sep 2018 15:51:25 -0400 Received: from mga18.intel.com ([134.134.136.126]:4682 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389657AbeIUTvZ (ORCPT ); Fri, 21 Sep 2018 15:51:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Sep 2018 07:02:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,285,1534834800"; d="scan'208";a="71839164" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by fmsmga007.fm.intel.com with ESMTP; 21 Sep 2018 07:02:21 -0700 From: Tomas Winkler To: Jarkko Sakkinen , Jason Gunthorpe Cc: Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH v4 14/21] tpm: tpm-interface.c drop unused macros Date: Fri, 21 Sep 2018 16:58:13 +0300 Message-Id: <20180921135820.20549-15-tomas.winkler@intel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180921135820.20549-1-tomas.winkler@intel.com> References: <20180921135820.20549-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 --- 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 -- 2.14.4