Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp305082imm; Tue, 16 Oct 2018 23:51:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV62VH6znyPaQAjZBhJKsZEWi7IqGo5WGaFo9IDXJE3s8UD4910hvzd6DHWu4fVxcdNaoOa4u X-Received: by 2002:a17:902:7897:: with SMTP id q23-v6mr25101214pll.54.1539759105564; Tue, 16 Oct 2018 23:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539759105; cv=none; d=google.com; s=arc-20160816; b=R18VfEaRwzaAHSYS6tJUFS6ygcc/TFattSD5jqtvk98dPylbcwsvWYaUOXWEfsTKxM y+7FeLq58IqMQKSnBU8gjzInkZgNvwWnP2xe7RR3wEGI4ioxGBGfiaJC7cbFzF/CqqGI +WfYMedAXXCXMGfOeoEtvAZfXMZv7e0TjxmqdZ8vHFVS5Dqhm3qXrPnQODTysF7f4uLm NZFGQM1dwdGRRHRA2FDM9FOzjbIB6IDjdD1KXRxN7TzYP408Q7XQrYMZ1IFtXgNqjbff 7rCKfZMxVWppdP0CRSoB+SUrnxK03/2Ii/jhVcvlSseG/VquGmkf0mX2aueDXW6LM4gb 9Pdg== 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=05THII8F91TipbLNb+Ke8UJh4rWDZkaGqX/ILdPDJLw=; b=SVeFgEw1Vqb0ci+T6FOoBqcwVP/LXiAb8CqQzzIZ2c4km6wizWb10q47EPoHritABd RiWIYMcbaWfVxpYur1RD4UHv7rz+PTv/Mzl215v40JHK1W5+fU8zscTXjYaXcFFCl8iw U3+ODrVxvREgvYcmlZmpn3mqupSOsJaAK+RJi7ORG22iOLNWkxukSN6zMDOFyAp5n+em mhv3FHnsYjUggiVskksTSDwfKyIqbmhxcqXC3+/Y8XsgBMxGUmwCYtrf0LXCLl2unGkx ltshdFiYW3RFvL691JnTDbiypGx4PU2kr7OB7hNROpUDrJkr3qbmfMyxSxDN7UKze0Lv qlNA== 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 n7-v6si16630310pgb.171.2018.10.16.23.51.29; Tue, 16 Oct 2018 23:51:45 -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 S1727740AbeJQOo7 (ORCPT + 99 others); Wed, 17 Oct 2018 10:44:59 -0400 Received: from mga18.intel.com ([134.134.136.126]:4116 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727570AbeJQOo6 (ORCPT ); Wed, 17 Oct 2018 10:44:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2018 23:50:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,391,1534834800"; d="scan'208";a="79371258" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by fmsmga008.fm.intel.com with ESMTP; 16 Oct 2018 23:50:45 -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 v6 13/20] tpm: tpm-interface.c drop unused macros Date: Wed, 17 Oct 2018 09:46:06 +0300 Message-Id: <20181017064613.19746-14-tomas.winkler@intel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181017064613.19746-1-tomas.winkler@intel.com> References: <20181017064613.19746-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-V6: Rebase 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 69e007a198ce..ba50554e34d3 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