From patchwork Wed Aug 15 10:27:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 144279 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp659453ljj; Wed, 15 Aug 2018 03:27:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx4noQFbFgoEXmkzgAmxT7XOvjoWqJ4dFZiWBxGpLu6oJS7eIyAC1n36le2FVDpy8U7Izht X-Received: by 2002:a17:902:6b05:: with SMTP id o5-v6mr23628960plk.338.1534328878974; Wed, 15 Aug 2018 03:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534328878; cv=none; d=google.com; s=arc-20160816; b=MctdI9rzsWFwvTqqq9hiC9WqLN2KVwLHe2Mx2XgQAMQf5blnmwQn+blgCa6DBp0XOs rHLQ3NxFQPK6PEQ15cypbPGQjBM+yRnOR84tYhBqr3YpXTeBbYYIWuQL1ZLn8MlVOJDv m+OkKQzsZUvmRHx0oOOcReIMyN6Dbk70Uw64jFf190Vlz66euhxTsyOdySg5GzxF/dX3 ZBsQQZMacnvo1kKAr/3sb6zWQgVltxnzyEMGYmUfihqpceYSgKVd7zeEQRCZqUSfm4JE LWA6orOcgdjsuExTapSo5WTpkrwtP5mett3d8s09vR00F8lqx04aCTUnxWUBLxAm2j2E N/JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=t2/lbr4XfQg4jt6nK/nDa+qwkItyHVPCTm8CTjWjYw8=; b=GhaC3/cEVcn7bS9pg/Wt+1WKgsa9kFntL3URtJKG+TumEdxo+UDflj5s/a/m4gcI7E paiZgBIzGp9JLG2JyATwAmQK14dEYlfnQEPXpqTBJF+0TZsquYiJrsrm7PfHqVeyxD13 OvGoz579HSbRvoO2kx+RpKako/CLqmZM1RFyMULGgnM4cg710vPQbhZgm/UxTqhqWF1D WvBQO8AUjDgGGvG1JVBkQSYdsomk7nfDUh7ktWFo4Zk+BhmFsrA9z/1088ub5rODd2yB hwxCuSG6AeiTtLeYPgaq3//h8uu7e9SMqqHcdlPf9S6pBzs/OHU2bWLVo59zvEYaA4Bn DCjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6-v6si18897497plo.264.2018.08.15.03.27.58; Wed, 15 Aug 2018 03:27:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbeHONTd (ORCPT + 4 others); Wed, 15 Aug 2018 09:19:33 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:50792 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbeHONTd (ORCPT ); Wed, 15 Aug 2018 09:19:33 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 8A0E5CD5D; Wed, 15 Aug 2018 13:27:55 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, hans.verkuil@cisco.com, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, Todor Tomov Subject: [PATCH v3] media: camss: add missing includes Date: Wed, 15 Aug 2018 13:27:28 +0300 Message-Id: <1534328848-12914-1-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Arnd Bergmann Multiple files in this driver fail to build because of missing header inclusions: drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c: In function 'csiphy_hw_version_read': drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c:31:18: error: implicit declaration of function 'readl_relaxed'; did you mean 'xchg_relaxed'? [-Werror=implicit-function-declaration] drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c: In function 'csiphy_hw_version_read': drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c:52:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration] Add linux/io.h there and in all other files that call readl/writel and related interfaces. Signed-off-by: Arnd Bergmann Signed-off-by: Todor Tomov --- v3: Remove include linux/slab.h because kcalloc is replaced with devm_kcalloc by another patch and that include is not needed anymore. --- drivers/media/platform/qcom/camss/camss-csid.c | 1 + drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c | 1 + drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c | 1 + drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + drivers/media/platform/qcom/camss/camss-ispif.c | 1 + drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 1 + drivers/media/platform/qcom/camss/camss-vfe-4-7.c | 1 + 7 files changed, 7 insertions(+) -- 2.7.4 diff --git a/drivers/media/platform/qcom/camss/camss-csid.c b/drivers/media/platform/qcom/camss/camss-csid.c index 729b318..a5ae856 100644 --- a/drivers/media/platform/qcom/camss/camss-csid.c +++ b/drivers/media/platform/qcom/camss/camss-csid.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c b/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c index c832539..12bce39 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c @@ -12,6 +12,7 @@ #include #include +#include #define CAMSS_CSI_PHY_LNn_CFG2(n) (0x004 + 0x40 * (n)) #define CAMSS_CSI_PHY_LNn_CFG3(n) (0x008 + 0x40 * (n)) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c index bcd0dfd..2e65caf 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c @@ -12,6 +12,7 @@ #include #include +#include #define CSIPHY_3PH_LNn_CFG1(n) (0x000 + 0x100 * (n)) #define CSIPHY_3PH_LNn_CFG1_SWI_REC_DLY_PRG (BIT(7) | BIT(6)) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c b/drivers/media/platform/qcom/camss/camss-csiphy.c index 4559f3b..008afb8 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/media/platform/qcom/camss/camss-ispif.c b/drivers/media/platform/qcom/camss/camss-ispif.c index ca7b091..1f33b4e 100644 --- a/drivers/media/platform/qcom/camss/camss-ispif.c +++ b/drivers/media/platform/qcom/camss/camss-ispif.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c index da3a9fe..174a36b 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c @@ -9,6 +9,7 @@ */ #include +#include #include #include "camss-vfe.h" diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c index 4c584bf..0dca8bf 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c @@ -9,6 +9,7 @@ */ #include +#include #include #include "camss-vfe.h"