Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp633186imm; Wed, 15 Aug 2018 03:29:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw/aPnlM8YpIpNxzIbsMbrmOt/HovFgYqjdN7OYuYOE/ru93rKX0c0BT6Ttl+08U7Dxm+ls X-Received: by 2002:a63:7007:: with SMTP id l7-v6mr24526353pgc.206.1534328941707; Wed, 15 Aug 2018 03:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534328941; cv=none; d=google.com; s=arc-20160816; b=tPL8bXBu5c8mubVM/26tzS/p9usNtc8awVWMn1P4StExIoCZ98PcXS7OeY9ZRsQ5Ed tTU58eWV4DvAK+LiVwuWqGZ4fbkqf5+pyjEXZ5JZNweGwL+5Jw3hof4Rf5R+OQm2vOcO v5zeGW6rirV+26chQMKwiFVg3sUZcJrVevHkEuflByUYVGeIgqaXD1Zz0f8bWKf/Kidg +7xhPxUtPxgl9hk3b7rdiib5VoHH1c5LEPM4eFm5JSP80CgXbkdjDkwDvFKuTjV8OBUh xvxUIgxsJGJWWxsfpGIroNCbNBpDwhcVR6v4Jg1Nq62v7zDnHfZlh8/mCYgpDHyeDfvi s5nQ== 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=M/XEZCobiDzOSlSse0YINmo2MYs63+ejbqhlhh6HtQ2GMXLvN/J5YlXFVJwv3o8DMK OOFcTVrPBiBXlicg9JR0qL1rADMln2r5Hwtg8W2ClgGv4pisjdwE6aMVio/Pjylp7E+G X2ZOkLT3VYgq+hUusSR6z673ej+YfbYa+LyFgg8/dkx1t7VYltsacbzZ44/IZkvOf39B 8KYJqAVlwWxa2YYDV7jUBYZhCELdeckFmm1Gsnftdmo6C3GAm0mmnepDZoLMJnzCzm2h BIn5+UEkVUGdRzBBXvHd3vEgZcI13oYNN+EF+0w3BDZLgNX9/Nzu0kH8YZzEu8USts5+ +Vjg== 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si21685852pgi.328.2018.08.15.03.28.47; Wed, 15 Aug 2018 03:29:01 -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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbeHONTd (ORCPT + 99 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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" -- 2.7.4