From patchwork Fri Sep 20 18:32:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 11154777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7473C14ED for ; Fri, 20 Sep 2019 18:33:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5527021907 for ; Fri, 20 Sep 2019 18:33:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="IfK8t/nU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406623AbfITScs (ORCPT ); Fri, 20 Sep 2019 14:32:48 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38499 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406616AbfITScr (ORCPT ); Fri, 20 Sep 2019 14:32:47 -0400 Received: by mail-pf1-f194.google.com with SMTP id h195so5068990pfe.5 for ; Fri, 20 Sep 2019 11:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nP7l7HPSlZ4edHh/gvYjfiqgqZG+4NVrpc/qCXzCjyo=; b=IfK8t/nU0xPo02/ZMcqNy5ARLWAwNxBsqvy4wqEvgbiXc3DM/mBx9JIMecP35NYtLY d6oZ4r7PnCsXhl9Pb0b3d7dlH/m5Hm9IPYMV/EiNhfkR+LcbVpPuYCyqERLt8fUHC6q1 3StMkPgqAKCAu6i77204oJx8VRRPsEZFB3aLs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nP7l7HPSlZ4edHh/gvYjfiqgqZG+4NVrpc/qCXzCjyo=; b=eecud+g4IuZSrHMUjbugx/CFw+2HRjlcqDcAe+geI7P178Qsn04ttrTTriss/keBwJ iZlaE8TUQhV8OyuJGZSUbvLNRWW8m7mgbzUozXTGCxmjxIKt7cpvUBjTL3XO26c/hbRa zqgrrQT0Ozh+4HqcS1ZfbUvBxY4pP78w+mSkUocNQWSTc1AW/TOxy3kVA8O6rgBDNjib zdOnbaVXnT06ynJYMnvLkggBpGni1GcJliV6HoEYSZrcArwAIKPHs2z4FMYEXXdZe+HF MSvG3K7Pbzt/EMNQAyUECL5l8wU67bG8VTCVS/zrRdlo16YIoIi+k4hY/72DJSPyggte 2kzQ== X-Gm-Message-State: APjAAAVKaye4DsPibBxiAVEsRzJLlzI1uFWghbTf2hVg01ntD3qaHFQc ycHnjp3R9qWUl2gYW1+ePBeXpg== X-Google-Smtp-Source: APXvYqwvjlTaUG+/BiPqEzp4X98x1fEsnlQky9Xq/O2jses1JwEdzhOGp2Ea852+u1y8xsoZzPxwQA== X-Received: by 2002:a63:1904:: with SMTP id z4mr7163391pgl.403.1569004367160; Fri, 20 Sep 2019 11:32:47 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id b69sm4436072pfb.132.2019.09.20.11.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 11:32:46 -0700 (PDT) From: Stephen Boyd To: Peter Huewe , Jarkko Sakkinen Cc: linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, Andrey Pronin , Duncan Laurie , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Guenter Roeck , Alexander Steffen , Heiko Stuebner Subject: [PATCH v7 5/6] tpm: tpm_tis_spi: Cleanup includes Date: Fri, 20 Sep 2019 11:32:39 -0700 Message-Id: <20190920183240.181420-6-swboyd@chromium.org> X-Mailer: git-send-email 2.23.0.351.gc4317032e6-goog In-Reply-To: <20190920183240.181420-1-swboyd@chromium.org> References: <20190920183240.181420-1-swboyd@chromium.org> MIME-Version: 1.0 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Some of these includes aren't used, for example of_gpio.h and freezer.h, or they are missing, for example kernel.h for min_t() usage. Add missing headers and remove unused ones so that we don't have to expand all these headers into this file when they're not actually necessary. Cc: Andrey Pronin Cc: Duncan Laurie Cc: Jason Gunthorpe Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: Alexander Steffen Cc: Heiko Stuebner Signed-off-by: Stephen Boyd Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis_spi.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/char/tpm/tpm_tis_spi.c b/drivers/char/tpm/tpm_tis_spi.c index 5e4253e7c080..ec703aee7e7d 100644 --- a/drivers/char/tpm/tpm_tis_spi.c +++ b/drivers/char/tpm/tpm_tis_spi.c @@ -20,22 +20,18 @@ * Dorn and Kyleen Hall and Jarko Sakkinnen. */ +#include #include #include +#include +#include #include -#include #include -#include -#include -#include -#include -#include -#include #include -#include -#include +#include #include + #include "tpm.h" #include "tpm_tis_core.h" #include "tpm_tis_spi.h"