From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73BD8C4CEC9 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 5376F208C3 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 Content-Transfer-Encoding: 8bit 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 --- 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" -- Sent by a computer through tubes