From patchwork Tue Aug 14 09:13:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144154 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4104743ljj; Tue, 14 Aug 2018 02:16:49 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzrRqwN0LawH6JZiE+nMTRIGq7Caoelv2YFK8UVleT0w56c12QkD6NRxb7Vmqh3iNeAF9Ar X-Received: by 2002:a62:5613:: with SMTP id k19-v6mr22491574pfb.212.1534238209834; Tue, 14 Aug 2018 02:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534238209; cv=none; d=google.com; s=arc-20160816; b=SubIxOqulgkd/G1N7lS+HfSKiNHdsDPlJoVVymmgJ+rpKW8VlkUBxMYy3fQPi8EedD 1MGNf47G4FXthO26/ZwclMJTQfZhXjQzBUvEjbi/2w6s6vzDfz9IV2OYoUKBpF9Czydg bkMqSLgG11waZi9qBuk4qo+uR8GIdzjtsTmMXjVqGuhqP0RXmPdrrNnvII4e6BFOcYYa iBeQlgqj2rQhbDIAhodQckn62sNNx7m0SuNu8FJ1HjriH3yDiioS8s+k0Rqr7tUCC9KD 9lfixUZPA13ej1u9NdNs8dZmbdv6pL3W4oq+73Jk9GwHuMM8NfUkbBp/HnvXFhZmF3Dn FcfQ== 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=/McMxLk9eefnDfuWzfQRRx2G+Yi2SI+bl9vb6xieXU4=; b=mwMmPTAueiKSU9L0Qrh2UKyvJ4GxXk1Ccs/FqwU6Q2+b9MIBE7WaGNkckisiCWM1NC DX0/gT/OjxeCrOksWHy+pkNyFpovGdwuy2F4aGe5FmiLcANrL5cSSudyb9b/K96+GbL+ q838VHqXMnWp8A9FoxMKEVQ1QPo0bQmjMd7ENfa39i4uVRKB2l5s2HMRdF9KjNOI1QmB DigeuS3WGpzhY/ruFHM1dgNI4t7R5IhGcynqPyDDdiD5ssLFkevn3j9iEWuTrxoKWIFd umIRxjzxHutP3iiFIo3FqoM/yQM/RA6do41n1f/zLolmFnsVPODRyu0uTL5kBAr82Rf8 HMaQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si16676020pgv.525.2018.08.14.02.16.49; Tue, 14 Aug 2018 02:16:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731767AbeHNMDF (ORCPT + 31 others); Tue, 14 Aug 2018 08:03:05 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:37427 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728101AbeHNMDE (ORCPT ); Tue, 14 Aug 2018 08:03:04 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0LeLhV-1gEwcS1sSb-00q9AS; Tue, 14 Aug 2018 11:16:37 +0200 From: Arnd Bergmann To: Todor Tomov , Mauro Carvalho Chehab Cc: Arnd Bergmann , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] media: camss: add missing includes Date: Tue, 14 Aug 2018 11:13:31 +0200 Message-Id: <20180814091636.1960071-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:npx7b+Dtsv5ytFB47WHxbwCCgjdGTMxx1vHB8UhCTI7HpRxlKEY Xs1VDJ1pp0lecLU+Rwaol4+RDmK5YuNCOtGb/AbIFxhFWx/lSQS2DQG/xv0NInZ097XjaT9 1FPT+2pG24j5AheSpe7FiXK2iLEPrr5CkpPHQgfmmjt8N0TJUNdnTsVhUFuPO32ektQMA97 bo5SXF0YevO85I2/ecP6A== X-UI-Out-Filterresults: notjunk:1; V01:K0:f9FyHfzR1JQ=:2hH7d0l6QP9rk7rocxdRxo dJ/ukr5dtnue8wXlNWHM7H+ehd0VR9LPZPu/y9AJphh2T5rHIQ9vkzQ81BwtOtBAyTGjKrg+0 lNfLSvEBrVjtghCSGG+mirVaFo9LqWe72b/bJZIP9WDdFVBXx8DONsifJC0M/EitlHN9gRPh4 0hR7gxh8EIxqAYk2Z3FXQrJXxtuYfxVx7YZtn5U+UIsTUP+n8CJcSWD4tnt05KkXkQEOM/6AW xPYjSjVr8ITXOVMYw3qDrdP71w9vMlfiqCXRpiH2jYIhterI60aAY7UOW2uqhG/3xIyXuK8DH kZvoKah/jIpmXBr2DALAaON5Ynja0sghbrqfMBe5S+KMVFY0XTYaDGWpGOx8eUlVKJbQAEPTt HfFf0iVOrhSqtw0DQgaxsn0GJ0ioD/yLo61QOetBbMoPVmfptHMVCG3Wn0I63z8FcbJjaDguQ Tee8YeyFh5WKkcpiF5XoeB9RV9vQ+IdPTLRk8Xf3tycnagnTz5vd3p+peFkYG+LmLf5dTGQMk U5hB287y566JlQpbVfQxDgXF2MkgvXEdpyo4Lwy7GdB28QLORlFIX8xqK5HnNvAYC708U6hCh Uj9+xOfvcaiReK637aVqnWRMer6kNsorCRfTySaG53bUmNyAAQT+od6QpXcRKB98dK9VYl/WP wCLc/UqtczqUpQB5ath3olBwYydAZNgCrEvjgjUdTYSdsKcreOpvNrlM4s+BeKr/7egA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] drivers/media/platform/qcom/camss/camss-ispif.c: In function 'msm_ispif_subdev_init': drivers/media/platform/qcom/camss/camss-ispif.c:1079:16: error: implicit declaration of function 'kcalloc'; did you mean 'kvcalloc'? [-Werror=implicit-function-declaration] Add the ones that I observed, plus linux/io.h in all other files that call readl/writel and related interfaces. Signed-off-by: Arnd Bergmann --- v2: actually add the linux/io.h instances for files that did not show the error but might still be affected because of the readl/writel usage --- 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 | 2 ++ 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, 8 insertions(+) -- 2.18.0 diff --git a/drivers/media/platform/qcom/camss/camss-csid.c b/drivers/media/platform/qcom/camss/camss-csid.c index 729b31891466..a5ae85674ffb 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 c832539397d7..12bce391d71f 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 bcd0dfd33618..2e65caf1ecae 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 4559f3b1b38c..008afb85023b 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 7f269021d08c..d824c4958c07 100644 --- a/drivers/media/platform/qcom/camss/camss-ispif.c +++ b/drivers/media/platform/qcom/camss/camss-ispif.c @@ -10,11 +10,13 @@ #include #include #include +#include #include #include #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 da3a9fed9f2d..174a36be6f5d 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 4c584bffd179..0dca8bf9281e 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"