Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp815480imm; Wed, 19 Sep 2018 07:21:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYpswRW+/iV79zI9PmfWrr2+q1dYDd6LHNYSkCIi4qo8WMuJpGpcKeQFrXYD33W3aqx8+XV X-Received: by 2002:a17:902:bccb:: with SMTP id o11-v6mr34557572pls.167.1537366892178; Wed, 19 Sep 2018 07:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537366892; cv=none; d=google.com; s=arc-20160816; b=Awdcicxcm7IhBCFbhygud8FWYuI2fYxL4pBNzsmvHNbK8POFxAqLZ/05ufLip35AM7 I1/3oJP3202s/hwe2+JFp3h2uYr2R7sbtjPhDmrZ+gT9cMu4STv8ILD7ints2iYF+K1h 0a+li1BH1B8f5UAnP9gokYsQJRG3JaYm2rCi0IpDOjwfIEfqpWHipxlk/Jc69XFQct/0 c2A0076mIN1GW612L+lHHDj0zuVd3GlAQ3A1480MfuvRgaQEaH8SVXkj6tyV5LEUK6hP j2/Fd5SL+zVDYYbthYKlYwjzaHoVxYY1BTrJV53wZKfX2AThON6+lUU7EImqnm1KFd5R Lwww== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Upk6NU0BWdgAL8y9EwGgSRjLN+ha9i4Qmoakow5b9FE=; b=O0qzTVdlVIAltK9sQ0zAwI32kNq4OWRJb4FRm7mIXy6MK1+UXqzPax53uGtC/exRBN jMmhxtKuX6ZmDQNj+qBG2S+eJ02Yg8AzbgU1UI5cGiho/jwvXODtdrnrRM8/JrWNYVqt +LU8Dcny5gNRHI9gRcemSviGTuDohY/2S3AL8t3mmTEQZ5/J6Qg5flLbfvPoJfSoxJ/W S+1ppEtTjz3qOMjekp/P49thcc91QFM3HSTkh0cmFGUZkDJdV0RHpb/35YKL57DKqdtD h6OmjNAWD3n7imSQjbGMtnzSwEcrT/QX/5rq3JkrNnZwJd+QhY8TWHztqpyW9W6kkxM0 6r7w== 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 g185-v6si19227676pgc.151.2018.09.19.07.21.16; Wed, 19 Sep 2018 07:21:32 -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 S1731889AbeISTrN (ORCPT + 99 others); Wed, 19 Sep 2018 15:47:13 -0400 Received: from mga09.intel.com ([134.134.136.24]:61655 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727675AbeISTrM (ORCPT ); Wed, 19 Sep 2018 15:47:12 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2018 07:09:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,394,1531810800"; d="scan'208";a="258579220" Received: from pqueiros-mobl.ger.corp.intel.com (HELO localhost) ([10.249.37.13]) by orsmga005.jf.intel.com with ESMTP; 19 Sep 2018 07:09:03 -0700 Date: Wed, 19 Sep 2018 17:09:02 +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 07/20] tpm: move tpm_getcap to tpm1-cmd.c Message-ID: <20180919140902.GB27854@linux.intel.com> References: <20180918093459.19165-1-tomas.winkler@intel.com> <20180918093459.19165-8-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180918093459.19165-8-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:46PM +0300, Tomas Winkler wrote: > 1. Move tpm_getcap to tpm1-cmd. Rename the function to tpm1_getcap. > 2. Remove unused tpm_getcap_header with unused constant > as this functionality is already implemented using tpm_buf construct. > > Fixes warning: > drivers/char/tpm/tpm-interface.c:452:38: warning: ‘tpm_getcap_header’ defined but not used [-Wunused-const-variable=] > static const struct tpm_input_header tpm_getcap_header = { > ^~~~~~~~~~~~~~~~~ > 3. Drop unused TPM_DIGEST_SIZE. It's already defined in > include/linux/tpm.h Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen /Jarkko