From patchwork Sat May 29 00:25:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 450064 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp811593jac; Fri, 28 May 2021 17:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZv8lupOZAEADVBH2TiugCjA3m+k88PbiSPBcwQAHZGjPXcn59L3KWzyvrwhkqD9f26X8/ X-Received: by 2002:a17:906:34d4:: with SMTP id h20mr8197844ejb.228.1622247925121; Fri, 28 May 2021 17:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622247925; cv=none; d=google.com; s=arc-20160816; b=YJik1gwHp/BwbmFTYctWIkaq69JipB0ysUCcG1uBqbcCOnd4s0R99/CAvOFxYzIP3v +uot0o4QU+AWHuRGVs8fiBcnUnZmsRbcmT4OUP6axk+kerwalU3po6kn17rOZn9WPGRj JEkfkA+n0Uhgawz3lXyCytiAIRiaLpnC2YbQZV/P0vTJFjWvN2Qpx9jgrDSjvy/968ep m4FPxgqwbBlua6ZhMBGE4FIKT0qUMSshYCry3YnCLgefFYbWu/7YplcTcE8SV1wwIFQJ MbmcOpAnYxhLT674R1M1zDDVIBaNjajt2jwFCiDevX2B+asly53k8onxVSkTBzPsvbgF wcJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ykno5ScqHISl5MvpMMbNruwqmEFF7aFVt3CW4PsTnD0=; b=AjuHeSKfnC3YyVbVrUAOyuJI6nPRNzqNCN6gCK3Yt6A57+or01PXUpp5qL6rqAaYJd zAyktmwhTwK8s9778GVzn2rWsxQm9/YzrfJdaOiT7TEUjYs1iKqtXOhA+Lzzt70jJtuy KBOdv/iu0zNYYFuIJNkV0Ypy38v0TkbKAnQqNt83qJLiQ22qS0H4vpyoLRfapqcpzkSn HCJ8H9wsdirSV0MT5JPI5AYy+Mq7Cr1ezaxT5zc0sMLXpLb6/sv/IL9aL9VzNbUm7mD9 VwAMbNx2QMPYHo+l2uvUZhgoi/IOfzDV2emWuHBAslETb4e53n58Xs9+eHxj+moGzHXQ ezUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLjrGFMt; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc14si5580362ejc.387.2021.05.28.17.25.24; Fri, 28 May 2021 17:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLjrGFMt; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbhE2A07 (ORCPT + 17 others); Fri, 28 May 2021 20:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbhE2A07 (ORCPT ); Fri, 28 May 2021 20:26:59 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18AE6C061574 for ; Fri, 28 May 2021 17:25:23 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id v5so7319614ljg.12 for ; Fri, 28 May 2021 17:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ykno5ScqHISl5MvpMMbNruwqmEFF7aFVt3CW4PsTnD0=; b=QLjrGFMtKLfQ7blal/P4aEXB9sZBj0Q1nPFAMnGTYPRPIjqTaL64EJ07xkwIHtnFGT CxCldIIBoBiK5R9Ime+szoKeM1QmFcUxf4/rqkDABkqSBlRHW1beCwjnyeI+DLQR224n 6tlZmnEvdb6V+k6MeqaEVK6VJD03yNCGOM9+AgKzvrGhH8kpzoLFlOJiTo1zt7CqIs8L yRjpY+DExop/G4UsBctnTTv3slEK+Fgkm6PxN2FDulHNWcVDu9Y9eabEkEUWCuvsBMKV OvnJAvdmVGBLEM8dsZLlGnkzNfDJl6LCWtj+4cJC6TyVJGt40peq//cQZx4qsoiVGgBm hhHw== 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=Ykno5ScqHISl5MvpMMbNruwqmEFF7aFVt3CW4PsTnD0=; b=H78nX4ZJ62B8S3NOdQQQrABK7xw/vGU5TZuGjc7kSeTjhPYaFhTLQuUjCwnXHFjGoQ AFg3+y0CiozWyvdgrFfkWe43V9Xuai5s2zi0cUI3mypcNFGcPANHvtRH3A4I0pLQqjMa 1hfNmGpvgw+f+1g6FR6f5Uvo0hRKXDup9W2JlvOEvdXf4OVzg768+nv+TgOuC2s8ObFu mE+WKkG8BswKOdbnpFoLB/3W6u/4Xe22ThNKTi89GnHEq4sXvtQ1eSMDVot0pCBHZcYs VtHkzQXq8Xkko6Y2PT7fD7CP6sHSoKmAkEMPUtBBmp7P88LSXmXleSwFo5WXDqhwshR0 H5DQ== X-Gm-Message-State: AOAM532PMdTax2Ps8+EShyubpP857RxI3755dwTj3ch89GYQwFl/9JSN CKwn6F75cabloICJza8pK0WVqA== X-Received: by 2002:a2e:90d6:: with SMTP id o22mr8369126ljg.473.1622247921499; Fri, 28 May 2021 17:25:21 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id c8sm701078ljd.82.2021.05.28.17.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 17:25:20 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Michael Turquette Cc: Jonathan Marek , Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [RFC 7/8] drm/msm: do include unused headers in msm_disp_snapshot.h Date: Sat, 29 May 2021 03:25:07 +0300 Message-Id: <20210529002508.3839467-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210529002508.3839467-1-dmitry.baryshkov@linaro.org> References: <20210529002508.3839467-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/msm_disp_snapshot.c | 3 +++ drivers/gpu/drm/msm/disp/msm_disp_snapshot.h | 19 ------------------- .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 8 ++++++++ 3 files changed, 11 insertions(+), 19 deletions(-) -- 2.30.2 diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot.c b/drivers/gpu/drm/msm/disp/msm_disp_snapshot.c index c1f725c0cf60..802e860cd045 100644 --- a/drivers/gpu/drm/msm/disp/msm_disp_snapshot.c +++ b/drivers/gpu/drm/msm/disp/msm_disp_snapshot.c @@ -5,6 +5,9 @@ #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ +#include + +#include "msm_kms.h" #include "msm_disp_snapshot.h" static ssize_t __maybe_unused disp_devcoredump_read(char *buffer, loff_t offset, diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot.h b/drivers/gpu/drm/msm/disp/msm_disp_snapshot.h index 327df4892a9c..402bde48a2a7 100644 --- a/drivers/gpu/drm/msm/disp/msm_disp_snapshot.h +++ b/drivers/gpu/drm/msm/disp/msm_disp_snapshot.h @@ -6,28 +6,9 @@ #ifndef MSM_DISP_SNAPSHOT_H_ #define MSM_DISP_SNAPSHOT_H_ -#include #include -#include "../../../drm_crtc_internal.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include "msm_kms.h" #define MSM_DISP_SNAPSHOT_MAX_BLKS 10 diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c b/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c index 9f61e376bec2..5b278329a9ee 100644 --- a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +++ b/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c @@ -5,6 +5,14 @@ #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ +#include +#include +#include + +#include "../../../drm_crtc_internal.h" + +#include "msm_kms.h" +#include "dsi.h" #include "msm_disp_snapshot.h" static void msm_disp_state_dump_regs(u32 *dump_addr, size_t aligned_len, void __iomem *base_addr)